diff options
author | Simon Rettberg | 2014-02-07 18:01:30 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-02-07 18:01:30 +0100 |
commit | 290046118326ae16dacfcba94378060902dd14cb (patch) | |
tree | 227029e3b48deb1d4d01ce497d9ec3b8d47f7a61 /src/dialog.h | |
parent | Check if the window is still centered once a second and move it if neccessary. (diff) | |
download | vmchooser-290046118326ae16dacfcba94378060902dd14cb.tar.gz vmchooser-290046118326ae16dacfcba94378060902dd14cb.tar.xz vmchooser-290046118326ae16dacfcba94378060902dd14cb.zip |
Add support for autostarting a session predefined in /opt/openslx/config in SLX_BENCHMARK_VMHEADmaster
Diffstat (limited to 'src/dialog.h')
-rw-r--r-- | src/dialog.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dialog.h b/src/dialog.h index cc3627a..d1daa68 100644 --- a/src/dialog.h +++ b/src/dialog.h @@ -19,10 +19,11 @@ class Dialog : public QDialog { explicit Dialog(QWidget *parent = 0); ~Dialog(); void addItems(const QList<Session*>&, const QString& section); - void selectSession(const QString& name); + bool selectSession(const QString& name); void selectPreviousSession(); void showSettingsPVS(); void setTheme(); + void startSession(const QString& name); protected: void changeEvent(QEvent *e); @@ -33,6 +34,7 @@ class Dialog : public QDialog { QSettings *pvsSettings_; QPoint oldCenter_; QTimer *centerTimer_; + QString autoStartEntry_; void readPVSSettings(); void writePVSSettings(); |