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/QtSingleWindow.h
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/QtSingleWindow.h')
-rw-r--r--Swift/QtUI/QtSingleWindow.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtSingleWindow.h b/Swift/QtUI/QtSingleWindow.h
index 804be65..c6f22cf 100644
--- a/Swift/QtUI/QtSingleWindow.h
+++ b/Swift/QtUI/QtSingleWindow.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010-2012 Isode Limited.
+ * Copyright (c) 2010-2018 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -22,7 +22,7 @@ namespace Swift {
void resizeEvent(QResizeEvent*);
void moveEvent(QMoveEvent*);
private slots:
- void handleSplitterMoved(int, int);
+ void handleSplitterMoved();
void handleTabsTitleChanged(const QString& title);
private:
void handleGeometryChanged();