add looping for slides
This add looping primarily for videos but I've added in the groundwork for looping through any kind of slide. This obviously will be implemented differently for each type of slide, but this way the groundwork is done already.
This commit is contained in:
parent
caded1027c
commit
caa2e31d99
15 changed files with 130 additions and 49 deletions
|
@ -52,9 +52,9 @@ ServiceItem::ServiceItem(const QString &name, const QString &type, const QString
|
|||
ServiceItem::ServiceItem(const QString &name, const QString &type, const QString &background,
|
||||
const QString &backgroundType, const QStringList &text,
|
||||
const QString &audio, const QString &font, const int &fontSize,
|
||||
const int &slideNumber, QObject *parent)
|
||||
const int &slideNumber, const bool &loop, QObject *parent)
|
||||
: QObject(parent),m_name(name),m_type(type),m_background(background),
|
||||
m_backgroundType(backgroundType),m_text(text),m_audio(audio),m_font(font),m_fontSize(fontSize),m_slideNumber(slideNumber)
|
||||
m_backgroundType(backgroundType),m_text(text),m_audio(audio),m_font(font),m_fontSize(fontSize),m_slideNumber(slideNumber),m_loop(loop)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -106,6 +106,10 @@ bool ServiceItem::selected() const {
|
|||
return m_selected;
|
||||
}
|
||||
|
||||
bool ServiceItem::loop() const {
|
||||
return m_loop;
|
||||
}
|
||||
|
||||
void ServiceItem::setName(QString name)
|
||||
{
|
||||
if (m_name == name)
|
||||
|
@ -207,3 +211,12 @@ void ServiceItem::setSelected(bool selected)
|
|||
m_selected = selected;
|
||||
emit selectedChanged(m_selected);
|
||||
}
|
||||
|
||||
void ServiceItem::setLoop(bool loop)
|
||||
{
|
||||
if (m_loop == loop)
|
||||
return;
|
||||
|
||||
m_loop = loop;
|
||||
emit loopChanged(m_loop);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue