diff options
-rw-r--r-- | src/loginform.cpp | 1 | ||||
-rw-r--r-- | src/loginform.ui | 21 |
2 files changed, 7 insertions, 15 deletions
diff --git a/src/loginform.cpp b/src/loginform.cpp index a7252b5..b8db5cf 100644 --- a/src/loginform.cpp +++ b/src/loginform.cpp @@ -100,6 +100,7 @@ void LoginForm::initialize() ui->leaveComboBox->setDisabled(ui->leaveComboBox->count() <= 1); ui->passwordInput->clear(); + this->layout()->setSizeConstraint(QLayout::SetFixedSize); } void LoginForm::startAuthentication() diff --git a/src/loginform.ui b/src/loginform.ui index 086508f..d1f0678 100644 --- a/src/loginform.ui +++ b/src/loginform.ui @@ -11,7 +11,7 @@ </rect> </property> <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <sizepolicy hsizetype="Fixed" vsizetype="Expanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> @@ -79,22 +79,13 @@ QComboBox QAbstractItemView::item { <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QFrame" name="formFrame"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> + <property name="frameShape"> + <enum>QFrame::StyledPanel</enum> + </property> + <property name="frameShadow"> + <enum>QFrame::Raised</enum> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> - <property name="topMargin"> - <number>9</number> - </property> - <property name="rightMargin"> - <number>9</number> - </property> - <property name="bottomMargin"> - <number>9</number> - </property> <item> <widget class="QFrame" name="frame"> <property name="sizePolicy"> |