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,54 @@
#include <QDialog>
#include <QDialogButtonBox>
#include <QVBoxLayout>
#include <qapplication.h>
#include <QDebug>
#include <keditlistwidget.h>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
#if 0
KEditListWidget::CustomEditor editor(new KComboBox(true, 0));
KEditListWidget *box = new KEditListWidget(editor);
box->insertItem(QStringLiteral("Test"));
box->insertItem(QStringLiteral("for"));
box->insertItem(QStringLiteral("this"));
box->insertItem(QStringLiteral("KEditListWidget"));
box->insertItem(QStringLiteral("Widget"));
box->show();
#else
// code from kexi
QStringList list;
list << QStringLiteral("one") << QStringLiteral("two");
QDialog dialog;
dialog.setObjectName(QStringLiteral("stringlist_dialog"));
dialog.setModal(true);
dialog.setWindowTitle(QStringLiteral("Edit List of Items"));
KEditListWidget *edit = new KEditListWidget(&dialog);
edit->setObjectName(QStringLiteral("editlist"));
edit->insertStringList(list);
QDialogButtonBox *buttonBox = new QDialogButtonBox(&dialog);
buttonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QObject::connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
QObject::connect(buttonBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);
auto *layout = new QVBoxLayout(&dialog);
layout->addWidget(edit);
layout->addWidget(buttonBox);
if (dialog.exec() == QDialog::Accepted) {
list = edit->items();
qDebug() << list;
}
#endif
return app.exec();
}