adding some texting functions

This commit is contained in:
Chris Cochrun 2022-07-12 16:52:32 -05:00
parent 7ee81cd471
commit 0ab05b2687
4 changed files with 5 additions and 4 deletions

View file

@ -122,8 +122,8 @@ Controls.Page {
const item = serviceItemModel.getItem(index); const item = serviceItemModel.getItem(index);
print("index grabbed: " + index); print("index grabbed: " + index);
slideObject.setImageBackground("/home/chris/Pictures/RoyalKing.png"); SlideObject.setImageBackground("/home/chris/Pictures/RoyalKing.png");
print("The slides backgorund is: " + slideObject.imageBackground); print("The slides backgorund is: " + SlideObject.imageBackground);
presentation.stopVideo() presentation.stopVideo()
presentation.itemType = item.type; presentation.itemType = item.type;

View file

@ -123,6 +123,7 @@ Item {
function nextSlideAction() { function nextSlideAction() {
print(textIndex); print(textIndex);
print("YIPPEE KAYAYYYY!"); print("YIPPEE KAYAYYYY!");
print("YIPPEE KAYAYYYY!");
if (itemType === "song") { if (itemType === "song") {
if (textIndex === 0) { if (textIndex === 0) {
previewSlide.text = root.text[textIndex]; previewSlide.text = root.text[textIndex];

View file

@ -80,7 +80,7 @@ void Slide::setImageBackground(QString imageBackground)
if (m_imageBackground == imageBackground) if (m_imageBackground == imageBackground)
return; return;
qDebug() << "changing image background to: " << imageBackground; qDebug() << "####changing image background to: " << imageBackground;
m_imageBackground = imageBackground; m_imageBackground = imageBackground;
emit imageBackgroundChanged(m_imageBackground); emit imageBackgroundChanged(m_imageBackground);
} }

View file

@ -17,7 +17,7 @@ class Slide : public QObject
Q_PROPERTY(QString verticalTextAlignment READ verticalTextAlignment WRITE setVerticalTextAlignment NOTIFY verticalTextAlignmentChanged) Q_PROPERTY(QString verticalTextAlignment READ verticalTextAlignment WRITE setVerticalTextAlignment NOTIFY verticalTextAlignmentChanged)
Q_PROPERTY(QString font READ font WRITE setFont NOTIFY fontChanged) Q_PROPERTY(QString font READ font WRITE setFont NOTIFY fontChanged)
Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged) Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged)
QML_ELEMENT // QML_ELEMENT
public: public:
explicit Slide(QObject *parent = nullptr); explicit Slide(QObject *parent = nullptr);