void Validity::hideTimeCheck(int state) { switch (state) { case Qt::Checked: hideTime(true); break; case Qt::Unchecked: hideTime(false); break; } }
Validity::Validity( QWidget* parent ) : QDateTimeEdit( parent ) { endDate = false; setTimeSpec(Qt::UTC); setNow(); hideTime(false); connect(this, SIGNAL(timeChanged(const QTime &)), this, SLOT(setMyTime(const QTime &))); updateFormatString(); }
Validity::Validity( QWidget* parent ) : QDateTimeEdit( parent ) { endDate = false; formatDate = tr("yyyy-MM-dd hh:mm"); #if QT_VERSION >= 0x040400 setTimeSpec(Qt::UTC); #endif setNow(); hideTime(false); connect(this, SIGNAL(timeChanged(const QTime &)), this, SLOT(setMyTime(const QTime &))); }