things are building and running now
Now for all the issues of things not working
This commit is contained in:
parent
f231b81bf4
commit
a1f18f803d
8 changed files with 66 additions and 115 deletions
33
src/main.cpp
33
src/main.cpp
|
@ -73,37 +73,6 @@ static QWindow *windowFromEngine(QQmlApplicationEngine *engine)
|
|||
return window;
|
||||
}
|
||||
|
||||
// static void connectToDatabase() {
|
||||
// // let's setup our sql database
|
||||
// QSqlDatabase db = QSqlDatabase::database();
|
||||
// if (!db.isValid()){
|
||||
// db = QSqlDatabase::addDatabase("QSQLITE");
|
||||
// if (!db.isValid())
|
||||
// qFatal("Cannot add database: %s", qPrintable(db.lastError().text()));
|
||||
// }
|
||||
|
||||
// const QDir writeDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||
// qDebug() << "dir location " << writeDir.absolutePath();
|
||||
|
||||
// if (!writeDir.mkpath(".")) {
|
||||
// qFatal("Failed to create writable location at %s", qPrintable(writeDir.absolutePath()));
|
||||
// }
|
||||
|
||||
// const QString dbName = writeDir.absolutePath() + "/library-db.sqlite3";
|
||||
|
||||
// db.setHostName("localhost");
|
||||
// db.setDatabaseName(dbName);
|
||||
// db.setUserName("presenter");
|
||||
// // TODO change password system before launch
|
||||
// db.setPassword("i393jkf782djyr98302j");
|
||||
// if (!db.open()) {
|
||||
// qFatal("Cannot open database: %s", qPrintable(db.lastError().text()));
|
||||
// QFile::remove(dbName);
|
||||
// }
|
||||
// qDebug() << "Finished connecting to db";
|
||||
|
||||
// }
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// qDebug() << QSurfaceFormat::defaultFormat();
|
||||
|
@ -224,6 +193,8 @@ int main(int argc, char *argv[])
|
|||
// qmlRegisterType<MpvItem>("mpv", 1, 0, "MpvItem");
|
||||
// qmlRegisterSingletonInstance("org.presenter", 1, 0, "MpvProperties", MpvProperties::self());
|
||||
|
||||
qDebug() << serviceItemModel.count;
|
||||
|
||||
//register our models
|
||||
// qmlRegisterType<SongProxyModel>("org.presenter", 1, 0, "SongProxyModel");
|
||||
// qmlRegisterType<VideoProxyModel>("org.presenter", 1, 0, "VideoProxyModel");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue