[locale] Fix build with DEBUG_TIMEZONE

- all the API changes were not reflected in the debugging code
main
Adriaan de Groot 6 years ago
parent fb9d53909e
commit e164f8d63a

@ -75,9 +75,9 @@ TimeZoneWidget::TimeZoneWidget( QWidget* parent )
#ifdef DEBUG_TIMEZONES #ifdef DEBUG_TIMEZONES
if ( timeZoneImages.last().size() != background.size() ) if ( timeZoneImages.last().size() != background.size() )
{ {
cWarning() << "Timezone image size mismatch" << zones.at( i ) << timeZoneImages.last().size(); cWarning() << "Timezone image size mismatch" << zoneName << timeZoneImages.last().size();
} }
timeZoneImages.last().setText( ZONE_NAME, zones.at( i ) ); timeZoneImages.last().setText( ZONE_NAME, zoneName );
#endif #endif
} }
} }
@ -111,8 +111,7 @@ TimeZoneWidget::setCurrentLocation( const CalamaresUtils::Locale::TZZone* locati
QPoint pos = getLocationPosition( currentLocation.longitude, currentLocation.latitude ); QPoint pos = getLocationPosition( currentLocation.longitude, currentLocation.latitude );
#ifdef DEBUG_TIMEZONES #ifdef DEBUG_TIMEZONES
cDebug() << "Setting location" << location.region << location.zone << location.country; cDebug() << "Setting location" << location->region() << *location;
cDebug() << Logger::SubEntry << "longitude" << location.longitude << "latitude" << location.latitude;
cDebug() << Logger::SubEntry << "pixel x" << pos.x() << "pixel y" << pos.y(); cDebug() << Logger::SubEntry << "pixel x" << pos.x() << "pixel y" << pos.y();
bool found = false; bool found = false;

Loading…
Cancel
Save