summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-11-09 23:41:36 (GMT)
committerKevin Smith <git@kismith.co.uk>2012-12-23 11:46:07 (GMT)
commiteac8b0d41d9ba7609a22f0d84fabc488872cc547 (patch)
tree828a2b2124fad8895065d54a7cfb663970602d25 /Swift/QtUI/QtSingleWindow.h
parent0f186904e643fe99f178357746cc81fcfed0b7c7 (diff)
downloadswift-eac8b0d41d9ba7609a22f0d84fabc488872cc547.zip
swift-eac8b0d41d9ba7609a22f0d84fabc488872cc547.tar.bz2
Remember window splitter placement in netbook mode
Change-Id: I53ce03b9536e97766c4afd286f3b09a941693265
Diffstat (limited to 'Swift/QtUI/QtSingleWindow.h')
-rw-r--r--Swift/QtUI/QtSingleWindow.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSingleWindow.h b/Swift/QtUI/QtSingleWindow.h
index 861eda7..6cbc3e4 100644
--- a/Swift/QtUI/QtSingleWindow.h
+++ b/Swift/QtUI/QtSingleWindow.h
@@ -12,14 +12,19 @@ namespace Swift {
class QtSettingsProvider;
class QtSingleWindow : public QSplitter {
+ Q_OBJECT
public:
QtSingleWindow(QtSettingsProvider* settings);
virtual ~QtSingleWindow();
+ void insertAtFront(QWidget* widget);
protected:
void resizeEvent(QResizeEvent*);
void moveEvent(QMoveEvent*);
+ private slots:
+ void handleSplitterMoved(int, int);
private:
void handleGeometryChanged();
+ void restoreSplitters();
private: