diff --git a/mainwindow.h b/mainwindow.h --- a/mainwindow.h +++ b/mainwindow.h @@ -6,6 +6,7 @@ #include #include #include +#include #include namespace Ui { @@ -49,6 +50,8 @@ private: // note that serialPort should already have enough bytes present template double readSampleAs(); + QSignalMapper selectParityMapper; + private slots: void loadPortList(); void loadBaudRateList(); @@ -56,6 +59,7 @@ private slots: void selectPort(QString portName); void onPortToggled(bool open); void selectBaudRate(QString baudRate); + void selectParity(int parity); // parity must be one of QSerialPort::Parity void onDataReady(); void onPortError(QSerialPort::SerialPortError error);