General settings: Set left margin of layout to zero.
authorKlaas Freitag <freitag@owncloud.com>
Wed, 9 Sep 2015 13:52:22 +0000 (15:52 +0200)
committerKlaas Freitag <freitag@owncloud.com>
Wed, 9 Sep 2015 13:52:22 +0000 (15:52 +0200)
This fixes the vertical alignment of the checkboxes, see bug #3758

src/gui/generalsettings.cpp

index 3951f1782261668b8c85d67779aa690e7084333f..703dd29ea2be56a2d77c75fdb0e834f84cc9a428 100644 (file)
@@ -69,6 +69,13 @@ GeneralSettings::GeneralSettings(QWidget *parent) :
     _ui->crashreporterCheckBox->setVisible(false);
 #endif
 
+    /* Set the left contents margin of the layout to zero to make the checkboxes
+     * align properly vertically , fixes bug #3758
+     */
+    int m0, m1, m2, m3;
+    _ui->horizontalLayout_3->getContentsMargins( &m0, &m1, &m2, &m3 );
+    _ui->horizontalLayout_3->setContentsMargins(0, m1, m2, m3 );
+
     // OEM themes are not obliged to ship mono icons, so there
     // is no point in offering an option
     QString themeDir = QString::fromLatin1(":/client/theme/%1/")