2009-07-23 13:11:51 -04:00
|
|
|
/****************************************************************
|
|
|
|
* RetroShare is distributed under the following license:
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 - 2009 RetroShare Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2009-08-19 18:15:16 -04:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
2009-07-23 13:11:51 -04:00
|
|
|
* Boston, MA 02110-1301, USA.
|
|
|
|
****************************************************************/
|
|
|
|
|
2017-01-18 14:18:12 -05:00
|
|
|
#include <QCheckBox>
|
2010-07-23 14:52:58 -04:00
|
|
|
#include <QDir>
|
2017-01-18 14:18:12 -05:00
|
|
|
#include <QFileInfo>
|
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QStatusBar>
|
|
|
|
#include <QStyleFactory>
|
2009-07-23 13:11:51 -04:00
|
|
|
|
2010-07-23 14:52:58 -04:00
|
|
|
#include "lang/languagesupport.h"
|
2009-07-23 13:11:51 -04:00
|
|
|
#include <rshare.h>
|
|
|
|
#include "AppearancePage.h"
|
2010-05-11 16:02:52 -04:00
|
|
|
#include "rsharesettings.h"
|
2014-05-29 12:15:26 -04:00
|
|
|
#include "gui/MainWindow.h"
|
2017-01-18 14:18:12 -05:00
|
|
|
#include "gui/statusbar/peerstatus.h"
|
|
|
|
#include "gui/statusbar/natstatus.h"
|
|
|
|
#include "gui/statusbar/dhtstatus.h"
|
|
|
|
#include "gui/statusbar/hashingstatus.h"
|
|
|
|
#include "gui/statusbar/discstatus.h"
|
|
|
|
#include "gui/statusbar/ratesstatus.h"
|
|
|
|
#include "gui/statusbar/OpModeStatus.h"
|
2014-05-29 12:15:26 -04:00
|
|
|
#include "gui/statusbar/SoundStatus.h"
|
|
|
|
#include "gui/statusbar/ToasterDisable.h"
|
2014-11-02 15:29:06 -05:00
|
|
|
#include "gui/statusbar/SysTrayStatus.h"
|
2009-07-23 13:11:51 -04:00
|
|
|
|
|
|
|
/** Constructor */
|
2013-10-18 17:10:33 -04:00
|
|
|
AppearancePage::AppearancePage(QWidget * parent, Qt::WindowFlags flags)
|
2012-08-24 19:35:57 -04:00
|
|
|
: ConfigPage(parent, flags)
|
2009-07-23 13:11:51 -04:00
|
|
|
{
|
2012-08-24 19:35:57 -04:00
|
|
|
/* Invoke the Qt Designer generated object setup routine */
|
|
|
|
ui.setupUi(this);
|
2009-07-23 13:11:51 -04:00
|
|
|
|
2014-05-09 22:38:47 -04:00
|
|
|
connect(ui.cmboStyleSheet, SIGNAL(activated(int)), this, SLOT(loadStyleSheet(int)));
|
2017-01-18 14:18:12 -05:00
|
|
|
|
2017-01-26 16:35:33 -05:00
|
|
|
connect(ui.grpStatus, SIGNAL(toggled(bool)), this /* pMainWindow->statusBar(), */, SLOT(switch_status_grpStatus(bool)));
|
|
|
|
connect(ui.checkBoxStatusCompactMode, SIGNAL(toggled(bool)), this /* pMainWindow, */, SLOT(switch_status_compactMode(bool)));
|
|
|
|
connect(ui.checkBoxDisableSysTrayToolTip, SIGNAL(toggled(bool)), this /* pMainWindow, */, SLOT(switch_status_showToolTip(bool)));
|
|
|
|
connect(ui.checkBoxShowStatusStatus, SIGNAL(toggled(bool)), this /* pMainWindow->statusComboBoxInstance(), */, SLOT(switch_status_ShowStatus(bool)));
|
|
|
|
connect(ui.checkBoxShowPeerStatus, SIGNAL(toggled(bool)), this /* pMainWindow->peerstatusInstance(), */, SLOT(switch_status_ShowStatus(bool)));
|
|
|
|
connect(ui.checkBoxShowNATStatus, SIGNAL(toggled(bool)), this /* pMainWindow->natstatusInstance(), */, SLOT(switch_status_ShowPeer(bool)));
|
|
|
|
connect(ui.checkBoxShowDHTStatus, SIGNAL(toggled(bool)), this /* pMainWindow->dhtstatusInstance(), */, SLOT(switch_status_ShowDHT(bool)));
|
|
|
|
connect(ui.checkBoxShowHashingStatus, SIGNAL(toggled(bool)), this /* pMainWindow->hashingstatusInstance(), */, SLOT(switch_status_ShowHashing(bool)));
|
|
|
|
connect(ui.checkBoxShowDiscStatus, SIGNAL(toggled(bool)), this /* pMainWindow->discstatusInstance(), */, SLOT(switch_status_ShowDisc(bool)));
|
|
|
|
connect(ui.checkBoxShowRateStatus, SIGNAL(toggled(bool)), this /* pMainWindow->ratesstatusInstance(), */, SLOT(switch_status_ShowRate(bool)));
|
|
|
|
connect(ui.checkBoxShowOpModeStatus, SIGNAL(toggled(bool)), this /* pMainWindow->opModeStatusInstance(), */, SLOT(switch_status_ShowOpMode(bool)));
|
|
|
|
connect(ui.checkBoxShowSoundStatus, SIGNAL(toggled(bool)), this /* pMainWindow->soundStatusInstance(), */, SLOT(switch_status_ShowSound(bool)));
|
|
|
|
connect(ui.checkBoxShowToasterDisable, SIGNAL(toggled(bool)), this /* pMainWindow->toasterDisableInstance(), */, SLOT(switch_status_ShowToaster(bool)));
|
|
|
|
connect(ui.checkBoxShowSystrayOnStatus, SIGNAL(toggled(bool)), this /* pMainWindow->sysTrayStatusInstance(), */, SLOT(switch_status_ShowSystray(bool)));
|
2009-07-23 13:11:51 -04:00
|
|
|
|
2012-08-24 19:35:57 -04:00
|
|
|
/* Populate combo boxes */
|
|
|
|
foreach (QString code, LanguageSupport::languageCodes()) {
|
|
|
|
ui.cmboLanguage->addItem(QIcon(":/images/flags/" + code + ".png"), LanguageSupport::languageName(code), code);
|
|
|
|
}
|
|
|
|
foreach (QString style, QStyleFactory::keys()) {
|
|
|
|
ui.cmboStyle->addItem(style, style.toLower());
|
|
|
|
}
|
2009-08-19 18:15:16 -04:00
|
|
|
|
2012-08-24 19:35:57 -04:00
|
|
|
// add empty entry representing "no style sheet"
|
2014-05-09 22:38:47 -04:00
|
|
|
ui.cmboStyleSheet->addItem("", "");
|
2009-08-19 18:15:16 -04:00
|
|
|
|
2012-08-24 19:35:57 -04:00
|
|
|
QMap<QString, QString> styleSheets;
|
|
|
|
Rshare::getAvailableStyleSheets(styleSheets);
|
2009-07-23 13:11:51 -04:00
|
|
|
|
2012-08-24 19:35:57 -04:00
|
|
|
foreach (QString name, styleSheets.keys()) {
|
2014-05-09 22:38:47 -04:00
|
|
|
ui.cmboStyleSheet->addItem(name, styleSheets[name]);
|
2012-08-24 19:35:57 -04:00
|
|
|
}
|
2017-01-29 15:47:13 -05:00
|
|
|
|
2017-01-31 15:51:16 -05:00
|
|
|
connect(ui.cmboTollButtonsSize, SIGNAL(currentIndexChanged(int)), this, SLOT(updateCmboToolButtonSize() ));
|
|
|
|
connect(ui.cmboListItemSize, SIGNAL(currentIndexChanged(int)), this, SLOT(updateCmboListItemSize() ));
|
|
|
|
connect(ui.cmboTollButtonsStyle, SIGNAL(currentIndexChanged(int)), this, SLOT(updateCmboToolButtonStyle()));
|
|
|
|
connect(ui.cmboLanguage, SIGNAL(currentIndexChanged(int)), this, SLOT(updateLanguageCode() ));
|
|
|
|
connect(ui.cmboStyle, SIGNAL(currentIndexChanged(int)), this, SLOT(updateInterfaceStyle() ));
|
|
|
|
connect(ui.cmboStyleSheet, SIGNAL(currentIndexChanged(int)), this, SLOT(updateSheetName() ));
|
2017-01-29 15:47:13 -05:00
|
|
|
connect(ui.rbtPageOnToolBar, SIGNAL(toggled(bool)), this, SLOT(updateRbtPageOnToolBar() ));
|
|
|
|
connect(ui.rbtActionOnToolBar, SIGNAL(toggled(bool)), this, SLOT(updateActionButtonLoc() ));
|
|
|
|
connect(ui.checkBoxDisableSysTrayToolTip, SIGNAL(toggled(bool)), this, SLOT(updateStatusToolTip() ));
|
2009-07-23 13:11:51 -04:00
|
|
|
}
|
|
|
|
|
2017-01-29 15:47:13 -05:00
|
|
|
void AppearancePage::switch_status_grpStatus(bool b) { switch_status(MainWindow::StatusGrpStatus ,"ShowStatusBar", b) ; }
|
|
|
|
void AppearancePage::switch_status_compactMode(bool b) { switch_status(MainWindow::StatusCompactMode,"CompactMode", b) ; }
|
|
|
|
void AppearancePage::switch_status_showToolTip(bool b) { switch_status(MainWindow::StatusShowToolTip,"DisableSysTrayToolTip", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowStatus(bool b) { switch_status(MainWindow::StatusShowStatus ,"ShowStatus", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowPeer(bool b) { switch_status(MainWindow::StatusShowPeer ,"ShowPeer", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowDHT(bool b) { switch_status(MainWindow::StatusShowDHT ,"ShowDHT", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowHashing(bool b) { switch_status(MainWindow::StatusShowHashing,"ShowHashing", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowDisc(bool b) { switch_status(MainWindow::StatusShowDisc ,"ShowDisc", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowRate(bool b) { switch_status(MainWindow::StatusShowRate ,"ShowRate", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowOpMode(bool b) { switch_status(MainWindow::StatusShowOpMode ,"ShowOpMode", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowSound(bool b) { switch_status(MainWindow::StatusShowSound ,"ShowSound", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowToaster(bool b) { switch_status(MainWindow::StatusShowToaster,"ShowToaster", b) ; }
|
|
|
|
void AppearancePage::switch_status_ShowSystray(bool b) { switch_status(MainWindow::StatusShowSystray,"ShowSysTrayOnStatusBar",b) ; }
|
|
|
|
|
|
|
|
void AppearancePage::switch_status(MainWindow::StatusElement s,const QString& key, bool b)
|
2017-01-26 16:35:33 -05:00
|
|
|
{
|
|
|
|
MainWindow *pMainWindow = MainWindow::getInstance();
|
|
|
|
|
|
|
|
if(!pMainWindow)
|
|
|
|
return ;
|
|
|
|
|
2017-01-29 15:47:13 -05:00
|
|
|
Settings->setValueToGroup("StatusBar", key, QVariant(b));
|
|
|
|
|
2017-01-26 16:35:33 -05:00
|
|
|
pMainWindow->switchVisibilityStatus(s,b) ;
|
|
|
|
}
|
|
|
|
|
2017-01-29 15:47:13 -05:00
|
|
|
void AppearancePage::updateLanguageCode() { Settings->setLanguageCode(LanguageSupport::languageCode(ui.cmboLanguage->currentText())); }
|
2017-01-31 15:51:16 -05:00
|
|
|
void AppearancePage::updateInterfaceStyle()
|
|
|
|
{
|
|
|
|
Rshare::setStyle(ui.cmboStyle->currentText());
|
|
|
|
Settings->setInterfaceStyle(ui.cmboStyle->currentText());
|
|
|
|
}
|
2017-01-29 15:47:13 -05:00
|
|
|
void AppearancePage::updateSheetName() { Settings->setSheetName(ui.cmboStyleSheet->itemData(ui.cmboStyleSheet->currentIndex()).toString()); }
|
|
|
|
void AppearancePage::updateRbtPageOnToolBar() { Settings->setPageButtonLoc(ui.rbtPageOnToolBar->isChecked());}
|
|
|
|
void AppearancePage::updateActionButtonLoc() { Settings->setActionButtonLoc(ui.rbtActionOnToolBar->isChecked()); }
|
|
|
|
void AppearancePage::updateStatusToolTip() { MainWindow::getInstance()->toggleStatusToolTip(ui.checkBoxDisableSysTrayToolTip->isChecked()); }
|
2009-08-19 18:15:16 -04:00
|
|
|
|
2017-01-29 15:47:13 -05:00
|
|
|
void AppearancePage::updateCmboToolButtonStyle()
|
|
|
|
{
|
2014-05-09 22:38:47 -04:00
|
|
|
switch (ui.cmboTollButtonsStyle->currentIndex())
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
Settings->setToolButtonStyle(Qt::ToolButtonIconOnly);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
Settings->setToolButtonStyle(Qt::ToolButtonTextOnly);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
Settings->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
default:
|
|
|
|
Settings->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
|
|
|
}
|
2017-01-29 15:47:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
void AppearancePage::updateCmboToolButtonSize()
|
|
|
|
{
|
2014-05-09 22:38:47 -04:00
|
|
|
switch (ui.cmboTollButtonsSize->currentIndex())
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
Settings->setToolButtonSize(8);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
Settings->setToolButtonSize(16);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
default:
|
|
|
|
Settings->setToolButtonSize(24);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
Settings->setToolButtonSize(32);
|
2015-06-29 12:08:17 -04:00
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
Settings->setToolButtonSize(64);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
Settings->setToolButtonSize(128);
|
|
|
|
}
|
2017-01-29 15:47:13 -05:00
|
|
|
}
|
|
|
|
void AppearancePage::updateCmboListItemSize()
|
|
|
|
{
|
2014-05-10 14:05:18 -04:00
|
|
|
switch (ui.cmboListItemSize->currentIndex())
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
Settings->setListItemIconSize(8);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
Settings->setListItemIconSize(16);
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
default:
|
|
|
|
Settings->setListItemIconSize(24);
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
Settings->setListItemIconSize(32);
|
2015-06-29 12:08:17 -04:00
|
|
|
break;
|
|
|
|
case 4:
|
|
|
|
Settings->setListItemIconSize(64);
|
|
|
|
break;
|
|
|
|
case 5:
|
|
|
|
Settings->setListItemIconSize(128);
|
|
|
|
}
|
2009-07-23 13:11:51 -04:00
|
|
|
}
|
|
|
|
|
2017-01-29 15:47:13 -05:00
|
|
|
void AppearancePage::updateStyle() { Rshare::setStyle(ui.cmboStyle->currentText()); }
|
|
|
|
|
2012-08-24 19:35:57 -04:00
|
|
|
/** Loads the settings for this page */
|
|
|
|
void AppearancePage::load()
|
2009-07-23 13:11:51 -04:00
|
|
|
{
|
2012-08-24 19:35:57 -04:00
|
|
|
int index = ui.cmboLanguage->findData(Settings->getLanguageCode());
|
|
|
|
ui.cmboLanguage->setCurrentIndex(index);
|
|
|
|
|
|
|
|
index = ui.cmboStyle->findData(Rshare::style().toLower());
|
|
|
|
ui.cmboStyle->setCurrentIndex(index);
|
|
|
|
|
2014-05-09 22:38:47 -04:00
|
|
|
index = ui.cmboStyleSheet->findData(Settings->getSheetName());
|
2012-08-24 19:35:57 -04:00
|
|
|
if (index == -1) {
|
|
|
|
/* set standard "no style sheet" */
|
2014-05-09 22:38:47 -04:00
|
|
|
index = ui.cmboStyleSheet->findData("");
|
|
|
|
}
|
|
|
|
ui.cmboStyleSheet->setCurrentIndex(index);
|
|
|
|
|
|
|
|
ui.rbtPageOnToolBar->setChecked(Settings->getPageButtonLoc());
|
|
|
|
ui.rbtPageOnListItem->setChecked(!Settings->getPageButtonLoc());
|
|
|
|
ui.rbtActionOnToolBar->setChecked(Settings->getActionButtonLoc());
|
|
|
|
ui.rbtActionOnListItem->setChecked(!Settings->getActionButtonLoc());
|
|
|
|
switch (Settings->getToolButtonStyle())
|
|
|
|
{
|
|
|
|
case Qt::ToolButtonIconOnly:
|
|
|
|
ui.cmboTollButtonsStyle->setCurrentIndex(0);
|
|
|
|
break;
|
|
|
|
case Qt::ToolButtonTextOnly:
|
|
|
|
ui.cmboTollButtonsStyle->setCurrentIndex(1);
|
|
|
|
break;
|
|
|
|
case Qt::ToolButtonTextBesideIcon:
|
|
|
|
ui.cmboTollButtonsStyle->setCurrentIndex(2);
|
|
|
|
break;
|
|
|
|
case Qt::ToolButtonTextUnderIcon:
|
|
|
|
default:
|
|
|
|
ui.cmboTollButtonsStyle->setCurrentIndex(3);
|
|
|
|
}
|
|
|
|
switch (Settings->getToolButtonSize())
|
|
|
|
{
|
|
|
|
case 8:
|
|
|
|
ui.cmboTollButtonsSize->setCurrentIndex(0);
|
|
|
|
break;
|
|
|
|
case 16:
|
|
|
|
ui.cmboTollButtonsSize->setCurrentIndex(1);
|
|
|
|
break;
|
|
|
|
case 24:
|
|
|
|
default:
|
|
|
|
ui.cmboTollButtonsSize->setCurrentIndex(2);
|
|
|
|
break;
|
|
|
|
case 32:
|
|
|
|
ui.cmboTollButtonsSize->setCurrentIndex(3);
|
2015-06-29 12:08:17 -04:00
|
|
|
break;
|
|
|
|
case 64:
|
|
|
|
ui.cmboTollButtonsSize->setCurrentIndex(4);
|
|
|
|
break;
|
|
|
|
case 128:
|
|
|
|
ui.cmboTollButtonsSize->setCurrentIndex(5);
|
|
|
|
}
|
2014-05-10 14:05:18 -04:00
|
|
|
switch (Settings->getListItemIconSize())
|
|
|
|
{
|
|
|
|
case 8:
|
|
|
|
ui.cmboListItemSize->setCurrentIndex(0);
|
|
|
|
break;
|
|
|
|
case 16:
|
|
|
|
ui.cmboListItemSize->setCurrentIndex(1);
|
|
|
|
break;
|
|
|
|
case 24:
|
|
|
|
default:
|
|
|
|
ui.cmboListItemSize->setCurrentIndex(2);
|
|
|
|
break;
|
|
|
|
case 32:
|
|
|
|
ui.cmboListItemSize->setCurrentIndex(3);
|
2015-06-29 12:08:17 -04:00
|
|
|
break;
|
|
|
|
case 64:
|
|
|
|
ui.cmboListItemSize->setCurrentIndex(4);
|
|
|
|
break;
|
|
|
|
case 128:
|
|
|
|
ui.cmboListItemSize->setCurrentIndex(5);
|
|
|
|
}
|
2014-05-29 12:15:26 -04:00
|
|
|
|
2017-01-18 14:18:12 -05:00
|
|
|
ui.grpStatus->setChecked(Settings->valueFromGroup("StatusBar", "ShowStatusBar", QVariant(true)).toBool());
|
2014-05-29 12:15:26 -04:00
|
|
|
ui.checkBoxStatusCompactMode->setChecked(Settings->valueFromGroup("StatusBar", "CompactMode", QVariant(false)).toBool());
|
2015-09-01 08:43:29 -04:00
|
|
|
ui.checkBoxDisableSysTrayToolTip->setChecked(Settings->valueFromGroup("StatusBar", "DisableSysTrayToolTip", QVariant(false)).toBool());
|
2017-01-18 14:18:12 -05:00
|
|
|
ui.checkBoxShowStatusStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowStatus", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowPeerStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowPeer", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowNATStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowNAT", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowDHTStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowDHT", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowHashingStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowHashing", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowDiscStatus-> setChecked(Settings->valueFromGroup("StatusBar", "Show eDisc", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowRateStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowRate", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowOpModeStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowOpMode", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowSoundStatus-> setChecked(Settings->valueFromGroup("StatusBar", "ShowSound", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowToasterDisable->setChecked(Settings->valueFromGroup("StatusBar", "ShowToaster", QVariant(true)).toBool());
|
|
|
|
ui.checkBoxShowSystrayOnStatus->setChecked(Settings->valueFromGroup("StatusBar", "ShowSysTrayOnStatusBar", QVariant(false)).toBool());
|
2014-05-29 12:15:26 -04:00
|
|
|
|
2009-07-23 13:11:51 -04:00
|
|
|
}
|
|
|
|
|
2012-08-24 19:35:57 -04:00
|
|
|
void AppearancePage::loadStyleSheet(int index)
|
2009-07-23 13:11:51 -04:00
|
|
|
{
|
2014-05-09 22:38:47 -04:00
|
|
|
Rshare::loadStyleSheet(ui.cmboStyleSheet->itemData(index).toString());
|
2009-08-19 18:15:16 -04:00
|
|
|
}
|