[education/rkward] rkward: Fix compilation with Qt 6.6

Thomas Friedrichsmeier null at kde.org
Sun Apr 27 20:44:32 BST 2025


Git commit 0e1888e3fef867b1b10eaf72e6bfcf77b6a94e05 by Thomas Friedrichsmeier.
Committed on 27/04/2025 at 19:44.
Pushed by tfry into branch 'master'.

Fix compilation with Qt 6.6

M  +1    -1    rkward/rkconsole.cpp
M  +1    -1    rkward/windows/katepluginintegration.cpp
M  +1    -1    rkward/windows/rkcodecompletion.cpp

https://invent.kde.org/education/rkward/-/commit/0e1888e3fef867b1b10eaf72e6bfcf77b6a94e05

diff --git a/rkward/rkconsole.cpp b/rkward/rkconsole.cpp
index 79b3ba047..3c2094fd4 100644
--- a/rkward/rkconsole.cpp
+++ b/rkward/rkconsole.cpp
@@ -83,7 +83,7 @@ RKConsole::RKConsole (QWidget *parent, bool tool_window, const char *name) : RKM
 	
 	/* We need to disable kactions that were plugged to the KateViewInternal in kateview.cpp.
 	These actions include Key_Up, Key_Down, etc. */
-	kate_edit_actions = view->findChild<KActionCollection*> ("edit_actions");
+	kate_edit_actions = view->findChild<KActionCollection*>(u"edit_actions"_s);
 	if (!kate_edit_actions) {
 		kate_edit_actions=view->actionCollection();
 	}
diff --git a/rkward/windows/katepluginintegration.cpp b/rkward/windows/katepluginintegration.cpp
index 977de22b1..d32643c93 100644
--- a/rkward/windows/katepluginintegration.cpp
+++ b/rkward/windows/katepluginintegration.cpp
@@ -675,7 +675,7 @@ void KatePluginIntegrationWindow::fixUpPluginUI(const QString &id, const PluginR
 			// window->setCaption(i18nc("Tab title", "Search in Scripts"));
 			if (!resources.windows.isEmpty()) {
 				// I wonder how long this HACK will work...
-				QComboBox *box = resources.windows.first()->findChild<QComboBox*>("searchPlaceCombo");
+				QComboBox *box = resources.windows.first()->findChild<QComboBox*>(u"searchPlaceCombo"_s);
 				if (box && (box->count() > 1)) {
 					box->setItemText(0, i18nc("where to search", "in Current Script"));
 					box->setItemText(1, i18nc("where to search", "in Open Scripts"));
diff --git a/rkward/windows/rkcodecompletion.cpp b/rkward/windows/rkcodecompletion.cpp
index b2e878f19..5509ebb1c 100644
--- a/rkward/windows/rkcodecompletion.cpp
+++ b/rkward/windows/rkcodecompletion.cpp
@@ -534,7 +534,7 @@ bool RKCompletionManager::eventFilter (QObject*, QEvent* event) {
 				}
 
 				// No, we cannot just send a fake key event, easily...
-				KActionCollection *kate_edit_actions = view()->findChild<KActionCollection *>("edit_actions");
+				KActionCollection *kate_edit_actions = view()->findChild<KActionCollection *>(u"edit_actions"_s);
 				QAction *action = kate_edit_actions ? (kate_edit_actions->action(k->key() == Qt::Key_Up ? u"move_line_up"_s : u"move_line_down"_s)) : nullptr;
 				if (!action) {
 					kate_edit_actions = view()->actionCollection();


More information about the rkward-tracker mailing list