diff options
Diffstat (limited to 'Bootstrap.cxx')
| -rw-r--r-- | Bootstrap.cxx | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/Bootstrap.cxx b/Bootstrap.cxx index d123dca..38bbba5 100644 --- a/Bootstrap.cxx +++ b/Bootstrap.cxx @@ -136,6 +136,13 @@ void Bootstrap::setMode(Mode mode)  	emit bodyBgChanged();  	emit borderColorChanged();  	emit headingColorChanged(); +	for (auto sibling : parent()->findChildren<QObject *>()) +		if (strstr(sibling->metaObject()->className(), "_QMLTYPE_")) +			for (auto child : sibling->children()) +				if (!strcmp(child->metaObject()->className(), +							"Bootstrap")) +					qobject_cast<Bootstrap *>(child) +						->setMode(mode);  }  Bootstrap::Theme Bootstrap::theme() const |