[Kde-imaging] extragear/libs/kipi-plugins/timeadjust
Gilles Caulier
caulier.gilles at gmail.com
Sun Jun 10 14:33:56 CEST 2007
SVN commit 673513 by cgilles:
kipi-plugins from trunk (KDE4) : Time Adjust plugins is now completly ported to QT4/KDE4
CCMAIL: kde-imaging at kde.org
M +7 -8 timeadjustdialog.cpp
--- trunk/extragear/libs/kipi-plugins/timeadjust/timeadjustdialog.cpp #673512:673513
@@ -312,22 +312,21 @@
void TimeAdjustDialog::readSettings()
{
KConfig config("kipirc");
- config.group("Time Adjust Settings");
+ KConfigGroup group = config.group(QString("Time Adjust Settings"));
- int adjType = config.readNumEntry("Adjustment Type", 0); // add by default.
+ int adjType = group.readEntry("Adjustment Type", 0); // add by default.
if (adjType == 0) d->add->setChecked(true);
if (adjType == 1) d->subtract->setChecked(true);
if (adjType == 2) d->exif->setChecked(true);
if (adjType == 3) d->custom->setChecked(true);
- QDateTime current = QDateTime::currentDateTime();
- d->dateCreatedSel->setDateTime(config.readDateTimeEntry("Custom Date", ¤t));
+ d->dateCreatedSel->setDateTime(group.readEntry("Custom Date", QDateTime::currentDateTime()));
- d->syncEXIFDateCheck->setChecked(config.readBoolEntry("Sync EXIF Date", true));
- d->syncIPTCDateCheck->setChecked(config.readBoolEntry("Sync IPTC Date", true));
+ d->syncEXIFDateCheck->setChecked(group.readEntry("Sync EXIF Date", true));
+ d->syncIPTCDateCheck->setChecked(group.readEntry("Sync IPTC Date", true));
- KConfigGroup group = config.group(QString("Time Adjust Dialog"));
- restoreDialogSize(group);
+ KConfigGroup group2 = config.group(QString("Time Adjust Dialog"));
+ restoreDialogSize(group2);
}
void TimeAdjustDialog::saveSettings()
More information about the Kde-imaging
mailing list