change:添加导入时根据搜索key刷新,添加同结构xml文件加载时禁用排序。
This commit is contained in:
parent
49c4a40dc9
commit
bb511d1bac
@ -19,7 +19,7 @@ MainWidget::MainWidget(QWidget* parent) : QWidget(parent), ui(new Ui::MainWidget
|
|||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
setWindowTitle(u8"OneLevelXmlOpr v1.3.3");
|
setWindowTitle(u8"OneLevelXmlOpr v1.3.4");
|
||||||
setWindowIcon(QIcon("://resource/xml.ico"));
|
setWindowIcon(QIcon("://resource/xml.ico"));
|
||||||
|
|
||||||
QScreen* primaryScreen = QGuiApplication::primaryScreen();
|
QScreen* primaryScreen = QGuiApplication::primaryScreen();
|
||||||
@ -88,7 +88,7 @@ MainWidget::MainWidget(QWidget* parent) : QWidget(parent), ui(new Ui::MainWidget
|
|||||||
|
|
||||||
current_.clear();
|
current_.clear();
|
||||||
current_ = vec_;
|
current_ = vec_;
|
||||||
push_content(current_);
|
search(ui->edSearchKey->text());
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(ui->btnSet, &QPushButton::clicked, this, [&]() {
|
connect(ui->btnSet, &QPushButton::clicked, this, [&]() {
|
||||||
@ -344,6 +344,7 @@ bool MainWidget::read(const QString& file_path)
|
|||||||
ui->cbUnit->setCurrentIndex(0);
|
ui->cbUnit->setCurrentIndex(0);
|
||||||
}
|
}
|
||||||
u_ = false;
|
u_ = false;
|
||||||
|
ui->btnResort->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
ui->cbUnit->setEnabled(false);
|
ui->cbUnit->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user