ui: scroll code horizontally to active sourcelocations

This commit is contained in:
Eberhard Graether
2018-07-22 19:40:01 +02:00
parent ad6f5c8727
commit 1db248a34e
7 changed files with 116 additions and 8 deletions
+3
View File
@@ -79,6 +79,7 @@ public:
Id getLocationIdOfFirstActiveLocation(Id tokenId) const;
Id getLocationIdOfFirstActiveScopeLocation(Id tokenId) const;
Id getLocationIdOfFirstHighlightedLocation() const;
size_t getActiveLocationCount() const;
@@ -87,6 +88,8 @@ public:
void findScreenMatches(const std::wstring& query, std::vector<std::pair<QtCodeArea*, Id>>* screenMatches);
void clearScreenMatches();
void ensureLocationIdVisible(Id locationId, int parentWidth, bool animated);
protected:
virtual void resizeEvent(QResizeEvent* event) Q_DECL_OVERRIDE;
virtual void mouseReleaseEvent(QMouseEvent* event) Q_DECL_OVERRIDE;