diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-06-16 21:27:44 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-06-16 21:27:44 (GMT) |
commit | f1c690a5352ee77282bbbd145a3fe0137aceb160 (patch) | |
tree | ee54e5a269295f3010f906097efbf0e3a9ce8dd3 /Swift/QtUI/QtChatTabs.h | |
parent | a2e0cf9108081663607706f661f411a5fcf86e1d (diff) | |
parent | 73fa400641352d2f397b2e4a8589bf6ce80c7beb (diff) | |
download | swift-contrib-f1c690a5352ee77282bbbd145a3fe0137aceb160.zip swift-contrib-f1c690a5352ee77282bbbd145a3fe0137aceb160.tar.bz2 |
Merge branch 'tabs'
Diffstat (limited to 'Swift/QtUI/QtChatTabs.h')
-rw-r--r-- | Swift/QtUI/QtChatTabs.h | 22 |
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_; + }; +} + |