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
+1 -12
View File
@@ -23,9 +23,6 @@ class QtCodeFileList
{
Q_OBJECT
signals:
void shouldScrollToSnippet(QtCodeSnippet* widget, uint lineNumber);
public:
QtCodeFileList(QtCodeNavigator* navigator);
virtual ~QtCodeFileList();
@@ -35,8 +32,6 @@ public:
void clearCodeSnippets();
void showLocation(const FilePath& filePath, Id locationId, bool scrollTo);
void requestFileContent(const FilePath& filePath);
void setFileMinimized(const FilePath path);
@@ -46,12 +41,9 @@ public:
void updateFiles();
void showContents();
void scrollToLocation(QtCodeFile* file, Id locationId, bool scrollTo);
void scrollToLine(std::string filename, unsigned int line);
void scrollToSnippetIfRequested();
QtCodeFile* getFile(const FilePath filePath);
private:
QtCodeFile* getFile(const FilePath filePath);
QtCodeSnippet* getFirstActiveSnippet() const;
void expandActiveSnippetFile(bool scrollTo);
@@ -59,9 +51,6 @@ private:
QtCodeNavigator* m_navigator;
std::vector<std::shared_ptr<QtCodeFile>> m_files;
QtCodeFile* m_scrollToFile;
Id m_scrollToLocationId;
};
#endif // QT_CODE_FILE_LIST