Add git version to About
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "control.h"
|
||||
#include "addon.h"
|
||||
#include <QIcon>
|
||||
#include <QQmlContext>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@@ -35,6 +36,7 @@ int main(int argc, char *argv[])
|
||||
return Control::instance();
|
||||
});
|
||||
qmlRegisterUncreatableType<Addon>("GitAddonsManager.engine",1,0,"Addon","");
|
||||
engine.rootContext()->setContextProperty("gitVersion", QString("%1 (%2)").arg(GIT_TAG, GIT_SHA));
|
||||
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
||||
if (engine.rootObjects().isEmpty())
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user