[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ktexteditor] src/vimode/emulatedcommandbar: add overrides
From:       Allen Winter <winter () kde ! org>
Date:       2016-11-11 15:57:36
Message-ID: E1c5ECu-0000yD-KL () code ! kde ! org
[Download RAW message or body]

Git commit 8c39eaec1574d1a4f9d022b43ef3374ab710fb79 by Allen Winter.
Committed on 11/11/2016 at 15:57.
Pushed by winterz into branch 'master'.

add overrides
REVIEW: 129374

M  +5    -5    src/vimode/emulatedcommandbar/commandmode.h
M  +2    -2    src/vimode/emulatedcommandbar/interactivesedreplacemode.h
M  +5    -5    src/vimode/emulatedcommandbar/searchmode.h

http://commits.kde.org/ktexteditor/8c39eaec1574d1a4f9d022b43ef3374ab710fb79

diff --git a/src/vimode/emulatedcommandbar/commandmode.h b/src/vimode/emula=
tedcommandbar/commandmode.h
index 737a7d6..4ab62e1 100644
--- a/src/vimode/emulatedcommandbar/commandmode.h
+++ b/src/vimode/emulatedcommandbar/commandmode.h
@@ -46,11 +46,11 @@ public:
     virtual ~CommandMode()
     {
     }
-    virtual bool handleKeyPress ( const QKeyEvent* keyEvent );
-    virtual void editTextChanged(const QString &newText);
-    virtual CompletionStartParams completionInvoked(Completer::CompletionI=
nvocation invocationType);
-    virtual void completionChosen();
-    void deactivate(bool wasAborted);
+    bool handleKeyPress ( const QKeyEvent* keyEvent ) Q_DECL_OVERRIDE;
+    void editTextChanged(const QString &newText) Q_DECL_OVERRIDE;
+    CompletionStartParams completionInvoked(Completer::CompletionInvocatio=
n invocationType) Q_DECL_OVERRIDE;
+    void completionChosen() Q_DECL_OVERRIDE;
+    void deactivate(bool wasAborted) Q_DECL_OVERRIDE;
     QString executeCommand(const QString &commandToExecute);
 private:
     CompletionStartParams activateCommandCompletion();
diff --git a/src/vimode/emulatedcommandbar/interactivesedreplacemode.h b/sr=
c/vimode/emulatedcommandbar/interactivesedreplacemode.h
index f6c1741..0948a58 100644
--- a/src/vimode/emulatedcommandbar/interactivesedreplacemode.h
+++ b/src/vimode/emulatedcommandbar/interactivesedreplacemode.h
@@ -47,8 +47,8 @@ public:
     {
         return m_isActive;
     }
-    virtual bool handleKeyPress(const QKeyEvent* keyEvent);
-    virtual void deactivate(bool wasAborted);
+    bool handleKeyPress(const QKeyEvent* keyEvent) Q_DECL_OVERRIDE;
+    void deactivate(bool wasAborted) Q_DECL_OVERRIDE;
     QWidget *label();
 private:
     void updateInteractiveSedReplaceLabelText();
diff --git a/src/vimode/emulatedcommandbar/searchmode.h b/src/vimode/emulat=
edcommandbar/searchmode.h
index 92235e7..3f31619 100644
--- a/src/vimode/emulatedcommandbar/searchmode.h
+++ b/src/vimode/emulatedcommandbar/searchmode.h
@@ -47,11 +47,11 @@ public:
     };
     enum class SearchDirection { Forward, Backward };
     void init(SearchDirection);
-    virtual bool handleKeyPress ( const QKeyEvent* keyEvent );
-    virtual void editTextChanged(const QString &newText);
-    virtual CompletionStartParams completionInvoked(Completer::CompletionI=
nvocation invocationType);
-    virtual void completionChosen();
-    virtual void deactivate(bool wasAborted);
+    bool handleKeyPress ( const QKeyEvent* keyEvent ) Q_DECL_OVERRIDE;
+    void editTextChanged(const QString &newText) Q_DECL_OVERRIDE;
+    CompletionStartParams completionInvoked(Completer::CompletionInvocatio=
n invocationType) Q_DECL_OVERRIDE;
+    void completionChosen() Q_DECL_OVERRIDE;
+    void deactivate(bool wasAborted) Q_DECL_OVERRIDE;
     bool isSendingSyntheticSearchCompletedKeypress() const
     {
         return m_isSendingSyntheticSearchCompletedKeypress;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic