adding utils and setting up tracing

This commit is contained in:
Chris Cochrun 2023-09-27 09:45:05 -05:00
parent 7a1d9dfda8
commit 7681f1c811
2 changed files with 5 additions and 0 deletions

View file

@ -13,5 +13,6 @@ fn main() {
.file("src/rust/presentation_model.rs") .file("src/rust/presentation_model.rs")
.file("src/rust/songs/song_model.rs") .file("src/rust/songs/song_model.rs")
.file("src/rust/ytdl.rs") .file("src/rust/ytdl.rs")
.file("src/rust/utils.rs")
.build(); .build();
} }

View file

@ -60,6 +60,7 @@
#include "cxx-qt-gen/song_model.cxxqt.h" #include "cxx-qt-gen/song_model.cxxqt.h"
#include "cxx-qt-gen/video_model.cxxqt.h" #include "cxx-qt-gen/video_model.cxxqt.h"
#include "cxx-qt-gen/image_model.cxxqt.h" #include "cxx-qt-gen/image_model.cxxqt.h"
#include "cxx-qt-gen/utilities.cxxqt.h"
// #include "cxx-qt-gen/image_model.cxxqt.h" // #include "cxx-qt-gen/image_model.cxxqt.h"
static QWindow *windowFromEngine(QQmlApplicationEngine *engine) static QWindow *windowFromEngine(QQmlApplicationEngine *engine)
@ -145,6 +146,7 @@ int main(int argc, char *argv[])
// setup of app specific commandline args // setup of app specific commandline args
//Need to instantiate our slide //Need to instantiate our slide
QScopedPointer<Utils> utils(new Utils);
QScopedPointer<SlideModel> slideModel(new SlideModel); QScopedPointer<SlideModel> slideModel(new SlideModel);
QScopedPointer<SlideyMod> slideMod(new SlideyMod); QScopedPointer<SlideyMod> slideMod(new SlideyMod);
QScopedPointer<File> filemanager(new File); QScopedPointer<File> filemanager(new File);
@ -199,6 +201,8 @@ int main(int argc, char *argv[])
slideMod.get(), slideMod.get(),
SLOT(activate(int))); SLOT(activate(int)));
utils.get()->setup();
if (!serviceItemModel.get()->load(settings->getLastSaveFile())) { if (!serviceItemModel.get()->load(settings->getLastSaveFile())) {
qDebug() << "Last saved file is missing or there isn't a last saved file."; qDebug() << "Last saved file is missing or there isn't a last saved file.";
serviceItemModel.get()->addItem("Black", "image", serviceItemModel.get()->addItem("Black", "image",