feat: preview edit custom

This commit is contained in:
arm64v8a
2023-01-02 16:13:12 +09:00
parent 5e1d0cdce4
commit 62aee79383
13 changed files with 269 additions and 168 deletions

View File

@@ -234,12 +234,11 @@ void DialogEditProfile::typeSelected(const QString &newType) {
delete old;
// 左边 bean inner editor
innerEditor->get_edit_dialog = [&]() {
return (QWidget *) this;
};
innerEditor->editor_cache_updated = [=] {
editor_cache_updated_impl();
};
innerEditor->get_edit_dialog = [&]() { return (QWidget *) this; };
innerEditor->get_edit_text_name = [&]() { return ui->name->text(); };
innerEditor->get_edit_text_serverAddress = [&]() { return ui->address->text(); };
innerEditor->get_edit_text_serverPort = [&]() { return ui->port->text(); };
innerEditor->editor_cache_updated = [=] { editor_cache_updated_impl(); };
innerEditor->onStart(ent);
// 左边 common