forked from qt-creator/qt-creator
Optimize BaseTextMark
Instead of each BaseTextMark being a QObject and being connected to editorOpened, centralize that and distribute the signal to only the BaseTextMarks that need it. Change-Id: I3f2783c34a25d78aa335418236850436028bfdf3 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -55,11 +55,11 @@ namespace TextEditor {
|
||||
|
||||
class ITextEditor;
|
||||
|
||||
class TEXTEDITOR_EXPORT ITextMark : public QObject
|
||||
class TEXTEDITOR_EXPORT ITextMark
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ITextMark() : m_priority(NormalPriority) {}
|
||||
virtual ~ITextMark();
|
||||
|
||||
// determine order on markers on the same line.
|
||||
enum Priority
|
||||
|
||||
Reference in New Issue
Block a user