diff options
author | Simon Rettberg | 2019-04-18 15:01:33 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-04-18 15:01:33 +0200 |
commit | 1ade5c98efaa67dfd522d3dcacdd52a8b44404e3 (patch) | |
tree | b26698229475bfeb342c87a0f1891f13c976ed20 | |
parent | Propery scale mini icon (diff) | |
download | slxgreeter-1ade5c98efaa67dfd522d3dcacdd52a8b44404e3.tar.gz slxgreeter-1ade5c98efaa67dfd522d3dcacdd52a8b44404e3.tar.xz slxgreeter-1ade5c98efaa67dfd522d3dcacdd52a8b44404e3.zip |
Fix: mini-icon might get cropped if > 95px
Layout with Qt is fun...
-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"> |