logic: Fixed scrolling to line from plug-in and moved all code view scrolling into QtCodeNavigator

This commit is contained in:
Eberhard Graether
2016-08-10 16:16:32 +02:00
parent 2800c072ff
commit 6b51c7cfe4
15 changed files with 190 additions and 183 deletions
+13 -1
View File
@@ -64,9 +64,17 @@ public:
void updateFiles();
void showContents();
void showLocation(const FilePath& filePath, Id locationId, bool scrollTo);
void scrollToValue(int value);
void scrollToLine(std::string filename, unsigned int line);
void scrollToLine(const FilePath& filePath, unsigned int line);
void scrollToLocation(QtCodeFile* file, Id locationId, bool scrollTo);
void scrollToSnippetIfRequested();
void requestScrollToLine(QtCodeFile* file, unsigned int line);
signals:
void shouldScrollToSnippet(QtCodeSnippet* widget, uint lineNumber);
private slots:
void scrolled(int value);
@@ -113,6 +121,10 @@ private:
std::vector<Reference> m_references;
size_t m_refIndex;
QtCodeFile* m_scrollToFile;
uint m_scrollToLine;
Id m_scrollToLocationId;
};
#endif // QT_CODE_NAVIGATOR_H