diff options
author | David Schulz <david.schulz@qt.io> | 2022-09-06 13:01:51 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-09-07 04:17:37 +0000 |
commit | d8fcaf0a7370800518d6b8b94a4728b5f153b5e5 (patch) | |
tree | 7423088afc8c0b8cd0a7ca69c5c3901dffdf5286 /src/plugins/texteditor/textmark.h | |
parent | 2f093aec6694d63e3e46a3ce6cd9b98a163b081a (diff) |
Editor: paint location marker over everything else
The location marker is updated very regularly and especially while
stepping moves one line at a time. Resizing this marker when it enters a
line that already contains a marker is visually distracting. To prevent
this paint the marker over all other markers in that line.
Change-Id: I63ad72384e77eeae4dc6d2e2c2ac77c88da92c56
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/texteditor/textmark.h')
-rw-r--r-- | src/plugins/texteditor/textmark.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index ed0816224b..abeb0b7b41 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -111,6 +111,9 @@ public: void setActions(const QVector<QAction *> &actions); // Takes ownership void setActionsProvider(const std::function<QList<QAction *>()> &actionsProvider); // Takes ownership + bool isLocationMarker() const;; + void setIsLocationMarker(bool newIsLocationMarker); + protected: void setSettingsPage(Utils::Id settingsPage); @@ -121,6 +124,7 @@ private: Utils::FilePath m_fileName; int m_lineNumber = 0; Priority m_priority = LowPriority; + bool m_isLocationMarker = false; QIcon m_icon; std::function<QIcon()> m_iconProvider; std::optional<Utils::Theme::Color> m_color; |