some basic ui pieces

This commit is contained in:
Chris Cochrun 2022-02-08 10:14:00 -06:00
parent 9c73c8c567
commit 8f4c2a4e94
52 changed files with 1251 additions and 1906 deletions

View file

@ -5,20 +5,33 @@
#include <KLocalizedContext>
#include <KLocalizedString>
// #include "mpvobject.h"
int main(int argc, char *argv[])
{
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
KLocalizedString::setApplicationDomain("helloworld");
QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
QCoreApplication::setApplicationName(QStringLiteral("Hello World"));
KLocalizedString::setApplicationDomain("presenter");
QCoreApplication::setOrganizationName(QStringLiteral("TFC"));
QCoreApplication::setOrganizationDomain(QStringLiteral("tfcconnection.org"));
QCoreApplication::setApplicationName(QStringLiteral("Church Presenter"));
QQmlApplicationEngine engine;
engine.rootContext()->setContextObject(new KLocalizedContext(&engine));
engine.load(QUrl(QStringLiteral("qrc:/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;
}