cmake-plugin: 在 hello-simple 中添加 textChanged 信号监听测试 MSVC/MinGW 构建

This commit is contained in:
zinface 2024-03-19 17:05:11 +08:00
parent e4ab5422e5
commit bd756a8e9e
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@ void Hello::registerPluginActions(QMenu *rootMenu)
QVariant editName = PluginFrameworkHelper::DoNewEdit(s_notepad, s_plugin_callback);
QMessageBox::information(nullptr, "New Edit", editName.toString());
});
rootMenu->addAction("Monitor textChanged", this, [=](){
connect(s_get_cur_edit_callback(s_notepad), &QsciScintilla::textChanged, this, [](){
QMessageBox::information(nullptr, "Tip", "textChanged!");
});
});
rootMenu->addAction("Create New Plugin Code Template", this, [this](){
// 1. Dialog to PluginName and ClassName