[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/libs/kipi-plugins/gpssync
From:       Gilles Caulier <caulier.gilles () gmail ! com>
Date:       2008-02-05 15:49:24
Message-ID: 1202226564.790240.1992.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 771261 by cgilles:

polish


 M  +17 -15    gpssyncdialog.cpp  


--- trunk/extragear/libs/kipi-plugins/gpssync/gpssyncdialog.cpp #771260:771261
@@ -25,6 +25,7 @@
 
 #include <Q3VGroupBox>
 #include <QComboBox>
+#include <QPainter>
 #include <QLayout>
 #include <QLabel>
 #include <QPushButton>
@@ -326,6 +327,22 @@
     d->interface->thumbnails(images, 64);
 }
 
+void GPSSyncDialog::slotThumbnail(const KUrl& url, const QPixmap& pix)
+{
+    QPixmap pixmap = pix.scaled(64, 64, Qt::KeepAspectRatio);
+    Q3ListViewItemIterator it(d->listView);
+
+    while (it.current())
+    {
+        GPSListViewItem *selItem = dynamic_cast<GPSListViewItem*>(it.current());
+        if (selItem->url() == url)
+        {
+            selItem->setPixmap(0, pixmap);
+        }
+        ++it;
+    }
+}
+
 void GPSSyncDialog::slotLoadGPXFile()
 {
     KUrl loadGPXFile = KFileDialog::getOpenUrl(KGlobalSettings::documentPath(),
@@ -566,19 +583,4 @@
     d->interface->refreshImages(images);
 }
 
-void GPSSyncDialog::slotThumbnail(const KUrl& url, const QPixmap& pix)
-{
-    Q3ListViewItemIterator it(d->listView);
-
-    while (it.current())
-    {
-        GPSListViewItem *selItem = dynamic_cast<GPSListViewItem*>(it.current());
-        if (selItem->url() == url)
-        {
-            selItem->setPixmap(0, pix);
-        }
-        ++it;
-    }
-}
-
 }  // NameSpace KIPIGPSSyncPlugin
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic