Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

main.cpp 665 Bytes
Newer Older
Camilo Higuita's avatar
src  
Camilo Higuita committed
1 2
#include <QGuiApplication>
#include <QQmlApplicationEngine>
Camilo Higuita's avatar
Camilo Higuita committed
3
#include <QFontDatabase>
Camilo Higuita's avatar
Camilo Higuita committed
4 5 6
//#ifdef Q_OS_ANDROID
//#include "./3rdparty/kirigami/src/kirigamiplugin.h"
//#endif
Camilo Higuita's avatar
src  
Camilo Higuita committed
7 8 9 10 11 12 13

int main(int argc, char *argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    QGuiApplication app(argc, argv);

Camilo Higuita's avatar
Camilo Higuita committed
14 15
    QFontDatabase::addApplicationFont(":/utils/materialdesignicons-webfont.ttf");

Camilo Higuita's avatar
Camilo Higuita committed
16 17 18 19
//    #ifdef Q_OS_ANDROID
//        KirigamiPlugin::getInstance().registerTypes();
//    #endif

Camilo Higuita's avatar
src  
Camilo Higuita committed
20 21 22 23 24 25 26
    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
    if (engine.rootObjects().isEmpty())
        return -1;

    return app.exec();
}