X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.cpp;h=5ad89f08a8c26506fdf238e198c67090da65f676;hb=c639f2b13b485c0d158ee3857742eaf4d1fa4760;hp=6478f8cc8804124d002838dcab8035d37988fcf1;hpb=04c923c596fbde976b23979b92b0636635f97951;p=quassel.git diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 6478f8cc..5ad89f08 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -27,7 +27,7 @@ QHash UiStyle::_formatCodes; -UiStyle::UiStyle() { +UiStyle::UiStyle(QObject *parent) : QObject(parent) { // register FormatList if that hasn't happened yet // FIXME I don't think this actually avoids double registration... then again... does it hurt? if(QVariant::nameToType("UiStyle::FormatList") == QVariant::Invalid) { @@ -77,6 +77,8 @@ void UiStyle::loadStyleSheet() { _formatCache = parser.formats(); qApp->setStyleSheet(styleSheet); // pass the remaining sections to the application + + emit changed(); } QString UiStyle::loadStyleSheet(const QString &styleSheet, bool shouldExist) {