From 50deec22f103a5b390cab29bee4170218b919f19 Mon Sep 17 00:00:00 2001 From: Anika Raemer Date: Tue, 11 Dec 2018 10:28:17 +0100 Subject: [PATCH] added todos planning an imageViewer add-on --- LenaPi/main.cpp | 15 +++++++++++++++ LenaPi/models/NavigationItemModel.cpp | 1 - 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/LenaPi/main.cpp b/LenaPi/main.cpp index e561eb1..bd0022e 100644 --- a/LenaPi/main.cpp +++ b/LenaPi/main.cpp @@ -4,6 +4,21 @@ int main(int argc, char *argv[]) { + /** + * @todo To add an image viewer: + * - introduce an image context in qml -> can be switched via toggle buttons in each view + * - introduce NavigationControllerBase with all basic functions of the current NavigationController + * - derive MusicNavigationController and ImageNavigatioController + * - NavigationController than holds instances of UiStateModel, ImageNavigationController and + * MusicNavigationController. + * - connect toggle buttons to UiStateModel + * + * Aim: + * - Add an imageViewer but allow listening to Music while using it. + * - When modifying music keep state of image viewer, keep state of player when switching to + * imageViewer -> musicPlayer and imageViewer are independent parts of this software! + * USE SEPARATE BRANCH FOR DEVELOPMENT! + */ QGuiApplication app(argc, argv); QQmlApplicationEngine engine; diff --git a/LenaPi/models/NavigationItemModel.cpp b/LenaPi/models/NavigationItemModel.cpp index 6b07720..a62e238 100644 --- a/LenaPi/models/NavigationItemModel.cpp +++ b/LenaPi/models/NavigationItemModel.cpp @@ -32,7 +32,6 @@ bool NavigationItemModel::setPath(const QString &path) mPath = path; - /// @todo move default image to qrc auto source = dir.filePath("image.jpg"); if(QFile(source).exists()){ mImageSource = "file:///" + source;