[Kde-imaging] kdeextragear-libs-1/kipi-plugins/findimages
Gilles Caulier
caulier.gilles at free.fr
Mon Sep 13 15:48:38 CEST 2004
CVS commit by cgilles:
Findduplicateimages plugin : fixed missing kipi::delImage call when the user remove
a duplicate image to the list.
CCMAIL: kde-imaging at kde.org
M +6 -2 displaycompare.cpp 1.16
M +1 -1 displaycompare.h 1.8
--- kdeextragear-libs-1/kipi-plugins/findimages/displaycompare.cpp #1.15:1.16
@@ -312,4 +312,6 @@ void DisplayCompare::slotDelete( void )
if ( KIO::NetAccess::del(deleteImage) == false )
KMessageBox::error(0, i18n("Cannot remove duplicate file:\n%1").arg(item->fullpath()));
+ else
+ m_interface->delImage( deleteImage );
listEq->takeItem (item);
@@ -352,5 +354,6 @@ void DisplayCompare::slotDisplayLeft(QLi
OriginalNameLabel->setText(pitem->name());
originalInfoLabel1->setText(i18n("Image size: %1x%2 pixels").arg(im.width()).arg(im.height()));
- originalInfoLabel2->setText(i18n("File size: 1 byte", "File size: %n bytes",QFileInfo(pitem->fullpath()).size()));
+ originalInfoLabel2->setText(i18n("File size: 1 byte",
+ "File size: %n bytes",QFileInfo(pitem->fullpath()).size()));
originalInfoLabel3->setText(i18n("Modified: %1").arg(KLocale(NULL)
.formatDateTime(QFileInfo(pitem->fullpath())
@@ -428,5 +431,6 @@ void DisplayCompare::slotDisplayRight(QL
similarNameLabel->setText(pitem->name());
similarInfoLabel1->setText(i18n("Image size: %1x%2 pixels").arg(im.width()).arg(im.height()));
- similarInfoLabel2->setText(i18n("File size: 1 byte", "File size: %n bytes", QFileInfo(pitem->fullpath()).size()));
+ similarInfoLabel2->setText(i18n("File size: 1 byte",
+ "File size: %n bytes", QFileInfo(pitem->fullpath()).size()));
similarInfoLabel3->setText(i18n("Modified: %1").arg(KLocale(NULL)
.formatDateTime(QFileInfo(pitem->fullpath())
--- kdeextragear-libs-1/kipi-plugins/findimages/displaycompare.h #1.7:1.8
@@ -103,5 +103,5 @@ private:
QPushButton *m_helpButton;
- KIPI::Interface* m_interface;
+ KIPI::Interface *m_interface;
};
More information about the Kde-imaging
mailing list