summaryrefslogtreecommitdiff
path: root/examples/serialport/blockingmaster
diff options
context:
space:
mode:
Diffstat (limited to 'examples/serialport/blockingmaster')
-rw-r--r--examples/serialport/blockingmaster/dialog.cpp2
-rw-r--r--examples/serialport/blockingmaster/dialog.h2
-rw-r--r--examples/serialport/blockingmaster/masterthread.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/serialport/blockingmaster/dialog.cpp b/examples/serialport/blockingmaster/dialog.cpp
index c1ca850..08403c3 100644
--- a/examples/serialport/blockingmaster/dialog.cpp
+++ b/examples/serialport/blockingmaster/dialog.cpp
@@ -81,7 +81,7 @@ Dialog::Dialog(QWidget *parent)
waitResponseSpinBox->setRange(0, 10000);
waitResponseSpinBox->setValue(1000);
- QGridLayout *mainLayout = new QGridLayout;
+ auto mainLayout = new QGridLayout;
mainLayout->addWidget(serialPortLabel, 0, 0);
mainLayout->addWidget(serialPortComboBox, 0, 1);
mainLayout->addWidget(waitResponseLabel, 1, 0);
diff --git a/examples/serialport/blockingmaster/dialog.h b/examples/serialport/blockingmaster/dialog.h
index 4f0e331..aff8177 100644
--- a/examples/serialport/blockingmaster/dialog.h
+++ b/examples/serialport/blockingmaster/dialog.h
@@ -70,7 +70,7 @@ class Dialog : public QDialog
Q_OBJECT
public:
- Dialog(QWidget *parent = 0);
+ explicit Dialog(QWidget *parent = nullptr);
private slots:
void transaction();
diff --git a/examples/serialport/blockingmaster/masterthread.h b/examples/serialport/blockingmaster/masterthread.h
index ffb6602..f23559f 100644
--- a/examples/serialport/blockingmaster/masterthread.h
+++ b/examples/serialport/blockingmaster/masterthread.h
@@ -61,11 +61,11 @@ class MasterThread : public QThread
Q_OBJECT
public:
- MasterThread(QObject *parent = 0);
+ explicit MasterThread(QObject *parent = nullptr);
~MasterThread();
void transaction(const QString &portName, int waitTimeout, const QString &request);
- void run();
+ void run() Q_DECL_OVERRIDE;
signals:
void response(const QString &s);