a bit of updating and making pdfs work better
This commit is contained in:
parent
6866b86a20
commit
d8aca3d149
7 changed files with 31 additions and 27 deletions
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Dialogs 1.0
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import Qt.labs.platform 1.1 as Labs
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Dialogs 1.0
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Window 2.13
|
||||
|
@ -135,24 +135,21 @@ Controls.Page {
|
|||
print(item);
|
||||
|
||||
presentation.stopVideo();
|
||||
presentation.itemType = item.type;
|
||||
/* presentation.itemType = item.type; */
|
||||
print("Time to start changing");
|
||||
|
||||
// This determines if pdf and gives slide the right
|
||||
// page count to use.
|
||||
if (item.type == "pres")
|
||||
SlideObject.changeSlide(item);
|
||||
else
|
||||
SlideObject.changeSlide(item);
|
||||
SlideObject.changeSlide(item);
|
||||
showPassiveNotification(SlideObject.imageBackground);
|
||||
|
||||
if (item.backgroundType === "video")
|
||||
{
|
||||
presentation.loadVideo();
|
||||
}
|
||||
/* if (item.backgroundType === "video") */
|
||||
/* { */
|
||||
/* presentation.loadVideo(); */
|
||||
/* } */
|
||||
|
||||
presentation.textIndex = 0;
|
||||
presentation.changeSlide();
|
||||
/* presentation.changeSlide(); */
|
||||
|
||||
showPassiveNotification(SlideObject.imageBackground);
|
||||
print("Slide changed to: " + item.name);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Dialogs 1.0
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Window 2.13
|
||||
|
@ -13,9 +13,9 @@ Item {
|
|||
|
||||
property var text
|
||||
property int textIndex: 0
|
||||
property string itemType
|
||||
property url imagebackground
|
||||
property url vidbackground
|
||||
property string itemType: SlideObject.type
|
||||
property url imagebackground: SlideObject.imageBackground
|
||||
property url vidbackground: SlideObject.videoBackground
|
||||
|
||||
property Item slide: previewSlide
|
||||
|
||||
|
@ -88,9 +88,10 @@ Item {
|
|||
Layout.alignment: Qt.AlignCenter
|
||||
textSize: width / 15
|
||||
itemType: root.itemType
|
||||
imageSource: SlideObject.imageBackground
|
||||
videoSource: SlideObject.videoBackground
|
||||
imageSource: imagebackground
|
||||
videoSource: vidbackground
|
||||
text: SlideObject.text
|
||||
pdfIndex: SlideObject.pdfIndex
|
||||
preview: true
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Dialogs 1.3
|
||||
import QtQuick.Layouts 1.2
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Dialogs 1.0
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Window 2.13
|
||||
|
@ -36,6 +36,8 @@ Window {
|
|||
imageSource: SlideObject.imageBackground
|
||||
videoSource: presentationWindow.visible ? SlideObject.videoBackground : ""
|
||||
text: SlideObject.text
|
||||
pdfIndex: SlideObject.pdfIndex
|
||||
itemType: SlideObject.type
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import QtQuick 2.13
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15 as Controls
|
||||
import QtQuick.Layouts 1.2
|
||||
/* import QtMultimedia 5.15 */
|
||||
|
@ -19,6 +19,7 @@ Item {
|
|||
property bool dropShadow: false
|
||||
property url imageSource
|
||||
property url videoSource
|
||||
property int pdfIndex
|
||||
property string chosenFont: "Quicksand"
|
||||
property string text: "This is demo text"
|
||||
property color backgroundColor
|
||||
|
@ -119,7 +120,7 @@ Item {
|
|||
fillMode: Image.PreserveAspectCrop
|
||||
clip: true
|
||||
visible: true
|
||||
|
||||
currentFrame: pdfIndex
|
||||
}
|
||||
|
||||
FastBlur {
|
||||
|
|
|
@ -11,10 +11,13 @@ class Slide : public QObject
|
|||
Q_OBJECT
|
||||
Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
|
||||
Q_PROPERTY(QString type READ type WRITE setType NOTIFY typeChanged)
|
||||
Q_PROPERTY(QVariantMap serviceItem READ serviceItem WRITE setServiceItem NOTIFY serviceItemChanged)
|
||||
Q_PROPERTY(QVariantMap serviceItem READ serviceItem WRITE setServiceItem
|
||||
NOTIFY serviceItemChanged)
|
||||
Q_PROPERTY(QString audio READ audio WRITE setAudio NOTIFY audioChanged)
|
||||
Q_PROPERTY(QString imageBackground READ imageBackground WRITE setImageBackground NOTIFY imageBackgroundChanged)
|
||||
Q_PROPERTY(QString videoBackground READ videoBackground WRITE setVideoBackground NOTIFY videoBackgroundChanged)
|
||||
Q_PROPERTY(QString imageBackground READ imageBackground WRITE setImageBackground
|
||||
NOTIFY imageBackgroundChanged)
|
||||
Q_PROPERTY(QString videoBackground READ videoBackground WRITE setVideoBackground
|
||||
NOTIFY videoBackgroundChanged)
|
||||
Q_PROPERTY(QString horizontalTextAlignment READ horizontalTextAlignment
|
||||
WRITE setHorizontalTextAlignment NOTIFY horizontalTextAlignmentChanged)
|
||||
Q_PROPERTY(QString verticalTextAlignment READ verticalTextAlignment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue