Skip to content

Commit f88ddcb

Browse files
committedAug 17, 2017
Remove startup tips
1 parent 5abbab1 commit f88ddcb

File tree

9 files changed

+21
-739
lines changed

9 files changed

+21
-739
lines changed
 

‎src/app/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ SET(QGIS_APP_SRCS
124124
qgstextannotationdialog.cpp
125125
qgssvgannotationdialog.cpp
126126
qgsundowidget.cpp
127-
qgstipgui.cpp
128-
qgstipfactory.cpp
129127
qgsvectorlayerproperties.cpp
130128
qgsmapthemes.cpp
131129
qgshandlebadlayers.cpp
@@ -308,8 +306,6 @@ SET (QGIS_APP_MOC_HDRS
308306
qgsstatisticalsummarydockwidget.h
309307
qgssvgannotationdialog.h
310308
qgstextannotationdialog.h
311-
qgstipgui.h
312-
qgstipfactory.h
313309
qgsundowidget.h
314310
qgsvectorlayerproperties.h
315311
qgsmapthemes.h

‎src/app/qgisapp.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ Q_GUI_EXPORT extern int qt_defaultDpiX();
261261
#include "qgstaskmanagerwidget.h"
262262
#include "qgssymbolselectordialog.h"
263263
#include "qgstextannotation.h"
264-
#include "qgstipgui.h"
265264
#include "qgsundowidget.h"
266265
#include "qgsuserinputdockwidget.h"
267266
#include "qgsvectordataprovider.h"
@@ -1168,18 +1167,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
11681167
toggleSnapping->setProperty( "Icon", QgsApplication::getThemeIcon( "/mIconSnapping.svg" ) );
11691168
connect( toggleSnapping, &QShortcut::activated, mSnappingUtils, &QgsSnappingUtils::toggleEnabled );
11701169

1171-
// Show a nice tip of the day
1172-
if ( settings.value( QStringLiteral( "qgis/showTips%1" ).arg( Qgis::QGIS_VERSION_INT / 100 ), true ).toBool() )
1173-
{
1174-
mSplash->hide();
1175-
QgsTipGui myTip( this );
1176-
myTip.exec();
1177-
}
1178-
else
1179-
{
1180-
QgsDebugMsg( "Tips are disabled" );
1181-
}
1182-
11831170
if ( ! QTouchDevice::devices().isEmpty() )
11841171
{
11851172
//add reacting to long click in touch

‎src/app/qgsoptions.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
628628
mLegendLayersBoldChkBx->setChecked( mSettings->value( QStringLiteral( "/qgis/legendLayersBold" ), true ).toBool() );
629629
mLegendGroupsBoldChkBx->setChecked( mSettings->value( QStringLiteral( "/qgis/legendGroupsBold" ), false ).toBool() );
630630
cbxHideSplash->setChecked( mSettings->value( QStringLiteral( "/qgis/hideSplash" ), false ).toBool() );
631-
cbxShowTips->setChecked( mSettings->value( QStringLiteral( "/qgis/showTips%1" ).arg( Qgis::QGIS_VERSION_INT / 100 ), true ).toBool() );
632631
mDataSourceManagerNonModal->setChecked( mSettings->value( "/qgis/dataSourceManagerNonModal", false ).toBool() );
633632
cbxCheckVersion->setChecked( mSettings->value( QStringLiteral( "/qgis/checkVersion" ), true ).toBool() );
634633
cbxAttributeTableDocked->setChecked( mSettings->value( QStringLiteral( "/qgis/dockAttributeTable" ), false ).toBool() );
@@ -1209,7 +1208,6 @@ void QgsOptions::saveOptions()
12091208
bool legendGroupsBold = mSettings->value( QStringLiteral( "/qgis/legendGroupsBold" ), false ).toBool();
12101209
mSettings->setValue( QStringLiteral( "/qgis/legendGroupsBold" ), mLegendGroupsBoldChkBx->isChecked() );
12111210
mSettings->setValue( QStringLiteral( "/qgis/hideSplash" ), cbxHideSplash->isChecked() );
1212-
mSettings->setValue( QStringLiteral( "/qgis/showTips%1" ).arg( Qgis::QGIS_VERSION_INT / 100 ), cbxShowTips->isChecked() );
12131211
mSettings->setValue( QStringLiteral( "/qgis/dataSourceManagerNonModal" ), mDataSourceManagerNonModal->isChecked() );
12141212
mSettings->setValue( QStringLiteral( "/qgis/checkVersion" ), cbxCheckVersion->isChecked() );
12151213
mSettings->setValue( QStringLiteral( "/qgis/dockAttributeTable" ), cbxAttributeTableDocked->isChecked() );

‎src/app/qgstip.h

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)