From 494ee542b0b7cb9a2eb9997865b9ba89a16715bc Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Mon, 29 Sep 2014 08:51:18 +0200 Subject: 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 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 @@ -15,6 +15,7 @@ QtBookmarkDetailWindow::QtBookmarkDetailWindow(QWidget* parent) : QDialog(parent setAttribute(Qt::WA_DeleteOnClose, true); //connect(buttons_, SIGNAL(accepted()), SLOT(accept())); //connect(buttons_, SIGNAL(rejected()), SLOT(reject())); + setFixedHeight(sizeHint().height()); } void QtBookmarkDetailWindow::accept() { 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 @@ -6,8 +6,8 @@ 0 0 - 396 - 282 + 382 + 207 @@ -22,95 +22,104 @@ false - - - - 10 - 20 - 371 - 241 - + + + 12 - - - - - - - Bookmark Name: - - - - - - - - - - Room Address: - - - - - - - - - - Your Nickname: - - - - - - - - - - Room password: - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Enter automatically - - - true - - - - - - - - - Qt::Horizontal - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - + + 12 + + + 12 + + + 12 + + + + + + + QFormLayout::ExpandingFieldsGrow + + + + + Bookmark Name: + + + + + + + + + + Room Address: + + + + + + + + + + Your Nickname: + + + + + + + + + + Room password: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Enter automatically + + + true + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + -- cgit v0.10.2-6-g49f6