This commit is contained in:
2025-11-14 00:35:50 +08:00
parent cf6368f064
commit b2b295ea72
15 changed files with 677 additions and 192 deletions
@@ -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);