Skip to content
Permalink
Browse files

#5416 Update maptips delay on saving the settings

  • Loading branch information
jdugge committed Nov 4, 2017
1 parent c30b824 commit cfeae9c0ff3294aed81e50fd25e01f2cb7383982
Showing with 9 additions and 0 deletions.
  1. +5 −0 src/app/qgisapp.cpp
  2. +2 −0 src/app/qgisapp.h
  3. +2 −0 src/app/qgsoptions.cpp
@@ -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 );
@@ -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)
@@ -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() );

0 comments on commit cfeae9c

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