new-feature:1.添加带表达式内容的xml格式化。2.支持带特殊字符的读写,如& < > "。
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user