From 0ab05b2687b3a0b140806a6df49daf6d3a12880d Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 12 Jul 2022 16:52:32 -0500 Subject: [PATCH] adding some texting functions --- src/qml/presenter/MainWindow.qml | 4 ++-- src/qml/presenter/Presentation.qml | 1 + src/slide.cpp | 2 +- src/slide.h | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/qml/presenter/MainWindow.qml b/src/qml/presenter/MainWindow.qml index 82ab9b1..65514f3 100644 --- a/src/qml/presenter/MainWindow.qml +++ b/src/qml/presenter/MainWindow.qml @@ -122,8 +122,8 @@ Controls.Page { const item = serviceItemModel.getItem(index); print("index grabbed: " + index); - slideObject.setImageBackground("/home/chris/Pictures/RoyalKing.png"); - print("The slides backgorund is: " + slideObject.imageBackground); + SlideObject.setImageBackground("/home/chris/Pictures/RoyalKing.png"); + print("The slides backgorund is: " + SlideObject.imageBackground); presentation.stopVideo() presentation.itemType = item.type; diff --git a/src/qml/presenter/Presentation.qml b/src/qml/presenter/Presentation.qml index a9ce937..27c839b 100644 --- a/src/qml/presenter/Presentation.qml +++ b/src/qml/presenter/Presentation.qml @@ -123,6 +123,7 @@ Item { function nextSlideAction() { print(textIndex); print("YIPPEE KAYAYYYY!"); + print("YIPPEE KAYAYYYY!"); if (itemType === "song") { if (textIndex === 0) { previewSlide.text = root.text[textIndex]; diff --git a/src/slide.cpp b/src/slide.cpp index 4140b68..c50929f 100644 --- a/src/slide.cpp +++ b/src/slide.cpp @@ -80,7 +80,7 @@ void Slide::setImageBackground(QString imageBackground) if (m_imageBackground == imageBackground) return; - qDebug() << "changing image background to: " << imageBackground; + qDebug() << "####changing image background to: " << imageBackground; m_imageBackground = imageBackground; emit imageBackgroundChanged(m_imageBackground); } diff --git a/src/slide.h b/src/slide.h index a3f9a8e..01f1f24 100644 --- a/src/slide.h +++ b/src/slide.h @@ -17,7 +17,7 @@ class Slide : public QObject Q_PROPERTY(QString verticalTextAlignment READ verticalTextAlignment WRITE setVerticalTextAlignment NOTIFY verticalTextAlignmentChanged) Q_PROPERTY(QString font READ font WRITE setFont NOTIFY fontChanged) Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) - QML_ELEMENT + // QML_ELEMENT public: explicit Slide(QObject *parent = nullptr);