34 #include <QPixmapCache>
36 #include <QStyleOption>
38 using namespace Utils;
43 setProperty(
"panelwidget",
true);
44 setProperty(
"panelwidget_singlerow",
true);
45 setProperty(
"lightColored",
false);
50 setProperty(
"panelwidget_singlerow", singleRow);
55 return property(
"panelwidget_singlerow").toBool();
60 setProperty(
"lightColored", lightColored);
65 return property(
"lightColored").toBool();
71 QPainter painter(
this);
74 option.state = QStyle::State_Horizontal;
75 style()->drawControl(QStyle::CE_ToolBar, &option, &painter,
this);
87 QPainter painter(
this);
90 option.state = QStyle::State_Horizontal;
91 option.palette = palette();
92 style()->drawPrimitive(QStyle::PE_IndicatorToolBarSeparator, &option, &painter,
this);
StyledBar(QWidget *parent=nullptr)
void paintEvent(QPaintEvent *event)
void paintEvent(QPaintEvent *event)
bool isLightColored() const
StyledSeparator(QWidget *parent=nullptr)
void setLightColored(bool lightColored)
void setSingleRow(bool singleRow)