diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-27 14:37:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-27 14:37:43 -0700 |
commit | 1f0c9eec9640450f20449140244966e2b3a2ea13 (patch) | |
tree | f4e9edabf5204edf9926d01dc5d8789104afaab9 /qt-ui/preferences.cpp | |
parent | 485df96cf66132ae7f7d386331945fa2f5883120 (diff) | |
download | subsurface-1f0c9eec9640450f20449140244966e2b3a2ea13.tar.gz |
Preferences dialog: yet another attempt to make it fit
Designer is such an utter piece of crap I am at a lack for words.
After a few hours with a real UI tool (i.e., vim) I have the preferences
dialog reasonably close to where I want it. It's still not perfect, but at
least it no longer contains tons of unused space, it fits fine on a
1024x768 screen and it is visually consistent across the different pages.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r-- | qt-ui/preferences.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index d9622d2a8..c93460f9a 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -82,7 +82,7 @@ void PreferencesDialog::facebookLoggedIn() #ifndef Q_OS_ANDROID // remove the login view and add the disconnect button ui.fbLayout->removeItem(ui.fbLayout->itemAt(1)); - ui.fbLayout->addWidget(ui.fbConnected); + ui.fbLayout->insertWidget(1, ui.fbConnected, 0); ui.fbConnected->show(); ui.FBLabel->setText(tr("To disconnect Subsurface from your Facebook account, use the button below")); if (facebookWebView) @@ -96,7 +96,7 @@ void PreferencesDialog::facebookDisconnect() // remove the connect/disconnect button // and instead add the login view ui.fbLayout->removeItem(ui.fbLayout->itemAt(1)); - ui.fbLayout->addWidget(facebookWebView); + ui.fbLayout->insertWidget(1, facebookWebView, 1); ui.fbConnected->hide(); ui.FBLabel->setText(tr("To connect to Facebook, please log in. This enables Subsurface to publish dives to your timeline")); if (facebookWebView) { |