Changeset 426
- Timestamp:
- Dec 15, 2009, 12:18:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tests/widget/widget.cpp ¶
r380 r426 593 593 #endif 594 594 595 #if 1 596 //-------------------------------------------------------------------------- 597 // QSettings test 598 599 QSettings sysOrgSet(QSettings::IniFormat, QSettings::SystemScope, 600 QLatin1String("MySoft")); 601 QSettings sysAppSet(QSettings::IniFormat, QSettings::SystemScope, 602 QLatin1String("MySoft"), QLatin1String("MyApp")); 603 QSettings userOrgSet(QSettings::IniFormat, QSettings::UserScope, 604 QLatin1String("MySoft")); 605 QSettings userAppSet(QSettings::IniFormat, QSettings::UserScope, 606 QLatin1String("MySoft"), QLatin1String("MyApp")); 607 608 QList<QSettings *> sets; 609 sets << &sysOrgSet << &sysAppSet << &userOrgSet << &userAppSet; 610 611 foreach (QSettings *set, sets) { 612 set->setValue("Time", QDateTime::currentDateTime()); 613 } 614 615 qDebug() << "Modified Time key in MySoft/MyApp (system & user)"; 616 #endif 617 595 618 #else 596 619 ////////////////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.