From 161c5d178d6afd18038f9a083f4881bbdb1d590b Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Thu, 14 Apr 2016 16:10:06 +0200
Subject: 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

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*) {
-- 
cgit v0.10.2-6-g49f6