-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 @@ | |||
1 | #include "kconfig.h" | ||
2 | #include "kdebug.h" | ||
3 | |||
4 | #include <qdatetime.h> | ||
5 | |||
6 | int main() | ||
7 | { | ||
8 | QDateTime dt = QDateTime::currentDateTime(); | ||
9 | kdDebug() << "Before: " << dt.toString() << endl; | ||
10 | KConfig cfg( "huhu" ); | ||
11 | cfg.writeEntry( "123", dt ); | ||
12 | QDateTime newDt = cfg.readDateTimeEntry( "123" ); | ||
13 | kdDebug() << "After: " << newDt.toString() << endl; | ||
14 | } | ||