|
a/src/qtgui/main.cpp |
|
b/src/qtgui/main.cpp |
|
... |
|
... |
186 |
const char *cfname = (const char *)ssfname.toLocal8Bit();
|
186 |
const char *cfname = (const char *)ssfname.toLocal8Bit();
|
187 |
LOGDEB0(("Applying style sheet: [%s]\n", cfname));
|
187 |
LOGDEB0(("Applying style sheet: [%s]\n", cfname));
|
188 |
if (cfname && *cfname) {
|
188 |
if (cfname && *cfname) {
|
189 |
string stylesheet;
|
189 |
string stylesheet;
|
190 |
file_to_string(cfname, stylesheet);
|
190 |
file_to_string(cfname, stylesheet);
|
191 |
qApp->setStyleSheet(QString::fromAscii(stylesheet.c_str()));
|
191 |
qApp->setStyleSheet(QString::fromUtf8(stylesheet.c_str()));
|
192 |
} else {
|
192 |
} else {
|
193 |
qApp->setStyleSheet(QString());
|
193 |
qApp->setStyleSheet(QString());
|
194 |
}
|
194 |
}
|
195 |
}
|
195 |
}
|
196 |
|
196 |
|