[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/marble/src/lib/routing
From: Dennis Nienhüser <earthwings () gentoo ! org>
Date: 2010-11-30 21:28:40
Message-ID: 20101130212840.4EB23AC8A7 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1202434 by nienhueser:
Use a shorter maximum wait time for alternative routes (0.5 sec instead of 2).
M +1 -1 AlternativeRoutesModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/routing/AlternativeRoutesModel.cpp #1202433:1202434
@@ -374,7 +374,7 @@
// First
int responseTime = d->m_responseTime.elapsed();
d->m_restrainedRoutes.push_back( document );
- int timeout = qMin<int>( 2000, qMax<int>( 50, responseTime * 2 ) );
+ int timeout = qMin<int>( 500, qMax<int>( 50, responseTime * 2 ) );
QTimer::singleShot( timeout, this, SLOT( addRestrainedRoutes() ) );
return;
} else if ( d->m_routes.isEmpty() && !d->m_restrainedRoutes.isEmpty() ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic