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:
@@ -0,0 +1,28 @@
|
||||
#include <QApplication>
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
#include <kpropertiesdialog.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
if (argc <= 1) {
|
||||
qWarning() << "Expected argument: [url], the path or url to the file/dir for which to show properties";
|
||||
return 1;
|
||||
}
|
||||
const QUrl u = QUrl::fromUserInput(QString::fromLatin1(argv[1]), QDir::currentPath());
|
||||
|
||||
{
|
||||
KPropertiesDialog dlg(u);
|
||||
QObject::connect(&dlg, &KPropertiesDialog::applied, []() {
|
||||
qDebug() << "applied";
|
||||
});
|
||||
QObject::connect(&dlg, &KPropertiesDialog::canceled, []() {
|
||||
qDebug() << "canceled";
|
||||
});
|
||||
dlg.exec();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user