theme
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user