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,52 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 2002 Dirk Mueller <mueller@kde.org>
SPDX-FileCopyrightText: 2003 David Faure <faure@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include <QApplication>
#include <QDebug>
#include <QUrl>
#include <kopenwithdialog.h>
int main(int argc, char **argv)
{
QApplication::setApplicationName(QStringLiteral("kopenwithdialogtest"));
QApplication app(argc, argv);
QList<QUrl> list;
list += QUrl(QStringLiteral("file:///tmp/testfile.txt"));
// Test with one URL
KOpenWithDialog *dlg = new KOpenWithDialog(list, QString(), QString());
if (dlg->exec()) {
qDebug() << "Dialog ended successfully\ntext: " << dlg->text();
} else {
qDebug() << "Dialog was canceled.";
}
delete dlg;
// Test with two URLs
list += QUrl(QStringLiteral("http://www.kde.org/index.html"));
dlg = new KOpenWithDialog(list, QString(), QString(), nullptr);
if (dlg->exec()) {
qDebug() << "Dialog ended successfully\ntext: " << dlg->text();
} else {
qDebug() << "Dialog was canceled.";
}
delete dlg;
// Test with a MIME type
QString mimetype = QStringLiteral("text/plain");
dlg = new KOpenWithDialog(mimetype, QStringLiteral("kwrite"), nullptr);
if (dlg->exec()) {
qDebug() << "Dialog ended successfully\ntext: " << dlg->text();
} else {
qDebug() << "Dialog was canceled.";
}
delete dlg;
return 0;
}