[Kde-imaging] kdeextragear-libs-1/kipi-plugins/batchprocessimages
Gilles Caulier
caulier.gilles at free.fr
Sat Sep 25 17:03:40 CEST 2004
CVS commit by cgilles:
patch from Martin Laberge for KDE 3.1 compatibility.
CCMAIL: kde-imaging at kde.org, digikam-devel at lists.sourceforge.net
M +9 -0 renameimagesdialog.cpp 1.27
M +8 -0 renameimagesoptionsdialog.cpp 1.7
M +4 -0 renameimagesoptionsdialog.h 1.5
--- kdeextragear-libs-1/kipi-plugins/batchprocessimages/renameimagesdialog.cpp #1.26:1.27
@@ -54,5 +54,10 @@ extern "C"
#include <kio/netaccess.h>
#include <kprogress.h>
+#include <kdeversion.h>
+#if KDE_VERSION >= 0x30200
#include <kdatetimewidget.h>
+#else
+#include <kdatewidget.h>
+#endif
#include <kapplication.h>
#include <kaboutdata.h>
@@ -323,5 +328,9 @@ void RenameImagesDialog::updateOptions(v
m_enumeratorStart = optionsDialog->m_enumeratorStart->value();
m_dateChange = optionsDialog->m_dateChange->isChecked();
+#if KDE_VERSION >= 0x30200
m_newDateTime = optionsDialog->m_kDatePicker->dateTime();
+#else
+ m_newDateTime = optionsDialog->m_kDatePicker->date();
+#endif
}
--- kdeextragear-libs-1/kipi-plugins/batchprocessimages/renameimagesoptionsdialog.cpp #1.6:1.7
@@ -38,5 +38,9 @@
#include <knuminput.h>
#include <klineedit.h>
+#if KDE_VERSION >= 0x30200
#include <kdatetimewidget.h>
+#else
+#include <kdatewidget.h>
+#endif
// Local includes
@@ -115,5 +119,9 @@ RenameImagesOptionsDialog::RenameImagesO
m_dateChange->setChecked( false );
+#if KDE_VERSION >= 0x30200
m_kDatePicker = new KDateTimeWidget( QDate::currentDate(), groupBox3 );
+#else
+ m_kDatePicker = new KDateWidget( QDate::currentDate(), groupBox3 );
+#endif
m_kDatePicker->setEnabled( false );
QWhatsThis::add( m_kDatePicker, i18n("<p>You can set here the time stamp of the image files.") );
--- kdeextragear-libs-1/kipi-plugins/batchprocessimages/renameimagesoptionsdialog.h #1.4:1.5
@@ -68,5 +68,9 @@ Q_OBJECT
QCheckBox *m_dateChange;
+#if KDE_VERSION >= 0x30200
KDateTimeWidget *m_kDatePicker;
+#else
+ KDateWidget *m_kDatePicker;
+#endif
};
More information about the Kde-imaging
mailing list