summaryrefslogtreecommitdiffabout
path: root/microkde/kconfigtest.cpp
Side-by-side diff
Diffstat (limited to 'microkde/kconfigtest.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kconfigtest.cpp14
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;
+}