summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 00d07c8..2dbeed7 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -1,6 +1,9 @@
#include "QtChatTabs.h"
+#include <algorithm>
+
#include <QCloseEvent>
+#include <QDesktopWidget>
#include <QtGlobal>
#include <QTabWidget>
#include <QLayout>
@@ -20,7 +23,7 @@ QtChatTabs::QtChatTabs() : QWidget() {
layout->setContentsMargins(0, 3, 0, 0);
layout->addWidget(tabs_);
setLayout(layout);
- resize(400, 300);
+ //resize(400, 300);
}
void QtChatTabs::closeEvent(QCloseEvent* event) {
@@ -99,4 +102,12 @@ void QtChatTabs::handleTabTitleUpdated() {
}
}
+void QtChatTabs::resizeEvent(QResizeEvent* event) {
+ emit geometryChanged();
+}
+
+void QtChatTabs::moveEvent(QMoveEvent* event) {
+ emit geometryChanged();
+}
+
}