Loading...
Searching...
No Matches
CommentEdit.hpp
1#pragma once
2#include <QTextEdit>
3
4#include <verdigris>
5
6namespace Scenario
7{
8class CommentEdit final : public QTextEdit
9{
10 W_OBJECT(CommentEdit)
11public:
12 CommentEdit(const QString& comment, QWidget* parent)
13 : QTextEdit{comment, parent}
14 {
15 setMouseTracking(true);
16 }
17
18 void leaveEvent(QEvent* ev) override
19 {
20 QTextEdit::leaveEvent(ev);
21 editingFinished();
22 }
23
24public:
25 void editingFinished() W_SIGNAL(editingFinished);
26};
27}
Definition CommentEdit.hpp:9
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13