forked from qt-creator/qt-creator
Editor: Refactor Open Link in Next Split.
Cleanup code and added shortcuts and menu entries for - open header/source in next split - follow symbol under cursor in next split - open declaration/definition in next split Change-Id: I2c4347749d26669d88b7c2968f30f60710f442b1 Reviewed-by: Petar Perisin <petar.perisin@gmail.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -181,11 +181,8 @@ public:
|
||||
void setLineNumbersVisible(bool b);
|
||||
bool lineNumbersVisible() const;
|
||||
|
||||
void setOpenLinksInNextSplit(bool b);
|
||||
bool openLinksInNextSplit() const;
|
||||
|
||||
void setForceOpenLinksInNextSplit(bool b);
|
||||
bool forceOpenLinksInNextSplit() const;
|
||||
void setAlwaysOpenLinksInNextSplit(bool b);
|
||||
bool alwaysOpenLinksInNextSplit() const;
|
||||
|
||||
void setMarksVisible(bool b);
|
||||
bool marksVisible() const;
|
||||
@@ -333,6 +330,7 @@ public slots:
|
||||
void unindent();
|
||||
|
||||
void openLinkUnderCursor();
|
||||
void openLinkUnderCursorInNextSplit();
|
||||
|
||||
signals:
|
||||
void changed();
|
||||
@@ -530,7 +528,7 @@ protected:
|
||||
Reimplement this function if you want to customize the way a link is
|
||||
opened. Returns whether the link was opened successfully.
|
||||
*/
|
||||
virtual bool openLink(const Link &link);
|
||||
virtual bool openLink(const Link &link, bool inNextSplit = false);
|
||||
|
||||
void maybeClearSomeExtraSelections(const QTextCursor &cursor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user