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 | |
| parent | Uninstall target added (diff) | |
| download | pvs-6cb55b01dcd5306d5d17ff007085770ba5918ef4.tar.gz pvs-6cb55b01dcd5306d5d17ff007085770ba5918ef4.tar.xz pvs-6cb55b01dcd5306d5d17ff007085770ba5918ef4.zip | |
Feature #633
Diffstat (limited to 'src')
| -rw-r--r-- | src/gui/mainWindow.cpp | 4 | ||||
| -rw-r--r-- | src/gui/mainWindow.h | 2 | ||||
| -rwxr-xr-x | src/pvs.cpp | 3 | ||||
| -rw-r--r-- | src/pvsgui.cpp | 3 |
4 files changed, 11 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(); diff --git a/src/pvs.cpp b/src/pvs.cpp index 21b7bdf..bcd2a48 100755 --- a/src/pvs.cpp +++ b/src/pvs.cpp @@ -30,6 +30,9 @@ extern PVS *mainClient; PVS::PVS() : QObject() { + if (!QFile::exists(_settings.fileName())) + QFile::copy("/etc/openslx/pvs.conf", _settings.fileName()); + _pvsServerConnection = new PVSServerConnection(this); _locked = false; _vncAllowed = false; diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp index 0d89027..41a79b9 100644 --- a/src/pvsgui.cpp +++ b/src/pvsgui.cpp @@ -24,6 +24,9 @@ PVSGUI::PVSGUI(QWidget *parent) : { setupUi(this); + if (!QFile::exists(_settings.fileName())) + QFile::copy("/etc/openslx/pvsgui.conf", _settings.fileName()); + _menu = new QMenu(this); _hostMenu = new QMenu(tr("Connect"), this); _hosts = new QHash<QString, QAction*> (); |
