Removed button, added tooltipe.
--HG-- branch : develop
This commit is contained in:
parent
5697af33e8
commit
85c45960e5
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user