Commit 931a9ea5 authored by Volker Krause's avatar Volker Krause
Browse files

Expose KAboutData to QML, so we can eventually switch to Kirigami AboutPage

parent 68ecbf74
......@@ -27,6 +27,7 @@
#include <KItinerary/File>
#include <KItinerary/JsonLdDocument>
#include <KAboutData>
#include <KLocalizedString>
#include <QBuffer>
......@@ -594,3 +595,10 @@ QString ApplicationController::extractorCapabilities() const
{
return ExtractorCapabilities::capabilitiesString();
}
QVariant ApplicationController::aboutData() const
{
return QVariant::fromValue(KAboutData::applicationData());
}
#include "moc_applicationcontroller.cpp"
......@@ -35,6 +35,7 @@ class ApplicationController : public QObject
Q_PROPERTY(bool hasClipboardContent READ hasClipboardContent NOTIFY clipboardContentChanged)
Q_PROPERTY(QString version READ applicationVersion CONSTANT)
Q_PROPERTY(QString extractorCapabilities READ extractorCapabilities CONSTANT)
Q_PROPERTY(QVariant aboutData READ aboutData CONSTANT)
public:
explicit ApplicationController(QObject *parent = nullptr);
~ApplicationController();
......@@ -75,6 +76,7 @@ public:
// about information
QString applicationVersion() const;
QString extractorCapabilities() const;
QVariant aboutData() const;
Q_SIGNALS:
void clipboardContentChanged();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment