]> Git trees. - libqmvoc.git/commit
ExtDate enhancements and fixes:
authorJason Harris <kstars@30doradus.org>
Fri, 2 Sep 2005 07:08:50 +0000 (07:08 +0000)
committerJason Harris <kstars@30doradus.org>
Fri, 2 Sep 2005 07:08:50 +0000 (07:08 +0000)
commit51d71d9fe61c4c01734b23a09a12ef7dd0f1a4da
tree16a572919c90ec0e10d441a9c0023d05452f00aa
parentd2a618032a4202e1a268494365a9e09b3b28b7ea
ExtDate enhancements and fixes:

+ Added new variant of the static function ExtDate::fromString( string,
format ).  Until now, the format was restricted to Qt::TextDate or
Qt::ISODate.  Now, the format argument can be a string specifying the
format with KDE-compliant date-element tokens.  For example, to create
an ExtDate for September 2nd, 2005, you could use ExtDate::fromString(
"2005-09-02", "%Y-%m-%d" ).  I need this flexibility for the ExtDateEdit
widget I am writing.

+ Speaking of which: Added new ExtDateEdit and ExtDateTimeEdit widgets.
In KDE-3.x, these were copies of the Qt versions, but now I am writing
them from scratch (because the Qt4 versions rely on QVariant, which only
work with standard Qt data types).  The class compiles but is not
complete yet.  I have not even done any testing so far, so even the part
that is coded may not work.  At least we are a bit closer to being able
to compile trunk, since several of our tools use ExtDateEdit.

+ Added tests of the various fromString() functions to the test_extdate
program.

CCMAIL: kstars-devel@kde.org

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=456173
extdate/extdatetime.cpp
extdate/extdatetime.h
extdate/extdatetimeedit.cpp
extdate/extdatetimeedit.h
extdate/test_extdate.cc