diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-11-10 10:38:39 +0100 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-11-11 05:44:48 +0000 |
commit | ba425a034210949c4424d81078b42235bccf6766 (patch) | |
tree | bb1e5b57f50a11f556485604c250d79cfca1f2e0 /examples/serialbus/modbus/master/mainwindow.h | |
parent | ad31c1bb69db254f3b632c0d10bdb3f025b9e780 (diff) |
Add Menu and options dialog to master example
The settings dialog permits the setting of the response timeout.
It is expected that the dialog will cover more details later on.
Change-Id: Ia30355809fd1af5829b3040b86c142ecd2e7ff09
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/serialbus/modbus/master/mainwindow.h')
-rw-r--r-- | examples/serialbus/modbus/master/mainwindow.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/serialbus/modbus/master/mainwindow.h b/examples/serialbus/modbus/master/mainwindow.h index e6b99e3..9bec23c 100644 --- a/examples/serialbus/modbus/master/mainwindow.h +++ b/examples/serialbus/modbus/master/mainwindow.h @@ -50,10 +50,13 @@ class QModbusReply; namespace Ui { class MainWindow; +class SettingsDialog; } QT_END_NAMESPACE +class SettingsDialog; + class MainWindow : public QMainWindow { Q_OBJECT @@ -62,6 +65,9 @@ public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); +private: + void initActions(); + private slots: void on_connectButton_clicked(); void onStateChanged(int state); @@ -80,6 +86,7 @@ private: Ui::MainWindow *ui; QModbusReply* lastRequest; QModbusClient* modbusDevice; + SettingsDialog *m_settingsDialog; }; #endif // MAINWINDOW_H |