[Kde-imaging] extragear/libs/kipi-plugins/gpssync
Gilles Caulier
caulier.gilles at free.fr
Tue Sep 26 10:54:39 CEST 2006
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 at kde.org, alexios.beveratos at gmail.com, gerhard at 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 Kde-imaging
mailing list