diff options
author | Petar Perisin <petar.perisin@gmail.com> | 2012-11-01 03:43:28 +0100 |
---|---|---|
committer | David Schulz <david.schulz@digia.com> | 2013-01-11 12:48:44 +0100 |
commit | 39e9c5ef20df0b75eb8b5a1b27af609fa7ff20e3 (patch) | |
tree | 7d5fe369677aa4b2f2360ec3c359ecb7a346640f /src/plugins/texteditor/displaysettingspage.h | |
parent | c0e7b65db3dafcd6e50756133b39b31701903494 (diff) |
Editor: Allow to open links in a new split.
This changes current behavior while opening links. Link is now opened in
next split by default. If you use CTRL+Click to open links, it will also
open in next split. However, by using CTRL+ALT+click it will open in
current split.
There are two new checkboxes in Tools/Options/Text Editor/Display:
- "Open Links in New Split" - if it is checked, links will not be opened
in current split. However, if document with link is already opened, it
will be used to open the split
- "Force open links in next split" - Links will always open in next
split, even if their document is already opened somewhere else.
Task-number: QTCREATORBUG-8117
Change-Id: Ib99075b55d9e9683ed2c2386767227457de0a3fc
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/texteditor/displaysettingspage.h')
-rw-r--r-- | src/plugins/texteditor/displaysettingspage.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/texteditor/displaysettingspage.h b/src/plugins/texteditor/displaysettingspage.h index 78f22466bb..ac0185c2ed 100644 --- a/src/plugins/texteditor/displaysettingspage.h +++ b/src/plugins/texteditor/displaysettingspage.h @@ -65,6 +65,9 @@ public: signals: void displaySettingsChanged(const TextEditor::DisplaySettings &); +private slots: + void updateForceOpenLinksInNextSplit(bool openLinksInNextSplitChecked); + private: void settingsFromUI(DisplaySettings &displaySettings) const; void settingsToUI(); |