[education/rkward/kf5] rkward/windows: Properly register completion model controller interface

Thomas Friedrichsmeier null at kde.org
Wed Apr 10 16:12:08 BST 2024


Git commit 7332388e1c197a1a96ba7ddaba92aae8519839d1 by Thomas Friedrichsmeier.
Committed on 01/04/2024 at 15:14.
Pushed by tfry into branch 'kf5'.

Properly register completion model controller interface

M  +2    -0    rkward/windows/rkcodecompletion.h

https://invent.kde.org/education/rkward/-/commit/7332388e1c197a1a96ba7ddaba92aae8519839d1

diff --git a/rkward/windows/rkcodecompletion.h b/rkward/windows/rkcodecompletion.h
index 95beb8df0..62f8cc6b8 100644
--- a/rkward/windows/rkcodecompletion.h
+++ b/rkward/windows/rkcodecompletion.h
@@ -83,6 +83,8 @@ private:
 
 /** Base class for the completion models employed in script editor. Essentially it takes care of the bureaucratic overhead involved in providing a group header */
 class RKCompletionModelBase : public KTextEditor::CodeCompletionModel, public KTextEditor::CodeCompletionModelControllerInterface {
+	Q_OBJECT
+	Q_INTERFACES(KTextEditor::CodeCompletionModelControllerInterface)
 public:
 	explicit RKCompletionModelBase (RKCompletionManager *manager);
 	~RKCompletionModelBase ();



More information about the rkward-tracker mailing list