func:添加导入导出数据(未完成)。
This commit is contained in:
35
src/data_edit.h
Normal file
35
src/data_edit.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef DATA_EDIT_H
|
||||
#define DATA_EDIT_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class CDataEdit;
|
||||
}
|
||||
|
||||
class CDataEdit : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CDataEdit(QWidget* parent = nullptr);
|
||||
~CDataEdit();
|
||||
|
||||
public:
|
||||
void set_data(const QString& data);
|
||||
void import_data();
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void show_before();
|
||||
|
||||
public:
|
||||
bool is_import_{false};
|
||||
bool is_import_sucess_{false};
|
||||
|
||||
private:
|
||||
Ui::CDataEdit* ui;
|
||||
QString data_{};
|
||||
};
|
||||
|
||||
#endif // DATA_EDIT_H
|
||||
Reference in New Issue
Block a user