func:添加属性编辑功能。

This commit is contained in:
2024-05-16 00:09:26 +08:00
parent a640f149f5
commit 6783e6e4f8
5 changed files with 41 additions and 8 deletions

View File

@@ -21,8 +21,9 @@ protected:
void showEvent(QShowEvent* event) override;
public:
void set_attribute(const Property_t& property);
void set_attribute(const Property_t& property, bool is_key_edit = true);
void get_attribute(Property_t& property);
private:
void show_before();
void init_table();
@@ -35,6 +36,7 @@ private:
Ui::CAttributeEdit* ui;
Property_t property_{};
QTableWidget* table_{};
bool is_key_edit_{true};
};
#endif // ATTRIBUTE_EDIT_H