author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /microkde/kconfigtest.cpp | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
-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 | } | ||