1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

[Styles] Don't mention to use [style=QtStyle] selectors in comment

It is not available in current Qt releases

QzSchemeHandler+AboutDialog: Fixed coding style
This commit is contained in:
David Rosca 2014-04-19 11:23:25 +02:00
parent badb9ec98c
commit 8283a5a42e
3 changed files with 10 additions and 13 deletions

View File

@ -923,9 +923,6 @@ void MainApplication::loadTheme(const QString &name)
QString qss = QzTools::readAllFileContents(activeThemePath + QLatin1String("/main.css"));
// #id[style=QtStyle] (QtStyle = QMacStyle, QWindowsVistaStyle, QGtkStyle, ...)
// should be enough instead of loading special stylesheets
#if defined(Q_OS_MAC)
qss.append(QzTools::readAllFileContents(activeThemePath + QLatin1String("/linux.css")));
#elif defined(Q_OS_UNIX)
@ -939,7 +936,7 @@ void MainApplication::loadTheme(const QString &name)
}
QString relativePath = QDir::current().relativeFilePath(activeThemePath);
qss.replace(QzRegExp(QLatin1String("url\\s*\\(\\s*([^\\*:\\);]+)\\s*\\)"), Qt::CaseSensitive), QString("url(%1\\1)").arg(relativePath + "/"));
qss.replace(QzRegExp(QSL("url\\s*\\(\\s*([^\\*:\\);]+)\\s*\\)"), Qt::CaseSensitive), QString("url(%1/\\1)").arg(relativePath));
setStyleSheet(qss);
}