mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -04:00
fixed to load saved extern stylesheets bether.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@300 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6936a4d311
commit
ad8562467f
1 changed files with 6 additions and 2 deletions
|
@ -554,11 +554,15 @@ void MainWindow::showToolboxFrame(bool show)
|
||||||
|
|
||||||
void MainWindow::loadStyleSheet(const QString &sheetName)
|
void MainWindow::loadStyleSheet(const QString &sheetName)
|
||||||
{
|
{
|
||||||
QFile file(":/qss/" + sheetName.toLower() + ".qss");
|
/** internal Stylesheets **/
|
||||||
|
//QFile file(":/qss/" + sheetName.toLower() + ".qss");
|
||||||
|
|
||||||
|
/** extern Stylesheets **/
|
||||||
|
QFile file(QApplication::applicationDirPath() + "/qss/" + sheetName.toLower() + ".qss");
|
||||||
|
|
||||||
file.open(QFile::ReadOnly);
|
file.open(QFile::ReadOnly);
|
||||||
QString styleSheet = QLatin1String(file.readAll());
|
QString styleSheet = QLatin1String(file.readAll());
|
||||||
|
|
||||||
|
|
||||||
qApp->setStyleSheet(styleSheet);
|
qApp->setStyleSheet(styleSheet);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue