summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-02-23 12:09:55 (GMT)
committerTobias Markmann <tm@ayena.de>2015-02-23 12:09:55 (GMT)
commite963c5e939f4e1b7cd8f8d653ec2d1cadbec4a8d (patch)
treeec2c5b9faa0e6f9c647f11722c0865f8b4bb1dd8 /Swift/QtUI/Trellis/QtDynamicGridLayout.h
parent8718d29202d5df23cd979055b8be8a2d28d82301 (diff)
downloadswift-3252b650ec907479bb5c9fe035d7c7370b89882d.zip
swift-3252b650ec907479bb5c9fe035d7c7370b89882d.tar.bz2
Fix chat window title showing wrong chat titleswift-3.0beta1
Setup an application wide focus handler which updates the title if a focus change to a QtTabWidget happened. Test-Information: Tested on OS X 10.9.5 with Qt 5.4.0. Change-Id: Ib2e2f4c4a93deddb286350bdef685eb7aee504c9
Diffstat (limited to 'Swift/QtUI/Trellis/QtDynamicGridLayout.h')
-rw-r--r--Swift/QtUI/Trellis/QtDynamicGridLayout.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/Trellis/QtDynamicGridLayout.h b/Swift/QtUI/Trellis/QtDynamicGridLayout.h
index 3b798bd..616ee5e 100644
--- a/Swift/QtUI/Trellis/QtDynamicGridLayout.h
+++ b/Swift/QtUI/Trellis/QtDynamicGridLayout.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014 Isode Limited.
+ * Copyright (c) 2014-2015 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
@@ -47,6 +47,7 @@ namespace Swift {
signals:
void tabCloseRequested(int index);
+ void onCurrentIndexChanged(int newIndex);
public slots:
void setDimensions(const QSize& dim);
@@ -62,6 +63,7 @@ namespace Swift {
private slots:
void handleTabCloseRequested(int index);
void handleTabCurrentChanged(int index);
+ void handleApplicationFocusChanged(QWidget* oldFocus, QWidget* newFocus);
private:
void moveTab(QtTabWidget* tabWidget, int oldIndex, int newIndex);