[Digikam-devel] [Bug 133359] WISH: Google maps support to show satellite images of the photos

Gilles Caulier caulier.gilles at free.fr
Tue Sep 26 09:54:49 BST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=133359         




------- Additional Comments From caulier.gilles free fr  2006-09-26 10:54 -------
SVN commit 588502 by cgilles:

kipi-plugins from trunk : GPSSync tool : to be able to set GPS info in pictures if time stamp is not available and if user set GPS coordinate manually

CCMAIL: kde-imaging kde org, alexios.beveratos gmail com, gerhard kulzer net

CCBUGS: 133359, 111560

 M  +4 -4      gpslistviewitem.cpp  
 M  +0 -1      gpslistviewitem.h  


--- trunk/extragear/libs/kipi-plugins/gpssync/gpslistviewitem.cpp #588501:588502
 @ -74,8 +74,8  @
     exiv2Iface.load(d->url.path());
     setDateTime(exiv2Iface.getImageDateTime());
     double alt, lat, lng;
-    exiv2Iface.getGPSInfo(alt, lat, lng);
-    setGPSInfo(GPSDataContainer(alt, lat, lng, false), false);
+    if (exiv2Iface.getGPSInfo(alt, lat, lng))
+        setGPSInfo(GPSDataContainer(alt, lat, lng, false), false);
 
     KIO::PreviewJob* thumbnailJob = KIO::filePreview(url, 64);
 
 @ -90,6 +90,7  @
 
 void GPSListViewItem::setGPSInfo(GPSDataContainer gpsData, bool dirty, bool addedManually)
 {
+    setEnabled(true);
     d->dirty   = dirty;
     d->gpsData = gpsData;
     setText(2, QString::number(d->gpsData.altitude()));
 @ -123,7 +124,6  @
 {
     if (date.isValid())
     {
-        setEnabled(true);
         d->date = date;
         setText(5, date.toString(Qt::ISODate));
     }
 @ -202,7 +202,7  @
 
 void GPSListViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
 {
-    if (d->enabled)
+    if (isEnabled())
     {
         if ( isDirty() && !d->erase && column >= 2  && column <= 4 )
         {
--- trunk/extragear/libs/kipi-plugins/gpssync/gpslistviewitem.h #588501:588502
 @ -59,7 +59,6  @
     GPSDataContainer getGPSInfo();
     void eraseGPSInfo(bool e);
 
-
     void setDateTime(QDateTime date);
     QDateTime getDateTime();



More information about the Digikam-devel mailing list