QmlDesigner: Override shortcuts in text editor

There are a couple of known shortcuts that we have to override
in the text editor. We install an event filter and handle
the shortcut override event for the keys in question.

Change-Id: Icb5483b19e2202d85e99d24c20d05097aaa33da6
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-01-19 15:25:03 +01:00
parent 64b8bd0924
commit f581ad7ded
2 changed files with 22 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ public:
void clearStatusBar();
int currentLine() const;
protected:
bool eventFilter(QObject *object, QEvent *event) override;
private:
void updateSelectionByCursorPosition();