diff options
author | Tobias Markmann <tm@ayena.de> | 2014-09-29 06:51:18 (GMT) |
---|---|---|
committer | Swift Review <review@swift.im> | 2014-10-01 09:55:13 (GMT) |
commit | 494ee542b0b7cb9a2eb9997865b9ba89a16715bc (patch) | |
tree | 83d3d90d531e8d6c9aac2cf63d6dcfe7ca3de292 | |
parent | 19729be77c227a93aad29875d091a8d9010e2769 (diff) | |
download | swift-contrib-494ee542b0b7cb9a2eb9997865b9ba89a16715bc.zip swift-contrib-494ee542b0b7cb9a2eb9997865b9ba89a16715bc.tar.bz2 |
Fix resizability behavior of 'Edit Bookmark'-Dialog.
The dialog is now only resizable in width and the line edit fields resize with
the dialog size without leaving awkward whitespace.
Test-Information:
Checked via running Swift and testing that the fields resize in width and the
dialog is fixed in height.
Change-Id: Idd7417720438f20fa051a823df40d89545db9078
-rw-r--r-- | Swift/QtUI/QtBookmarkDetailWindow.cpp | 1 | ||||
-rw-r--r-- | Swift/QtUI/QtBookmarkDetailWindow.ui | 31 |
2 files changed, 21 insertions, 11 deletions
diff --git a/Swift/QtUI/QtBookmarkDetailWindow.cpp b/Swift/QtUI/QtBookmarkDetailWindow.cpp index 3e501f2..1e84067 100644 --- a/Swift/QtUI/QtBookmarkDetailWindow.cpp +++ b/Swift/QtUI/QtBookmarkDetailWindow.cpp @@ -16,4 +16,5 @@ QtBookmarkDetailWindow::QtBookmarkDetailWindow(QWidget* parent) : QDialog(parent //connect(buttons_, SIGNAL(accepted()), SLOT(accept())); //connect(buttons_, SIGNAL(rejected()), SLOT(reject())); + setFixedHeight(sizeHint().height()); } diff --git a/Swift/QtUI/QtBookmarkDetailWindow.ui b/Swift/QtUI/QtBookmarkDetailWindow.ui index 4a37b2f..be55686 100644 --- a/Swift/QtUI/QtBookmarkDetailWindow.ui +++ b/Swift/QtUI/QtBookmarkDetailWindow.ui @@ -7,6 +7,6 @@ <x>0</x> <y>0</y> - <width>396</width> - <height>282</height> + <width>382</width> + <height>207</height> </rect> </property> @@ -23,16 +23,24 @@ <bool>false</bool> </property> - <widget class="QWidget" name="layoutWidget"> - <property name="geometry"> - <rect> - <x>10</x> - <y>20</y> - <width>371</width> - <height>241</height> - </rect> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <property name="leftMargin"> + <number>12</number> + </property> + <property name="topMargin"> + <number>12</number> + </property> + <property name="rightMargin"> + <number>12</number> + </property> + <property name="bottomMargin"> + <number>12</number> </property> + <item> <layout class="QVBoxLayout" name="verticalLayout"> <item> <layout class="QFormLayout" name="formLayout"> + <property name="fieldGrowthPolicy"> + <enum>QFormLayout::ExpandingFieldsGrow</enum> + </property> <item row="0" column="0"> <widget class="QLabel" name="label"> @@ -111,5 +119,6 @@ </item> </layout> - </widget> + </item> + </layout> </widget> <resources/> |