summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2019-03-20 14:18:16 +0200
committerTomi Korpipää <tomi.korpipaa@qt.io>2019-03-21 05:48:47 +0000
commit909e7b1ac24b7fa4152566cbbaf18ecb35fe40b0 (patch)
tree3522829267e282f2b787c2f5dc110b2ccf1f87e9
parent7e468f5d90c942da45724f06396349b271db0302 (diff)
Fix the dialog size issues for tag edit dialog
In some environments title bar was too short and height was bit too small. Also, dialog shouldn't be resizable. Task-number: QT3DS-3170 Change-Id: I032599734fca317ce47e2799f99cc5ca102222ae Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp2
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.ui4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp b/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp
index 418df26b..05a8fa64 100644
--- a/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp
+++ b/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.cpp
@@ -61,6 +61,8 @@ VariantTagDialog::VariantTagDialog(DialogType type, const QString &group, const
m_ui->lineEditTagName->setText(name);
m_ui->lineEditTagName->selectAll();
}
+
+ window()->setFixedSize(size());
}
void VariantTagDialog::accept()
diff --git a/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.ui b/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.ui
index aa5d24ef..2c0b2863 100644
--- a/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.ui
+++ b/src/Authoring/Studio/Palettes/Inspector/VariantTagDialog.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>241</width>
- <height>89</height>
+ <width>300</width>
+ <height>100</height>
</rect>
</property>
<property name="windowTitle">