summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtChatTabs.h')
-rw-r--r--Swift/QtUI/QtChatTabs.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.h b/Swift/QtUI/QtChatTabs.h
new file mode 100644
index 0000000..37acc91
--- /dev/null
+++ b/Swift/QtUI/QtChatTabs.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "QtTabbable.h"
+#include <QWidget>
+class QTabWidget;
+
+namespace Swift {
+ class QtChatTabs : public QWidget {
+ Q_OBJECT
+ public:
+ QtChatTabs();
+ void addTab(QtTabbable* tab);
+
+ private slots:
+ void handleTabClosing();
+ void handleTabTitleUpdated();
+ void handleTabCloseRequested(int index);
+ private:
+ QTabWidget* tabs_;
+ };
+}
+