Removed button, added tooltipe.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-04-07 13:11:21 +03:00
parent 5697af33e8
commit 85c45960e5
2 changed files with 6 additions and 8 deletions

View File

@ -633,7 +633,6 @@ void DialogPatternProperties::InitImage()
{
ui->imageLabel->setContextMenuPolicy(Qt::CustomContextMenu);
ui->imageLabel->setScaledContents(true);
connect(ui->changeImageButton, &QPushButton::clicked, this, &DialogPatternProperties::ChangeImage);
connect(ui->imageLabel, &QWidget::customContextMenuRequested, this, &DialogPatternProperties::ShowContextMenu);
deleteAction = new QAction(tr("Delete image"), this);

View File

@ -85,13 +85,6 @@
<property name="leftMargin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="changeImageButton">
<property name="text">
<string>change image</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="imageLabel">
<property name="sizePolicy">
@ -112,6 +105,9 @@
<height>200</height>
</size>
</property>
<property name="toolTip">
<string>Call context menu for edit</string>
</property>
<property name="text">
<string>No image</string>
</property>
@ -121,6 +117,9 @@
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="margin">
<number>1</number>
</property>
</widget>
</item>
</layout>