[Marble-commits] branches/KDE/4.5/kdeedu/marble/src/lib/routing
Dennis Nienhüser
earthwings at gentoo.org
Mon Sep 6 20:38:05 CEST 2010
SVN commit 1172219 by nienhueser:
Hide now invalid route summary after clearing a route. Prevent am/pm from turning up in estimated travel duration.
BUG: 250338
M +2 -1 RoutingWidget.cpp
--- branches/KDE/4.5/kdeedu/marble/src/lib/routing/RoutingWidget.cpp #1172218:1172219
@@ -126,6 +126,7 @@
if ( search ) {
text = QObject::tr( "Search" );
tooltip = QObject::tr( "Find places matching the search term" );
+ m_ui.descriptionLabel->setVisible( false );
}
m_ui.searchButton->setText( text );
@@ -426,7 +427,7 @@
qreal distance = d->m_routingManager->routingModel()->totalDistance();
unsigned int days = d->m_routingManager->routingModel()->duration().days;
QTime time = d->m_routingManager->routingModel()->duration().time;
- QString timeString = time.toString( Qt::DefaultLocaleShortDate );
+ QString timeString = time.toString( "HH:mm" );
if ( days ) {
QString label = tr( "Estimated travel time: %1 days, %2 (%3 km)", 0, days );
d->m_ui.descriptionLabel->setText( label.arg( days ).arg( timeString ).arg( distance, 0, 'f', 1 ) );
More information about the Marble-commits
mailing list