KDateTime is deprecated, use QDateTime instead.
We need to decide what to do about dateonly KDateTime's though, as QDateTime no longer supports that. QVariant would be the obvious solutions, but that results in rather cryptic interfaces. Something like QVariant<QDateTime, QDate> would be nicer (like boost::variant).