]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/Comment.cxx
Move to Qt Signal/Slots
[frida/frida.git] / src / core / Comment.cxx
index e864ef673cb71abc182a0b51cbc1d2aa8528a667..2e6ce6153ef694c6e1867116ac0c75e618c0871f 100644 (file)
@@ -2,6 +2,7 @@
 #include "Function.hxx"
 #include "InformationManager.hxx"
 #include "events/ChangeCommentEvent.hxx"
+#include "qt.hxx"
 
 Comment::Comment(uint64_t address, InformationManager* manager)
        : address(address)
@@ -16,7 +17,7 @@ Comment::Comment(uint64_t address, Function* location, InformationManager* manag
 void Comment::setText(const std::string& text) {
        ChangeCommentEvent event(address, location, this);
        this->text = text;
-       manager->dispatch(&event);
+       Q_EMIT manager->changeCommentEvent(&event);
 }
 
 uint64_t Comment::getAddress() {