making text disappear before backgrounds change
This commit is contained in:
parent
453ca7eefe
commit
e200a67387
1 changed files with 10 additions and 5 deletions
|
@ -204,7 +204,16 @@ void Slide::changeSlide(QVariantMap item)
|
|||
{
|
||||
setServiceItem(item);
|
||||
setType(m_serviceItem.value("type").toString());
|
||||
qDebug() << "#$% SLIDE TYPE: " << type() << " %$#";
|
||||
|
||||
// First let's clear the text and then set
|
||||
// the size and index of a basic slide
|
||||
// then we'll build the rest
|
||||
setText("");
|
||||
m_slideSize = 1;
|
||||
m_slideIndex = 1;
|
||||
|
||||
qDebug() << serviceItem().value("backgroundType").toString();
|
||||
if (serviceItem().value("backgroundType") == "image") {
|
||||
setImageBackground(m_serviceItem.value("background").toString());
|
||||
setVideoBackground("");
|
||||
|
@ -213,10 +222,6 @@ void Slide::changeSlide(QVariantMap item)
|
|||
setImageBackground("");
|
||||
}
|
||||
|
||||
setText("");
|
||||
m_slideSize = 1;
|
||||
m_slideIndex = 1;
|
||||
|
||||
if (type() == "presentation") {
|
||||
qDebug() << "#$#$#$#$ THIS PDF $#$#$#$#";
|
||||
int pageCount;
|
||||
|
@ -238,8 +243,8 @@ void Slide::changeSlide(QVariantMap item)
|
|||
qDebug() << m_imageCount;
|
||||
m_slideSize = m_imageCount;
|
||||
m_slideIndex = 1;
|
||||
setPdfIndex(1);
|
||||
}
|
||||
setPdfIndex(0);
|
||||
|
||||
QStringList text = m_serviceItem.value("text").toStringList();
|
||||
if (type() == "song") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue