Skip to content

Commit fc5f707

Browse files
committed
Remove some unused whatsThis text
1 parent f976b0d commit fc5f707

5 files changed

+0
-37
lines changed

src/app/qgisapp.cpp

-25
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
767767
mMapCanvas = new QgsMapCanvas( centralWidget );
768768
mMapCanvas->setObjectName( QStringLiteral( "theMapCanvas" ) );
769769
connect( mMapCanvas, &QgsMapCanvas::messageEmitted, this, &QgisApp::displayMessage );
770-
mMapCanvas->setWhatsThis( tr( "Map canvas. This is where raster and vector "
771-
"layers are displayed when added to the map" ) );
772770

773771
if ( settings.value( QStringLiteral( "qgis/main_canvas_preview_jobs" ) ).isNull() )
774772
{
@@ -3098,9 +3096,6 @@ void QgisApp::createStatusBar()
30983096
mRotationEdit->setSingleStep( 5.0 );
30993097
mRotationEdit->setFont( statusBarFont );
31003098
mRotationEdit->setSuffix( tr( " °" ) );
3101-
mRotationEdit->setWhatsThis( tr( "Shows the current map clockwise rotation "
3102-
"in degrees. It also allows editing to set "
3103-
"the rotation" ) );
31043099
mRotationEdit->setToolTip( tr( "Current clockwise map rotation in degrees" ) );
31053100
mStatusBar->addPermanentWidget( mRotationEdit, 0 );
31063101
connect( mRotationEdit, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, &QgisApp::userRotation );
@@ -3112,10 +3107,6 @@ void QgisApp::createStatusBar()
31123107
mRenderSuppressionCBox->setObjectName( QStringLiteral( "mRenderSuppressionCBox" ) );
31133108
mRenderSuppressionCBox->setChecked( true );
31143109
mRenderSuppressionCBox->setFont( statusBarFont );
3115-
mRenderSuppressionCBox->setWhatsThis( tr( "When checked, the map layers "
3116-
"are rendered in response to map navigation commands and other "
3117-
"events. When not checked, no rendering is done. This allows you "
3118-
"to add a large number of layers and symbolize them before rendering." ) );
31193110
mRenderSuppressionCBox->setToolTip( tr( "Toggle map rendering" ) );
31203111
mStatusBar->addPermanentWidget( mRenderSuppressionCBox, 0 );
31213112
// On the fly projection status bar icon
@@ -3130,10 +3121,6 @@ void QgisApp::createStatusBar()
31303121
// For Qt/Mac 3.3, the default toolbutton height is 30 and labels were expanding to match
31313122
mOnTheFlyProjectionStatusButton->setMaximumHeight( mScaleWidget->height() );
31323123
mOnTheFlyProjectionStatusButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconProjectionEnabled.svg" ) ) );
3133-
mOnTheFlyProjectionStatusButton->setWhatsThis( tr( "This icon shows whether "
3134-
"on the fly coordinate reference system transformation is enabled or not. "
3135-
"Click the icon to bring up "
3136-
"the project properties dialog to alter this behavior." ) );
31373124
mOnTheFlyProjectionStatusButton->setToolTip( tr( "CRS status - Click "
31383125
"to open coordinate reference system dialog" ) );
31393126
connect( mOnTheFlyProjectionStatusButton, &QAbstractButton::clicked,
@@ -3145,7 +3132,6 @@ void QgisApp::createStatusBar()
31453132
mMessageButton->setAutoRaise( true );
31463133
mMessageButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mMessageLogRead.svg" ) ) );
31473134
mMessageButton->setToolTip( tr( "Messages" ) );
3148-
mMessageButton->setWhatsThis( tr( "Messages" ) );
31493135
mMessageButton->setObjectName( QStringLiteral( "mMessageLogViewerButton" ) );
31503136
mMessageButton->setMaximumHeight( mScaleWidget->height() );
31513137
mMessageButton->setCheckable( true );
@@ -3672,8 +3658,6 @@ void QgisApp::createOverview()
36723658
int blue = settings.value( QStringLiteral( "qgis/default_canvas_color_blue" ), 255 ).toInt();
36733659
mOverviewCanvas->setBackgroundColor( QColor( red, green, blue ) );
36743660

3675-
mOverviewCanvas->setWhatsThis( tr( "Map overview canvas. This canvas can be used to display a locator map that shows the current extent of the map canvas. The current extent is shown as a red rectangle. Any layer on the map can be added to the overview canvas." ) );
3676-
36773661
mOverviewMapCursor = new QCursor( Qt::OpenHandCursor );
36783662
mOverviewCanvas->setCursor( *mOverviewMapCursor );
36793663
// QVBoxLayout *myOverviewLayout = new QVBoxLayout;
@@ -3916,8 +3900,6 @@ void QgisApp::addUserInputWidget( QWidget *widget )
39163900

39173901
void QgisApp::initLayerTreeView()
39183902
{
3919-
mLayerTreeView->setWhatsThis( tr( "Map legend that displays all the layers currently on the map canvas. Click on the checkbox to turn a layer on or off. Double-click on a layer in the legend to customize its appearance and set other properties." ) );
3920-
39213903
mLayerTreeDock = new QgsDockWidget( tr( "Layers" ), this );
39223904
mLayerTreeDock->setObjectName( QStringLiteral( "Layers" ) );
39233905
mLayerTreeDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
@@ -4025,7 +4007,6 @@ void QgisApp::initLayerTreeView()
40254007
mMapLayerOrder = new QgsCustomLayerOrderWidget( mLayerTreeCanvasBridge, this );
40264008
mMapLayerOrder->setObjectName( QStringLiteral( "theMapLayerOrder" ) );
40274009

4028-
mMapLayerOrder->setWhatsThis( tr( "Map layer list that displays all layers in drawing order." ) );
40294010
mLayerOrderDock = new QgsDockWidget( tr( "Layer Order" ), this );
40304011
mLayerOrderDock->setObjectName( QStringLiteral( "LayerOrder" ) );
40314012
mLayerOrderDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
@@ -11454,12 +11435,6 @@ void QgisApp::closeEvent( QCloseEvent *event )
1145411435
fileExit();
1145511436
}
1145611437

11457-
11458-
void QgisApp::whatsThis()
11459-
{
11460-
QWhatsThis::enterWhatsThisMode();
11461-
} // QgisApp::whatsThis()
11462-
1146311438
QMenu *QgisApp::getPluginMenu( const QString &menuName )
1146411439
{
1146511440
/* Plugin menu items are below the plugin separator (which may not exist yet

src/app/qgisapp.h

-2
Original file line numberDiff line numberDiff line change
@@ -1381,8 +1381,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
13811381
void customize();
13821382
//! options dialog slot
13831383
void options();
1384-
//! Whats-this help slot
1385-
void whatsThis();
13861384
//! Open project properties dialog and show the projections tab
13871385
void projectPropertiesProjections();
13881386
/* void urlData(); */

src/app/qgsstatusbarcoordinateswidget.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ QgsStatusBarCoordinatesWidget::QgsStatusBarCoordinatesWidget( QWidget *parent )
5959

6060
QRegExp coordValidator( "[+-]?\\d+\\.?\\d*\\s*,\\s*[+-]?\\d+\\.?\\d*" );
6161
mCoordsEditValidator = new QRegExpValidator( coordValidator, this );
62-
mLineEdit->setWhatsThis( tr( "Shows the map coordinates at the "
63-
"current cursor position. The display is continuously updated "
64-
"as the mouse is moved. It also allows editing to set the canvas "
65-
"center to a given position. The format is longitude,latitude or east,north" ) );
6662
mLineEdit->setToolTip( tr( "Current map coordinate (longitude,latitude or east,north)" ) );
6763

6864
//toggle to switch between mouse pos and extents display in status bar widget

src/app/qgsstatusbarscalewidget.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ QgsStatusBarScaleWidget::QgsStatusBarScaleWidget( QgsMapCanvas *canvas, QWidget
4545
// so we need to set font for it separately
4646
mScale->setMinimumWidth( 10 );
4747
mScale->setContentsMargins( 0, 0, 0, 0 );
48-
mScale->setWhatsThis( tr( "Displays the current map scale" ) );
4948
mScale->setToolTip( tr( "Current map scale (formatted as x:y)" ) );
5049

5150
// layout

src/app/qgsvectorlayerproperties.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,6 @@ void QgsVectorLayerProperties::syncToLayer()
497497
// populate the general information
498498
mLayerOrigNameLineEdit->setText( mLayer->name() );
499499
txtDisplayName->setText( mLayer->name() );
500-
pbnQueryBuilder->setWhatsThis( tr( "This button opens the query "
501-
"builder and allows you to create a subset of features to display on "
502-
"the map canvas rather than displaying all features in the layer" ) );
503-
txtSubsetSQL->setWhatsThis( tr( "The query used to limit the features in the "
504-
"layer is shown here. To enter or modify the query, click on the Query Builder button" ) );
505500

506501
//see if we are dealing with a pg layer here
507502
mSubsetGroupBox->setEnabled( true );

0 commit comments

Comments
 (0)