logic: scroll code when no symbol
Scrolling to line, when comming from plugin and the file is was modified. Since there we dont know from the position data if the symbol on position is the right one, we scroll to the line if modified.
This commit is contained in:
@@ -47,6 +47,7 @@ public:
|
||||
virtual void showContents();
|
||||
|
||||
virtual void scrollToValue(int value);
|
||||
virtual void scrollToLine(std::string filename, unsigned int line);
|
||||
|
||||
private:
|
||||
void doRefreshView();
|
||||
@@ -68,6 +69,7 @@ private:
|
||||
void doShowContents();
|
||||
|
||||
void doScrollToValue(int value);
|
||||
void doScrollToLine(std::string filename, unsigned int line);
|
||||
|
||||
void setStyleSheet() const;
|
||||
|
||||
@@ -84,6 +86,7 @@ private:
|
||||
QtThreadedFunctor<> m_defocusTokenIdsFunctor;
|
||||
QtThreadedFunctor<> m_showContentsFunctor;
|
||||
QtThreadedFunctor<int> m_scrollToValueFunctor;
|
||||
QtThreadedFunctor<std::string, unsigned int> m_scrollToLineFunctor;
|
||||
|
||||
QtCodeFileList* m_widget;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user