备份
This commit is contained in:
@@ -61,7 +61,7 @@ class runCommandWidget : public QDialog {
|
||||
public:
|
||||
explicit runCommandWidget(QWidget* parent = nullptr)
|
||||
: QDialog(parent) {
|
||||
this->setWindowTitle("执行命令");
|
||||
this->setWindowTitle(TR("Execute Command"));
|
||||
this->setObjectName("runCommandWidget");
|
||||
this->setStyleSheet(QString("QDialog#runCommandWidget {background-color: rgb(%1);border: 2px solid #000000;border-radius: 6px;}").arg(sColor_Blue));
|
||||
|
||||
@@ -99,10 +99,10 @@ public slots:
|
||||
connect(funcBtn, &fancyButtonText::clicked, this, [this, uuid]() {
|
||||
QMessageBox::StandardButton reply;
|
||||
reply = QMessageBox::question(
|
||||
this, // 父窗口
|
||||
"提示", // 标题
|
||||
"确定要执行此操作吗?", // 内容
|
||||
QMessageBox::Yes | QMessageBox::No // 按钮
|
||||
this, // parent
|
||||
TR("Confirm"), // title
|
||||
TR("Are you sure you want to execute this action?"), // content
|
||||
QMessageBox::Yes | QMessageBox::No // buttons
|
||||
);
|
||||
if (reply == QMessageBox::Yes) {
|
||||
emit excuteCommandPreset(uuid);
|
||||
|
||||
Reference in New Issue
Block a user