QTime time(0, 0, 0);
time = time.addSecs(m_delay);
m_uiSlideshow.m_slideshowDelay->setTime(time);
- m_uiSlideshow.m_slideshowDelay->setMinimumTime(QTime(0, 0, 10));
+ m_uiSlideshow.m_slideshowDelay->setTimeRange(
+ QTime(0, 0, 10), m_uiSlideshow.m_slideshowDelay->maximumTime()
+ );
connect(m_uiSlideshow.m_slideshowDelay, SIGNAL(timeChanged(QTime)),
this, SLOT(timeChanged(QTime)));
connect(m_uiSlideshow.m_addDir, SIGNAL(clicked()), this, SLOT(modified()));
connect(m_uiSlideshow.m_removeDir, SIGNAL(clicked()), this, SLOT(modified()));
connect(m_uiSlideshow.m_slideshowDelay, SIGNAL(dateTimeChanged(QDateTime)), this, SLOT(modified()));
- connect(m_uiSlideshow.m_dirlist, SIGNAL(currentRowChanged(int)), SLOT(updateDirs()));
+ connect(m_uiSlideshow.m_dirlist, SIGNAL(currentRowChanged(int)), SLOT(updateDirs()));
}
connect(this, SIGNAL(settingsChanged(bool)), parent, SLOT(settingsChanged(bool)));
</widget>
</item>
<item row="2" column="1">
- <widget class="QDateTimeEdit" name="m_slideshowDelay">
- <property name="dateTime">
- <datetime>
- <hour>0</hour>
- <minute>0</minute>
- <second>0</second>
- <year>2000</year>
- <month>1</month>
- <day>1</day>
- </datetime>
- </property>
+ <widget class="QTimeEdit" name="m_slideshowDelay">
<property name="time">
<time>
<hour>0</hour>
<second>0</second>
</time>
</property>
- <property name="currentSection">
- <enum>QDateTimeEdit::HourSection</enum>
- </property>
- <property name="displayFormat">
- <string comment="(qtdt-format) Please do not change the quotes (') and translate only the content of the quotes.">hh 'Hours' mm 'Mins' ss 'Secs'</string>
- </property>
</widget>
</item>
<item row="3" column="0">