Advance Wayland and KDE package bring-up

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-14 10:51:06 +01:00
parent 51f3c21121
commit cf12defd28
15214 changed files with 20594243 additions and 269 deletions
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
# SPDX-License-Identifier: BSD-2-Clause
include(../../KF6KCMUtilsMacros.cmake)
set(_KCMODULE_DATA_TEMPLATE_CPP "../../src/kcmutilsgeneratemoduledata.cpp.in")
set(_KCMODULE_DATA_TEMPLATE_H "../../src/kcmutilsgeneratemoduledata.h.in")
set(module_data_test_SRCS module_data_test.cpp)
kcmutils_generate_module_data(
module_data_test_SRCS
MODULE_DATA_HEADER cursorthemedata.h
MODULE_DATA_CLASS_NAME CursorThemeData
SETTINGS_HEADERS cursorthemesettings.h
SETTINGS_CLASSES CursorThemeSettings
NAMESPACE Test
)
kconfig_add_kcfg_files(module_data_test_SRCS cursorthemesettings.kcfgc GENERATE_MOC)
ecm_add_test(${module_data_test_SRCS}
TEST_NAME module_data_test
LINK_LIBRARIES KF6KCMUtils Qt6::Test
)
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-FileCopyrightText: none
SPDX-License-Identifier: CC0-1.0
-->
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<kcfgfile name="sometestfilerc" />
<group name="Mouse">
<entry name="cursorTheme" type="String">
<label>Name of the current cursor theme</label>
<default>breeze_cursors</default>
</entry>
<entry name="cursorSize" type="Int">
<label>Current cursor size</label>
<default>24</default>
</entry>
</group>
</kcfg>
@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: CC0-1.0
File=cursorthemesettings.kcfg
ClassName=CursorThemeSettings
NameSpace=Test
Mutators=true
DefaultValueGetters=true
GenerateProperties=true
ParentInConstructor=true
Notifiers=true
@@ -0,0 +1,30 @@
/*
SPDX-FileCopyrightText: 2021 Alexander Lohnau <alexander.lohnau@gmx.de>
SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#include <QObject>
#include <QTest>
#include "cursorthemedata.h"
#include "cursorthemesettings.h"
class ModuleDataTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void testReadingDefaults();
};
void ModuleDataTest::testReadingDefaults()
{
Test::CursorThemeData data;
Test::CursorThemeSettings *settings = data.settings();
QVERIFY(settings);
QCOMPARE(settings->cursorTheme(), QStringLiteral("breeze_cursors"));
QCOMPARE(settings->cursorSize(), 24);
}
QTEST_MAIN(ModuleDataTest)
#include "module_data_test.moc"