完善KB3

This commit is contained in:
hm
2020-12-05 14:39:44 +08:00
parent 454718e248
commit 59825f9b4c
11 changed files with 758 additions and 646 deletions
+13
View File
@@ -418,6 +418,17 @@ void CommandUI::on_commandClicked()
{
//qDebug() << "clicked";
if(m_command == 0)
{
QMessageBox *msg = new QMessageBox();
msg->setWindowTitle(tr("Notice"));
msg->setText(tr("please set command first ,command :%1").arg(m_command));
msg->show();
return;
}
//找到消息的发送者
CommandButton *btn = qobject_cast<CommandButton *>(sender());
@@ -566,6 +577,8 @@ void CommandUI::commandAccepted(bool flag,uint16_t command,uint8_t result)
}
}
m_command = 0;
m_name.clear();
}
}
+3
View File
@@ -38,6 +38,9 @@
#include "Config/Config.h"
#include "QMessageBox"
namespace Ui {
class CommandUI;
}