Skip to content

Commit cfeae9c

Browse files
committedMar 8, 2018
#5416 Update maptips delay on saving the settings
1 parent c30b824 commit cfeae9c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3826,6 +3826,11 @@ void QgisApp::createMapTips()
38263826
mpMaptip = new QgsMapTip();
38273827
}
38283828

3829+
void QgisApp::setMapTipsDelay( int timerInterval )
3830+
{
3831+
mpMapTipsTimer->setInterval( timerInterval );
3832+
}
3833+
38293834
void QgisApp::createDecorations()
38303835
{
38313836
QgsDecorationCopyright *mDecorationCopyright = new QgsDecorationCopyright( this );

‎src/app/qgisapp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,8 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
951951
//! shows the snapping Options
952952
void snappingOptions();
953953

954+
void setMapTipsDelay( int timerInterval );
955+
954956
protected:
955957

956958
//! Handle state changes (WindowTitleChange)

‎src/app/qgsoptions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,8 @@ void QgsOptions::saveOptions()
12371237
mSettings->setValue( QStringLiteral( "/qgis/compileExpressions" ), cbxCompileExpressions->isChecked() );
12381238
mSettings->setValue( QStringLiteral( "/qgis/defaultLegendGraphicResolution" ), mLegendGraphicResolutionSpinBox->value() );
12391239
mSettings->setValue( QStringLiteral( "/qgis/mapTipsDelay" ), mMapTipsDelaySpinBox->value() );
1240+
QgisApp::instance()->setMapTipsDelay( mMapTipsDelaySpinBox->value() );
1241+
12401242
bool createRasterLegendIcons = mSettings->value( QStringLiteral( "/qgis/createRasterLegendIcons" ), false ).toBool();
12411243
mSettings->setValue( QStringLiteral( "/qgis/createRasterLegendIcons" ), cbxCreateRasterLegendIcons->isChecked() );
12421244
mSettings->setValue( QStringLiteral( "/qgis/copyFeatureFormat" ), mComboCopyFeatureFormat->currentData().toInt() );

0 commit comments

Comments
 (0)
Please sign in to comment.