15 #ifndef QGSTABBARPROXYSTYLE_H
16 #define QGSTABBARPROXYSTYLE_H
21 #include <QProxyStyle>
41 QgsTabBarProxyStyle( QTabBar *tabBar );
43 void drawControl( ControlElement element,
const QStyleOption *option, QPainter *painter,
const QWidget *widget )
const override;
47 const QMap<int, QgsAttributeEditorElement::LabelStyle> &tabStyles()
const;
51 QMap<int, QgsAttributeEditorElement::LabelStyle> mTabStyles;
61 class QgsTabBar:
public QTabBar
70 QgsTabBar( QWidget *parent );
75 void setTabBarStyle( QgsTabBarProxyStyle *tabStyle );
79 QSize tabSizeHint(
int index )
const;
82 QgsTabBarProxyStyle *mTabBarStyle =
nullptr;
88 #endif // QGSTABBARPROXYSTYLE_H