front back det added
This commit is contained in:
@@ -20,6 +20,7 @@ class switchProductWidget : public QWidget
|
||||
Q_OBJECT
|
||||
public:
|
||||
//
|
||||
bool disableTextChange = false;
|
||||
QMutex mutex;
|
||||
std::vector<productDataStruct>productDatas;
|
||||
int* currentProductIndexPtr;
|
||||
@@ -137,14 +138,16 @@ public slots:
|
||||
if (status == true)
|
||||
{
|
||||
startBtn->toDefault();
|
||||
startBtn->setText("运行");
|
||||
if(disableTextChange == false)
|
||||
startBtn->setText("运行");
|
||||
snIntputLine->setDisabled(false);
|
||||
std::cout << "按下软件运行" << std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
startBtn->toRed();
|
||||
startBtn->setText("急停");
|
||||
if (disableTextChange == false)
|
||||
startBtn->setText("急停");
|
||||
snIntputLine->setDisabled(true);
|
||||
std::cout << "按下软件急停" << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user