starting to build

This commit is contained in:
Chris Cochrun 2024-09-11 09:30:42 -05:00
parent 61aef5c48f
commit 7b82202c51
6 changed files with 75 additions and 77 deletions

View file

@ -23,7 +23,7 @@
#include <QQuickStyle>
#include <QSurfaceFormat>
#include <QtGui/QOpenGLFramebufferObject>
// #include <QtGui/QOpenGLFramebufferObject>
#include <QtQuick/QQuickWindow>
#include <QtQuick/QQuickView>
@ -38,8 +38,8 @@
#include <qsqlquery.h>
#include <qstringliteral.h>
#include "cpp/mpv/mpvitem.h"
#include "cpp/mpv/mpvproperties.h"
// #include "cpp/mpv/mpvitem.h"
// #include "cpp/mpv/mpvproperties.h"
// #include "cpp/serviceitemmodel.h"
// #include "cpp/slidemodel.h"
// #include "cpp/songsqlmodel.h"
@ -221,8 +221,8 @@ int main(int argc, char *argv[])
// apparently mpv needs this class set
// let's register mpv as well
std::setlocale(LC_NUMERIC, "C");
qmlRegisterType<MpvItem>("mpv", 1, 0, "MpvItem");
qmlRegisterSingletonInstance("org.presenter", 1, 0, "MpvProperties", MpvProperties::self());
// qmlRegisterType<MpvItem>("mpv", 1, 0, "MpvItem");
// qmlRegisterSingletonInstance("org.presenter", 1, 0, "MpvProperties", MpvProperties::self());
//register our models
// qmlRegisterType<SongProxyModel>("org.presenter", 1, 0, "SongProxyModel");