15#ifndef QGSTABBARPROXYSTYLE_H
16#define QGSTABBARPROXYSTYLE_H
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;
50 QMap<int, QgsAttributeEditorElement::LabelStyle> mTabStyles;
58class QgsTabBar :
public QTabBar
66 QgsTabBar( QWidget *parent );
71 void setTabBarStyle( QgsTabBarProxyStyle *tabStyle );
74 QSize tabSizeHint(
int index )
const;
77 QgsTabBarProxyStyle *mTabBarStyle =
nullptr;
A QProxyStyle subclass which correctly sets the base style to match the QGIS application style,...
The TabStyle struct defines color and font overrides for form fields, tabs and groups labels.