summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Semke <alexander.semke@web.de>2016-10-30 02:24:25 (GMT)
committerAlexander Semke <alexander.semke@web.de>2016-10-30 02:24:25 (GMT)
commitddb88b39bbf8de37df1b2cdab35718de2882b013 (patch)
tree8a47920329a496efa6a1e59c090622913c8c87f3
parent609c0ec03d222810ab5d31e59a570fb71e45193c (diff)
Fix how the minimum size for the main widget is set
Reviewed-By: Boudhayan Gupta (in person at the GSoC Mentor Summit)
-rw-r--r--src/Gui/KSMainWindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Gui/KSMainWindow.cpp b/src/Gui/KSMainWindow.cpp
index c9d93dc..4809c79 100644
--- a/src/Gui/KSMainWindow.cpp
+++ b/src/Gui/KSMainWindow.cpp
@@ -106,10 +106,7 @@ void KSMainWindow::init()
KConfigGroup guiConfig(config, "GuiConfig");
// window properties
-
- setMinimumSize(840, 420);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
- resize(minimumSize());
QPoint location = guiConfig.readEntry("window-position", QPoint(50, 50));
move(location);
@@ -178,6 +175,8 @@ void KSMainWindow::init()
if (!mOnClickAvailable) {
mKSWidget->disableOnClick();
}
+ resize(QSize(840, 420).expandedTo(minimumSize()));
+
// done with the init
}