Add missing update call

This commit is contained in:
johanneshilden 2017-09-29 01:10:11 +03:00
parent a669df832f
commit b51f342be3
3 changed files with 8 additions and 4 deletions

View File

@ -110,6 +110,7 @@ void QtMaterialAvatar::setTextColor(const QColor &color)
d->textColor = color;
setUseThemeColors(false);
update();
}
QColor QtMaterialAvatar::textColor() const
@ -129,6 +130,7 @@ void QtMaterialAvatar::setBackgroundColor(const QColor &color)
d->backgroundColor = color;
setUseThemeColors(false);
update();
}
QColor QtMaterialAvatar::backgroundColor() const

View File

@ -103,6 +103,7 @@ void QtMaterialBadge::setTextColor(const QColor &color)
d->textColor = color;
setUseThemeColors(false);
update();
}
QColor QtMaterialBadge::textColor() const
@ -122,6 +123,7 @@ void QtMaterialBadge::setBackgroundColor(const QColor &color)
d->backgroundColor = color;
setUseThemeColors(false);
update();
}
QColor QtMaterialBadge::backgroundColor() const

View File

@ -6,11 +6,11 @@
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
//AvatarSettingsEditor *editor = new AvatarSettingsEditor;
//setCentralWidget(editor);
BadgeSettingsEditor *editor = new BadgeSettingsEditor;
AvatarSettingsEditor *editor = new AvatarSettingsEditor;
setCentralWidget(editor);
//BadgeSettingsEditor *editor = new BadgeSettingsEditor;
//setCentralWidget(editor);
}
MainWindow::~MainWindow()