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:
defnax 2008-01-19 17:13:50 +00:00
parent 6936a4d311
commit ad8562467f

View File

@ -554,11 +554,15 @@ 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);
}