add:添加可以不用重启切换配置文件重新加载。
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <QTableWidget>
|
||||
#include <QWidget>
|
||||
#include <unordered_map>
|
||||
#include <QHBoxLayout>
|
||||
|
||||
#include "conf_setting.h"
|
||||
#include "src/attribute_edit.h"
|
||||
@@ -57,6 +58,7 @@ public:
|
||||
|
||||
private:
|
||||
bool read(const QString& file_path);
|
||||
void clear_data();
|
||||
void search(const QString& key);
|
||||
void item_changed_handle(QTableWidgetItem* item);
|
||||
void save();
|
||||
@@ -74,9 +76,10 @@ private:
|
||||
void copy_multi_data();
|
||||
void replace_content(bool is_common = true);
|
||||
void backup_file();
|
||||
void base_init();
|
||||
void base_init(const QString& cur_config);
|
||||
void unit_change();
|
||||
bool format_xml();
|
||||
void clear_tab_widget();
|
||||
|
||||
private:
|
||||
std::string extract_prefix(const std::string& name);
|
||||
@@ -126,5 +129,8 @@ private:
|
||||
CHistory* his_{};
|
||||
OneGroupIni cur_config_{};
|
||||
bool u_{false};
|
||||
bool alreay_open_{false};
|
||||
QHBoxLayout* lay_{};
|
||||
bool unit_change_auto_{true};
|
||||
};
|
||||
#endif // MAINWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user