-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialog.h
46 lines (33 loc) · 907 Bytes
/
dialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QStringListModel>
#include <QListView>
namespace Ui {
class Dialog;
}
class MainWindow;
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = nullptr);
~Dialog();
void update(){on_pushButtonUpdate_clicked();}
public slots:
void on_pushButtonAdd_clicked();
void on_pushButtonRefreshPort_clicked();
void on_pushButtonDelete_clicked();
void onCurrentChanged(const QModelIndex ¤t, const QModelIndex &previous);
void on_pushButtonUpdate_clicked();
void on_pushButtonClearAll_clicked();
void on_pushButtonAutoconnect_clicked();
private:
Ui::Dialog *ui;
MainWindow *mainWindow;
QSerialPortInfo info;
QStringListModel *model;
};
#endif // DIALOG_H