more basic ui
This commit is contained in:
parent
8f4c2a4e94
commit
f2a10ebfcc
31 changed files with 1020 additions and 1210 deletions
13
src/main.cpp
13
src/main.cpp
|
@ -4,6 +4,8 @@
|
|||
#include <QUrl>
|
||||
#include <KLocalizedContext>
|
||||
#include <KLocalizedString>
|
||||
#include <iostream>
|
||||
#include <QQmlEngine>
|
||||
|
||||
// #include "mpvobject.h"
|
||||
|
||||
|
@ -16,22 +18,19 @@ int main(int argc, char *argv[])
|
|||
QCoreApplication::setOrganizationDomain(QStringLiteral("tfcconnection.org"));
|
||||
QCoreApplication::setApplicationName(QStringLiteral("Church Presenter"));
|
||||
|
||||
// path = QQmlEngine::importPathList()
|
||||
std::cout << "Hello World!";
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
|
||||
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
|
||||
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
||||
engine.load(QUrl(QStringLiteral("qrc:qml/main.qml")));
|
||||
|
||||
#ifdef STATIC_KIRIGAMI
|
||||
KirigamiPlugin::getInstance().registerTypes();
|
||||
#endif
|
||||
|
||||
// // Qt sets the locale in the QGuiApplication constructor, but libmpv
|
||||
// // requires the LC_NUMERIC category to be set to "C", so change it back.
|
||||
// std::setlocale(LC_NUMERIC, "C");
|
||||
|
||||
// qmlRegisterType<MpvObject>("mpv", 1, 0, "MpvObject");
|
||||
|
||||
if (engine.rootObjects().isEmpty()) {
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue