33 #ifndef MYTABBEDSTACKWIDGET_H
34 #define MYTABBEDSTACKWIDGET_H
37 #include <QStackedWidget>
38 #include <QListWidget>
50 MyTabbedStackWidget(QWidget *parent =
nullptr,
bool isVertical =
false,
bool iconAbove =
true);
52 void insertTab(
int index, QWidget *tab,
const QIcon &icon,
const QString &label);
53 void removeTab(
int index);
54 void setIconSize(
int size) { m_listWidget->setIconSize(QSize(size, size)); }
56 int currentIndex()
const;
58 void insertCornerWidget(
int index, QWidget *widget);
59 void setHidden(
int index,
bool hide);
62 QWidget *
getWidget(
int index) {
return m_stackWidget->widget(index);}
65 void currentAboutToShow(
int index,
bool * proceed);
66 void currentChanged(
int index);
69 void setCurrentIndex(
int index);
72 void showWidget(
int index);
75 QListWidget *m_listWidget;
76 QStackedWidget *m_stackWidget;
81 #endif // MYTABBEDSTACKWIDGET_H