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 @@
add_subdirectory(kmessagebox)
@@ -0,0 +1,10 @@
add_executable(kwidgetaddons-example-kmessagebox main.cpp)
target_link_libraries(kwidgetaddons-example-kmessagebox
Qt6::Widgets
KF6::WidgetsAddons
)
# We don't want to install the tutorial
#install(TARGETS kwidgetaddons-example-kmessagebox ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
@@ -0,0 +1,41 @@
/*
This file is part of the KDE project
SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org>
SPDX-FileCopyrightText: 2018 Olivier Churlaud <olivier@churlaud.com>
SPDX-FileCopyrightText: 2016 Juan Carlos Torres <carlosdgtorres@gmail.com>
SPDX-License-Identifier: LGPL-3.0-or-later
*/
#include <KMessageBox>
#include <QApplication>
#include <iostream>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
// Define the question answer buttons
KGuiItem primaryAction(QStringLiteral("Hello"), // the button label
QStringLiteral("view-filter"), // iconName, can be empty to fallback to default
QStringLiteral("This is a tooltip"),
QStringLiteral("This is a WhatsThis help text."));
KGuiItem secondaryAction(QStringLiteral("Bye")); // the button label
KMessageBox::ButtonCode res = KMessageBox::questionTwoActions(nullptr, // Parent, here none
// The description can contain HTML
QStringLiteral("Description to tell you to click<br />on <b>either</b> button"),
QStringLiteral("My Title"),
primaryAction,
secondaryAction);
if (res == KMessageBox::PrimaryAction) {
std::cout << "You clicked Hello\n";
return EXIT_SUCCESS;
} else {
std::cout << "You clicked Bye\n";
return EXIT_FAILURE;
}
}