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:
parent
badb9ec98c
commit
8283a5a42e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user