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->setContextMenuPolicy(Qt::CustomContextMenu);
ui->imageLabel->setScaledContents(true); ui->imageLabel->setScaledContents(true);
connect(ui->changeImageButton, &QPushButton::clicked, this, &DialogPatternProperties::ChangeImage);
connect(ui->imageLabel, &QWidget::customContextMenuRequested, this, &DialogPatternProperties::ShowContextMenu); connect(ui->imageLabel, &QWidget::customContextMenuRequested, this, &DialogPatternProperties::ShowContextMenu);
deleteAction = new QAction(tr("Delete image"), this); deleteAction = new QAction(tr("Delete image"), this);

View File

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