use qGuiApp instead of qApp

This commit is contained in:
Marco Martin 2015-11-20 14:37:17 +01:00
parent a9d3d9a81a
commit 1a804c33e2

View File

@ -578,7 +578,7 @@ void SvgPrivate::checkColorHints()
// check to see if we are using colors, but the theme isn't being used or isn't providing
// a colorscheme
if (qApp) {
if (qGuiApp) {
if (usesColors && (!themed || !actualTheme()->colorScheme())) {
QObject::connect(actualTheme()->d, SIGNAL(applicationPaletteChange()), q, SLOT(colorsChanged()));
} else {