mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-15 01:49:35 -04:00
-fixed stylesheet loading.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@298 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1b42c9457e
commit
da88c394f0
2 changed files with 6 additions and 7 deletions
|
@ -85,16 +85,13 @@ GeneralDialog::load()
|
|||
index = ui.cmboStyle->findData(Rshare::style().toLower());
|
||||
ui.cmboStyle->setCurrentIndex(index);
|
||||
|
||||
index = ui.styleSheetCombo->findData(Rshare::stylesheet().toLower());
|
||||
ui.styleSheetCombo->setCurrentIndex(index);
|
||||
|
||||
//index = ui.styleSheetCombo->findData(_settings->getSheetName());
|
||||
//ui.styleSheetCombo->setCurrentIndex(index);
|
||||
ui.styleSheetCombo->setCurrentIndex(ui.styleSheetCombo->findText(_settings->getSheetName()));
|
||||
|
||||
/* load internal styleSheet */
|
||||
/** load saved internal styleSheet **/
|
||||
//QFile file(":/qss/" + (_settings->getSheetName().toLower()) + ".qss");
|
||||
|
||||
/** load extern Stylesheets **/
|
||||
/** load saved extern Stylesheets **/
|
||||
QFile file(QApplication::applicationDirPath() + "/qss/" + (_settings->getSheetName().toLower()) + ".qss");
|
||||
|
||||
file.open(QFile::ReadOnly);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue