Example #1
0
void TimePickSelector::setCurrentTime(const QTime &time)
{
    // Make sure that the time does not contain the seconds part
    QTime roundTime = time.addSecs(-time.second());

    if (this->time != roundTime) {
        this->time = roundTime;
        emit selected(currentValueText());
    }
}
void CalendarsConfigSelector::reload()
{
    emit selected(currentValueText());
}
Example #3
0
 // Override Qt's braindead auto-selection.
 virtual void valueChange()
 {
     updateDisplay();
     emit valueChanged( value() );
     emit valueChanged( currentValueText() );
 }