-added new Preferences Dialog for Appearance

-moved some Settings from General to Appearance ( Language, Style, stylesheet
-added checkbox for Start RetroShare with System start in GeneralDialog
-moved Rsharesettings to Preferences folder to find bether 
-added new RSettings source 
-clean uped some old code stuff in MainWindow which is not more needed
-replaced in MainWindow PreferencesWindows open function with new one.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@684 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2008-08-15 00:23:27 +00:00
parent 4e43cb2f09
commit c84f34e916
28 changed files with 1779 additions and 490 deletions

View file

@ -97,16 +97,14 @@ RWindow::restoreWindowState()
QVariant
RWindow::getSetting(QString setting, QVariant defaultValue)
{
QString key = _name + "/" + setting;
return _settings->value(key, defaultValue);
return _settings->value(setting, defaultValue);
}
/** Saves a value associated with a property name for this window object. */
void
RWindow::saveSetting(QString prop, QVariant value)
{
QString key = _name + "/" + prop;
_settings->setValue(key, value);
_settings->setValue(prop, value);
}
/** Overloaded QWidget::setVisible(). If this window is already visible and

View file

@ -28,7 +28,7 @@
#include <QWidget>
#include <QVariant>
#include <QMainWindow>
#include <config/rsharesettings.h>
#include <gui/Preferences/rsharesettings.h>
class RWindow : public QMainWindow