Refactoring to slide_model and service_item getting the data from db

This is kinda a broken commit. There isn't any order to the adding of
the slide anymore. So it'll need to find a way of keeping track of
where all the current slides are and then insert the new ones in the
correct order while moving the others around as well.
This commit is contained in:
Chris Cochrun 2024-10-02 14:48:16 -05:00
parent 6052cd01ac
commit 2c014e242f
9 changed files with 347 additions and 604 deletions

View file

@ -142,10 +142,7 @@ int main(int argc, char *argv[])
if (!serviceItemModel.get()->load(settings->getLastSaveFile())) {
qDebug() << "Last saved file is missing or there isn't a last saved file.";
serviceItemModel.get()->addItem(QString::fromUtf8("Black"), QString::fromUtf8("image"),
QString::fromUtf8("qrc:/assets/black.jpg"),
QString::fromUtf8("image"), QStringList() << QStringLiteral(""),
QString::fromUtf8(""), QString::fromUtf8(""), 0, 1, false, 0, 0, 0);
serviceItemModel.get()->addItem(QString::fromUtf8("Black"), QString::fromUtf8("image"), 0);
}
// apparently mpv needs this class set