logic: Fixed scrolling to line from plug-in and moved all code view scrolling into QtCodeNavigator
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user