From 41d84efb57a9b8ebb07fb5615f9cdd6e7115f508 Mon Sep 17 00:00:00 2001 From: johanneshilden Date: Fri, 29 Sep 2017 20:48:26 +0300 Subject: [PATCH] Use DISABLE_THEME_COLORS macro --- components/qtmaterialtabs.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/components/qtmaterialtabs.cpp b/components/qtmaterialtabs.cpp index 118a2b6..dbc55bd 100644 --- a/components/qtmaterialtabs.cpp +++ b/components/qtmaterialtabs.cpp @@ -100,8 +100,10 @@ void QtMaterialTabs::setInkColor(const QColor &color) Q_D(QtMaterialTabs); d->inkColor = color; - setUseThemeColors(false); + + MATERIAL_DISABLE_THEME_COLORS d->inkBar->update(); + update(); } QColor QtMaterialTabs::inkColor() const @@ -120,8 +122,10 @@ void QtMaterialTabs::setBackgroundColor(const QColor &color) Q_D(QtMaterialTabs); d->backgroundColor = color; - setUseThemeColors(false); + + MATERIAL_DISABLE_THEME_COLORS updateTabs(); + update(); } QColor QtMaterialTabs::backgroundColor() const @@ -140,8 +144,10 @@ void QtMaterialTabs::setTextColor(const QColor &color) Q_D(QtMaterialTabs); d->textColor = color; - setUseThemeColors(false); + + MATERIAL_DISABLE_THEME_COLORS updateTabs(); + update(); } QColor QtMaterialTabs::textColor() const