#include "Function.hxx"
#include "InformationManager.hxx"
#include "events/ChangeCommentEvent.hxx"
+#include "qt.hxx"
Comment::Comment(uint64_t address, InformationManager* manager)
: address(address)
void Comment::setText(const std::string& text) {
ChangeCommentEvent event(address, location, this);
this->text = text;
- manager->dispatch(&event);
+ emit manager->changeCommentEvent(&event);
}
uint64_t Comment::getAddress() {