summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Burgess <pete.burgess@isode.com>2018-05-16 16:41:43 (GMT)
committerTobias Markmann <tm@ayena.de>2018-05-18 10:04:40 (GMT)
commit0d9beaad4811a84b4bf553e17bba862320624882 (patch)
treef162efa4486051421d1dc378c7a5b58e4c08e007 /Swift/QtUI/QtChatTabs.cpp
parent39ff091cddf8fd5e01047d80c7ed60c150537705 (diff)
downloadswift-0d9beaad4811a84b4bf553e17bba862320624882.zip
swift-0d9beaad4811a84b4bf553e17bba862320624882.tar.bz2
Open swift with sensible geometry in netbook mode the first time
If swift has never been run in netbook mode before, then netbook mode geometry is set by some hard coded default value during construction of QtSingleWindow. The code to set and utilize the original non-netbook mode geometry has been removed. Test-information: No unit tests as all changes at Qt specific. Tested after deleting config file. Tested after replacing config file with one that has no SINGLE_WINDOW_XXX settings (so a config file you would find if swift had never been opened in netbook mode). Tested with one or other of the SINGLE_WINDOW_XXX settings missing Tested with config file that contains all SINGLE_WINDOW_XXX settings Change-Id: I0075456796bd830b855629fbd03d601df7f2891c
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 7b81567..bdbbe01 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -426,4 +426,8 @@ void QtChatTabs::checkForFirstShow() {
}
}
+QSize QtChatTabs::sizeHint() const {
+ return QSize(600, 600);
+}
+
}