Navigation Menu

Skip to content

Commit

Permalink
[FEATURE] Make map tips delay configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
jdugge committed Mar 8, 2018
1 parent 333f2c3 commit 7622ecf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -3815,8 +3815,11 @@ void QgisApp::createMapTips()
mpMapTipsTimer = new QTimer( mMapCanvas );
// connect the timer to the maptips slot
connect( mpMapTipsTimer, &QTimer::timeout, this, &QgisApp::showMapTip );
// set the interval to 0.850 seconds - timer will be started next time the mouse moves
mpMapTipsTimer->setInterval( 850 );
// set the interval to 0.850 seconds or time defined in Advanced Settings
// timer will be started next time the mouse moves
QgsSettings settings;
int timerInterval = settings.value( "qgis/mapTipsTimerInterval", 850 ).toInt();
mpMapTipsTimer->setInterval( timerInterval );
mpMapTipsTimer->setSingleShot( true );

// Create the maptips object
Expand Down

0 comments on commit 7622ecf

Please sign in to comment.