summaryrefslogtreecommitdiffabout
path: root/microkde/kconfigtest.cpp
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (side-by-side diff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /microkde/kconfigtest.cpp
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
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;
+}