Skip to content
Permalink
Browse files

[FEATURE] Make map tips delay configurable

  • Loading branch information
jdugge committed Oct 21, 2017
1 parent 333f2c3 commit 7622ecf5ad48b2ac9fba374bd25970bd665b665b
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/app/qgisapp.cpp
@@ -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

0 comments on commit 7622ecf

Please sign in to comment.
You can’t perform that action at this time.