This commit is contained in:
2025-06-07 01:50:29 +08:00
parent 20a8cbaf85
commit 2d7fd92013
188 changed files with 7311 additions and 6 deletions

View File

@@ -1,10 +1,11 @@
#include "qformatset.h"
#include <QFile>
#include "../public_def.h"
#include "ui_qformatset.h"
QFormatSet::QFormatSet(QWidget* parent)
: QDialog(parent), ui(new Ui::QFormatSet)
QFormatSet::QFormatSet(QWidget* parent) : QDialog(parent), ui(new Ui::QFormatSet)
{
ui->setupUi(this);
connect(ui->btnOk, &QPushButton::clicked, this, [&]() { handle(); });
@@ -14,13 +15,16 @@ QFormatSet::QFormatSet(QWidget* parent)
});
connect(ui->cbAll, &QCheckBox::toggled, this, [&]() { check_select(); });
connect(ui->btnSelect, &QPushButton::clicked, this, [&]() {
QString file = CUtil::select_file(this, u8"请选择xml文件",
u8"XML(*.xml);;所有文件 (*)");
QString file = CUtil::select_file(this, u8"请选择xml文件", u8"XML(*.xml);;所有文件 (*)");
if (file.isEmpty()) {
return;
}
ui->edXmlPath->setText(file);
});
QFile file(":/QtTheme/theme/Flat/Light/Blue/Pink.qss");
if (file.open(QFile::ReadOnly)) {
setStyleSheet(file.readAll());
}
}
QFormatSet::~QFormatSet()