-rw-r--r-- | microkde/kconfigtest.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/microkde/kconfigtest.cpp b/microkde/kconfigtest.cpp new file mode 100644 index 0000000..373d674 --- a/dev/null +++ b/microkde/kconfigtest.cpp @@ -0,0 +1,14 @@ +#include "kconfig.h" +#include "kdebug.h" + +#include <qdatetime.h> + +int main() +{ + QDateTime dt = QDateTime::currentDateTime(); + kdDebug() << "Before: " << dt.toString() << endl; + KConfig cfg( "huhu" ); + cfg.writeEntry( "123", dt ); + QDateTime newDt = cfg.readDateTimeEntry( "123" ); + kdDebug() << "After: " << newDt.toString() << endl; +} |