[kde-doc-english] [trojita] src/Gui: GUI: fix the size of the inner widgets when exiting the "one at a time" mode

Jan Kundrát jkt at flaska.net
Fri May 31 12:35:07 UTC 2013


Git commit 4c49d60c346ef711f14e4e7dbae5e5ece311e89e by Jan Kundrát.
Committed on 30/05/2013 at 20:13.
Pushed by jkt into branch 'master'.

GUI: fix the size of the inner widgets when exiting the "one at a time" mode

M  +8    -0    src/Gui/Window.cpp

http://commits.kde.org/trojita/4c49d60c346ef711f14e4e7dbae5e5ece311e89e

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index 6d3002d..aec57b5 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -2171,6 +2171,14 @@ void MainWindow::undoLayoutOneAtTimeCraziness()
     disconnect(mboxTree, SIGNAL(activated(QModelIndex)), this, SLOT(slotOneAtTimeGoDeeper()));
     m_mainToolbar->removeAction(m_oneAtTimeGoBack);
     msgListWidget->tree->setAutoActivateAfterKeyNavigation(true);
+
+    // The size of the widgets is still wrong. Let's fix this.
+    if (isMaximized()) {
+        showNormal();
+        showMaximized();
+    } else {
+        resize(sizeHint());
+    }
 }
 
 void MainWindow::slotOneAtTimeGoBack()



More information about the kde-doc-english mailing list