new-feature:1.添加带表达式内容的xml格式化。2.支持带特殊字符的读写,如& < > "。

This commit is contained in:
2024-09-14 00:02:48 +08:00
parent bb511d1bac
commit 6896fa5090
20 changed files with 332 additions and 95 deletions

View File

@@ -3,7 +3,8 @@
#include "src/ui_uhistory.h"
#include "ui_uhistory.h"
CUIHistory::CUIHistory(QWidget* parent, CHistory* his) : QDialog(parent), ui(new Ui::CUIHistory)
CUIHistory::CUIHistory(QWidget* parent, CHistory* his)
: QDialog(parent), ui(new Ui::CUIHistory)
{
ui->setupUi(this);
his_ = his;
@@ -38,7 +39,7 @@ void CUIHistory::select_ok()
{
auto re = ui->listWidget->selectedItems();
if (re.empty()) {
return ;
return;
}
cur_ = re[0]->text();
close();
@@ -48,7 +49,7 @@ void CUIHistory::del_item()
{
auto re = ui->listWidget->selectedItems();
if (re.empty()) {
return ;
return;
}
for (auto& item : re) {
delete ui->listWidget->takeItem(ui->listWidget->row(item));