fixed bc mode v2
This commit is contained in:
29
mainwindow.h
29
mainwindow.h
@@ -19,37 +19,20 @@ private:
|
||||
|
||||
public slots:
|
||||
//void getlineedit();
|
||||
//void sendcmdwrd();
|
||||
//void bchandler();
|
||||
void rthandler();
|
||||
void HexBinChange();
|
||||
|
||||
private:
|
||||
QWidget *Window_1 = new QWidget;
|
||||
QWidget *Window_2 = new QWidget;
|
||||
|
||||
QLabel *HexBinLabel;
|
||||
QPushButton *HexBinButton;
|
||||
QLabel *RtModeLabel;
|
||||
QPushButton *StartRtModeButton;
|
||||
|
||||
QLabel *BcModeLabel;
|
||||
QPushButton *StartBcModeButton;
|
||||
|
||||
QLabel *CmdWordLabel;
|
||||
QLineEdit *CmdWordLineEdit;
|
||||
QPushButton *EnterCmdWordButton;
|
||||
QTableWidget *DataTable;
|
||||
|
||||
protected:
|
||||
|
||||
void keyPressEvent(QKeyEvent *event) override
|
||||
{
|
||||
if (loopActive)
|
||||
{
|
||||
loopActive = false;
|
||||
qDebug() << "Key pressed! Stopping loop.";
|
||||
}
|
||||
QWidget::keyPressEvent(event);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
bool loopActive = true;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
Reference in New Issue
Block a user