style can be set by mode and state

This commit is contained in:
mbsanchez 2019-09-05 16:19:57 -04:00
parent 902790e03e
commit 0fa06af758

View File

@ -95,7 +95,7 @@ public:
// set the default options // set the default options
QColor color = optionValueForModeAndState("color", mode, state, options).value<QColor>(); QColor color = optionValueForModeAndState("color", mode, state, options).value<QColor>();
QString text = optionValueForModeAndState("text", mode, state, options).toString(); QString text = optionValueForModeAndState("text", mode, state, options).toString();
int st = options.value("style", style::fas).toInt(); int st = optionValueForModeAndState("style", mode, state, options).toInt();
Q_ASSERT(color.isValid()); Q_ASSERT(color.isValid());
Q_ASSERT(!text.isEmpty()); Q_ASSERT(!text.isEmpty());