From 3889c8f853aa2d128f54389b17f08fc7b9150788 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Sat, 03 Jan 2004 18:27:07 +0000 Subject: show GPS coordinates in the more common DMS format --- (limited to 'noncore/net/wellenreiter/gui/scanlist.cpp') diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index 1cca507..d89c71f 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp @@ -189,7 +189,7 @@ void MScanListView::addNewItem( const QString& type, MScanListItem* station = new MScanListItem( network, type, "", macaddr, wep, channel, signal ); station->setManufacturer( mac.manufacturer() ); - station->setLocation( loc.latitude, loc.longitude ); + station->setLocation( loc.dmsPosition() ); if ( type == "managed" ) { @@ -533,12 +533,9 @@ void MScanListItem::setManufacturer( const QString& manufacturer ) } -void MScanListItem::setLocation( const float& latitude, const float& longitude ) +void MScanListItem::setLocation( const QString& location ) { - if ( latitude == 0.0 || longitude == 0.0 ) - setText( col_location, "N/A" ); - else - setText( col_location, QString().sprintf( "%.2f / %.2f", latitude, longitude ) ); + setText( col_location, location ); } -- cgit v0.9.0.2