Skip to content

Commit 6cd706f

Browse files
author
etet100
committed
Add invertedDartThemeIconColors property to StyledToolButton
1 parent 80b3b4e commit 6cd706f

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/designerplugins/customwidgetsplugin/styledtoolbutton.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,17 @@ void StyledToolButton::setMenuIndicatorMargin(int margin)
337337
update();
338338
}
339339

340+
bool StyledToolButton::invertedDartThemeIconColors() const
341+
{
342+
return m_invertedDartThemeIconColors;
343+
}
344+
345+
void StyledToolButton::setInvertedDartThemeIconColors(bool inverted)
346+
{
347+
m_invertedDartThemeIconColors = inverted;
348+
update();
349+
}
350+
340351
QMenu *StyledToolButton::buttonMenu() const
341352
{
342353
return m_menu;

src/designerplugins/customwidgetsplugin/styledtoolbutton.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ class CUSTOMWIDGETS_DLLSPEC StyledToolButton : public QToolButton
5353
int menuIndicatorMargin() const;
5454
void setMenuIndicatorMargin(int margin);
5555

56+
bool invertedDartThemeIconColors() const;
57+
void setInvertedDartThemeIconColors(bool inverted);
58+
5659
QMenu *buttonMenu() const;
5760
void setButtonMenu(QMenu *menu);
5861

0 commit comments

Comments
 (0)