Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef FANCYTABWIDGET_H
#define FANCYTABWIDGET_H
#include <QWidget>
class FancyTabBar;
class FancyTabBar2;
class QStackedLayout;
class QStatusBar;
class QStackedWidget;
class QIcon;
class FancyTabWidget : public QWidget
{
Q_OBJECT
public:
FancyTabWidget(QWidget *parent = 0);
~FancyTabWidget();
void paintEvent(QPaintEvent *event);
void insertTab(int index, QWidget *tab, const QIcon &icon, const QString &label);
// void removeTab(int index);
signals:
void currentAboutToShow(int index);
void currentChanged(int index);
public slots:
private slots:
void showWidget(int index);
private:
FancyTabBar2 *m_tabBar;
// FancyTabBar *m_tabBar;
QWidget *m_cornerWidgetContainer;
QWidget *m_selectionWidget;
QStatusBar *m_statusBar;
QStackedWidget *m_stackedWidgets;
};
#endif // FANCYTABWIDGET_H