mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
implemented save stylesheets feature, but seems not work correctly, need to be fixed.save and load stylsheets works but loading saved stylsheets works at the moment when only opened the Options.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@297 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fed8983cdb
commit
1b42c9457e
5 changed files with 83 additions and 15 deletions
|
@ -60,6 +60,8 @@ public:
|
|||
static bool setLanguage(QString languageCode = QString());
|
||||
/** Sets the current GUI style. */
|
||||
static bool setStyle(QString styleKey = QString());
|
||||
/** Sets the current GUI stylesheet. */
|
||||
static bool setSheet(QString sheet = QString());
|
||||
/** Shows the specified help topic, or the default if empty. */
|
||||
//static void help(QString topic = QString());
|
||||
|
||||
|
@ -67,11 +69,11 @@ public:
|
|||
static QString language() { return _language; }
|
||||
/** Returns the current GUI style. */
|
||||
static QString style() { return _style; }
|
||||
/** Returns the current GUI stylesheet. */
|
||||
static QString stylesheet() { return _stylesheet; }
|
||||
/** Returns Rshare's application version. */
|
||||
static QString version() { return RSHARE_VERSION; }
|
||||
|
||||
/** Returns Rshare's main TorControl object. */
|
||||
// static TorControl* torControl() { return _torControl; }
|
||||
|
||||
/** Returns the location Rshare uses for its data files. */
|
||||
static QString dataDirectory();
|
||||
|
@ -101,6 +103,7 @@ private:
|
|||
|
||||
static QMap<QString, QString> _args; /**< List of command-line arguments. */
|
||||
static QString _style; /**< The current GUI style. */
|
||||
static QString _stylesheet; /**< The current GUI stylesheet. */
|
||||
static QString _language; /**< The current language. */
|
||||
|
||||
static bool useConfigDir;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue