From d8fcaf0a7370800518d6b8b94a4728b5f153b5e5 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 6 Sep 2022 13:01:51 +0200 Subject: 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 --- src/plugins/texteditor/textmark.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/texteditor/textmark.h') diff --git a/src/plugins/texteditor/textmark.h b/src/plugins/texteditor/textmark.h index ed0816224bc..abeb0b7b419 100644 --- a/src/plugins/texteditor/textmark.h +++ b/src/plugins/texteditor/textmark.h @@ -111,6 +111,9 @@ public: void setActions(const QVector &actions); // Takes ownership void setActionsProvider(const std::function()> &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 m_iconProvider; std::optional m_color; -- cgit v1.2.3