summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-18 15:01:33 +0200
committerSimon Rettberg2019-04-18 15:01:33 +0200
commit1ade5c98efaa67dfd522d3dcacdd52a8b44404e3 (patch)
treeb26698229475bfeb342c87a0f1891f13c976ed20
parentPropery scale mini icon (diff)
downloadslxgreeter-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.cpp1
-rw-r--r--src/loginform.ui21
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">