bool WDate::operator== (const WDate& other) const { if ((!isValid() && !isNull()) || (!other.isValid() && !other.isNull())) throw InvalidDateException(); return (year_ == other.year_ && month_ == other.month_ && day_ == other.day_); }
void WDatePicker::setDate(const WDate& date) { if (!date.isNull()) { forEdit_->setText(date.toString(format_)); calendar_->select(date); calendar_->browseTo(date); } }
void WDateEdit::setDate(const WDate& date) { if (!date.isNull()) { setText(date.toString(format())); calendar_->select(date); calendar_->browseTo(date); } }