From ecfb784c9290c84a8d07806ed15a18e153f3b37b Mon Sep 17 00:00:00 2001 From: nowrep Date: Wed, 20 Feb 2013 19:50:03 +0100 Subject: [PATCH] Preferences: Adjust size to current page on page change. --- src/lib/preferences/preferences.cpp | 6 ++++++ src/lib/preferences/preferences.ui | 13 ++----------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/lib/preferences/preferences.cpp b/src/lib/preferences/preferences.cpp index 859e980ca..55077d460 100644 --- a/src/lib/preferences/preferences.cpp +++ b/src/lib/preferences/preferences.cpp @@ -479,6 +479,12 @@ void Preferences::showStackedPage(QListWidgetItem* item) if (index == 10) { m_pluginsList->load(); } + + // Update size + QWidget* w = ui->stackedWidget->currentWidget(); + if (w) { + w->setMinimumSize(w->sizeHint()); + } } void Preferences::setNotificationPreviewVisible(bool state) diff --git a/src/lib/preferences/preferences.ui b/src/lib/preferences/preferences.ui index 51dd1c867..cd723463f 100644 --- a/src/lib/preferences/preferences.ui +++ b/src/lib/preferences/preferences.ui @@ -10,12 +10,6 @@ 500 - - - 800 - 500 - - Preferences @@ -159,9 +153,6 @@ Qt::NoFocus - - 0 - @@ -648,8 +639,8 @@ - - + + 0