summaryrefslogtreecommitdiffabout
path: root/microkde/kconfigtest.cpp
blob: 373d67480f9cf23da7190613739f3ed638cf76dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}