mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -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
@ -554,10 +554,14 @@ void MainWindow::showToolboxFrame(bool show)
|
||||
|
||||
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);
|
||||
QString styleSheet = QLatin1String(file.readAll());
|
||||
|
||||
|
||||
qApp->setStyleSheet(styleSheet);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user