diff options
Diffstat (limited to 'ldmicro/ldmicro.cpp')
-rw-r--r-- | ldmicro/ldmicro.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ldmicro/ldmicro.cpp b/ldmicro/ldmicro.cpp index c8f266b..4e6942b 100644 --- a/ldmicro/ldmicro.cpp +++ b/ldmicro/ldmicro.cpp @@ -1388,6 +1388,15 @@ inline void MenuHandler () // G_CALLBACK(ProcessorCall), GINT_TO_POINTER((MNU_PROCESSOR_0 + i))); // } } +void ActivateItem(QTreeWidgetItem* item, int column) +{ + NMHDR h; + h.code = LVN_ITEMACTIVATE; + h.hlistFrom = IoList; + h.item.iItem = IoList->indexOfTopLevelItem(item); + QTreeWidgetItem* selection; + IoListProc(&h); +} //----------------------------------------------------------------------------- // Entry point into the program. @@ -1502,7 +1511,7 @@ int main(int argc, char** argv) // RefreshScrollbars(); UpdateMainWindowTitleBar(); - + QObject::connect(IoList, &QTreeWidget::itemActivated, ActivateItem); // MakeDialogBoxClass(); |