summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2016-04-14 14:10:06 (GMT)
committerTobias Markmann <tm@ayena.de>2016-04-14 16:16:52 (GMT)
commit161c5d178d6afd18038f9a083f4881bbdb1d590b (patch)
tree693cc92a31442e9cdf7927a3eb2362e7c4fda09d
parentf0820ff2e2f2c77c3d3a6572cdf7518ec8a76ef0 (diff)
downloadswift-161c5d178d6afd18038f9a083f4881bbdb1d590b.zip
swift-161c5d178d6afd18038f9a083f4881bbdb1d590b.tar.bz2
Fix delayed login/roster resize on window resize in netbook mode
If you resize the window in netbook mode, the splitter inside only resizes to the new geometry if it is clicked or moved. This is due to overriding resizeEvent hook of QSplitter in QtSingleWindow but not notifying QSplitter's resizeEvent hook in the new method. Test-Information: Tested on OS X 10.11.4 with Qt 5.4.2. Opened Swift in netbook mode and resize the window. The login screen is resized as the window is resized. The login screen used to only resize if you moved the splitter. Change-Id: I7715e1cdcb4c0e672e233a9f76fad3ef5fe70d25
-rw-r--r--Swift/QtUI/QtSingleWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtSingleWindow.cpp b/Swift/QtUI/QtSingleWindow.cpp
index db7f7dc..ab7e81e 100644
--- a/Swift/QtUI/QtSingleWindow.cpp
+++ b/Swift/QtUI/QtSingleWindow.cpp
@@ -67,11 +67,11 @@ void QtSingleWindow::insertAtFront(QWidget* widget) {
void QtSingleWindow::handleGeometryChanged() {
settings_->getQSettings()->setValue(SINGLE_WINDOW_GEOMETRY, saveGeometry());
-
}
-void QtSingleWindow::resizeEvent(QResizeEvent*) {
+void QtSingleWindow::resizeEvent(QResizeEvent* event) {
handleGeometryChanged();
+ QSplitter::resizeEvent(event);
}
void QtSingleWindow::moveEvent(QMoveEvent*) {