Skip to content

Commit

Permalink
#5416 Update maptips delay on saving the settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdugge committed Mar 8, 2018
1 parent c30b824 commit cfeae9c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -3826,6 +3826,11 @@ void QgisApp::createMapTips()
mpMaptip = new QgsMapTip();
}

void QgisApp::setMapTipsDelay( int timerInterval )
{
mpMapTipsTimer->setInterval( timerInterval );
}

void QgisApp::createDecorations()
{
QgsDecorationCopyright *mDecorationCopyright = new QgsDecorationCopyright( this );
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgisapp.h
Expand Up @@ -951,6 +951,8 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
//! shows the snapping Options
void snappingOptions();

void setMapTipsDelay( int timerInterval );

protected:

//! Handle state changes (WindowTitleChange)
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgsoptions.cpp
Expand Up @@ -1237,6 +1237,8 @@ void QgsOptions::saveOptions()
mSettings->setValue( QStringLiteral( "/qgis/compileExpressions" ), cbxCompileExpressions->isChecked() );
mSettings->setValue( QStringLiteral( "/qgis/defaultLegendGraphicResolution" ), mLegendGraphicResolutionSpinBox->value() );
mSettings->setValue( QStringLiteral( "/qgis/mapTipsDelay" ), mMapTipsDelaySpinBox->value() );
QgisApp::instance()->setMapTipsDelay( mMapTipsDelaySpinBox->value() );

bool createRasterLegendIcons = mSettings->value( QStringLiteral( "/qgis/createRasterLegendIcons" ), false ).toBool();
mSettings->setValue( QStringLiteral( "/qgis/createRasterLegendIcons" ), cbxCreateRasterLegendIcons->isChecked() );
mSettings->setValue( QStringLiteral( "/qgis/copyFeatureFormat" ), mComboCopyFeatureFormat->currentData().toInt() );
Expand Down

0 comments on commit cfeae9c

Please sign in to comment.