diff options
| author | Johann Latocha | 2010-08-29 00:59:36 +0200 |
|---|---|---|
| committer | Johann Latocha | 2010-08-29 00:59:36 +0200 |
| commit | 6cb55b01dcd5306d5d17ff007085770ba5918ef4 (patch) | |
| tree | d07c1d3df167abacbc6c863929b42abcb4bdbecc /src/gui | |
| parent | Uninstall target added (diff) | |
| download | pvs-6cb55b01dcd5306d5d17ff007085770ba5918ef4.tar.gz pvs-6cb55b01dcd5306d5d17ff007085770ba5918ef4.tar.xz pvs-6cb55b01dcd5306d5d17ff007085770ba5918ef4.zip | |
Feature #633
Diffstat (limited to 'src/gui')
| -rw-r--r-- | src/gui/mainWindow.cpp | 4 | ||||
| -rw-r--r-- | src/gui/mainWindow.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp index 473c85b..9eeb719 100644 --- a/src/gui/mainWindow.cpp +++ b/src/gui/mainWindow.cpp @@ -40,9 +40,11 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { - ui->setupUi(this); + if (!QFile::exists(_settings.fileName())) + QFile::copy("/etc/openslx/pvsmgr.conf", _settings.fileName()); + ui->horizontalSlider->setValue(100); ui->label_2->setText("100"); diff --git a/src/gui/mainWindow.h b/src/gui/mainWindow.h index 1e4a18f..574be7e 100644 --- a/src/gui/mainWindow.h +++ b/src/gui/mainWindow.h @@ -159,6 +159,8 @@ private: QMenu* _profileMenuList; QMap<QString, QAction*> _mapProfileToAction; + QSettings _settings; + public slots: void loadProfile(QAction* actiontriggered); void setindexback(); |
