]> cloud.milkyroute.net Git - dolphin.git/commitdiff
kitemlistcontrollertest: fix warnings
authorMéven Car <meven@kde.org>
Thu, 20 Feb 2025 17:37:31 +0000 (18:37 +0100)
committerMéven Car <meven@kde.org>
Thu, 20 Feb 2025 17:37:40 +0000 (18:37 +0100)
NO_CHANGELOG

src/tests/kitemlistcontrollertest.cpp

index a882accaa109bb783a8715fdbfd9ea6b888929e9..4cb999f06f2aca02865e02c0544f06d1059d878b 100644 (file)
@@ -277,10 +277,10 @@ void KItemListControllerTest::testKeyboardNavigation_data()
         // Compact layout.
         Qt::Orientation scrollOrientation;
         QList<int> columnCountList;
-        Qt::Key nextItemKey;
-        Qt::Key previousItemKey;
-        Qt::Key nextRowKey;
-        Qt::Key previousRowKey;
+        Qt::Key nextItemKey = Qt::Key_Right;
+        Qt::Key previousItemKey = Qt::Key_Right;
+        Qt::Key nextRowKey = Qt::Key_Right;
+        Qt::Key previousRowKey = Qt::Key_Right;
 
         switch (layout) {
         case KFileItemListView::IconsLayout: