Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove some unused whatsThis text
  • Loading branch information
nyalldawson committed Nov 12, 2018
1 parent f976b0d commit fc5f707
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 37 deletions.
25 changes: 0 additions & 25 deletions src/app/qgisapp.cpp
Expand Up @@ -767,8 +767,6 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
mMapCanvas = new QgsMapCanvas( centralWidget );
mMapCanvas->setObjectName( QStringLiteral( "theMapCanvas" ) );
connect( mMapCanvas, &QgsMapCanvas::messageEmitted, this, &QgisApp::displayMessage );
mMapCanvas->setWhatsThis( tr( "Map canvas. This is where raster and vector "
"layers are displayed when added to the map" ) );

if ( settings.value( QStringLiteral( "qgis/main_canvas_preview_jobs" ) ).isNull() )
{
Expand Down Expand Up @@ -3098,9 +3096,6 @@ void QgisApp::createStatusBar()
mRotationEdit->setSingleStep( 5.0 );
mRotationEdit->setFont( statusBarFont );
mRotationEdit->setSuffix( tr( " °" ) );
mRotationEdit->setWhatsThis( tr( "Shows the current map clockwise rotation "
"in degrees. It also allows editing to set "
"the rotation" ) );
mRotationEdit->setToolTip( tr( "Current clockwise map rotation in degrees" ) );
mStatusBar->addPermanentWidget( mRotationEdit, 0 );
connect( mRotationEdit, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, &QgisApp::userRotation );
Expand All @@ -3112,10 +3107,6 @@ void QgisApp::createStatusBar()
mRenderSuppressionCBox->setObjectName( QStringLiteral( "mRenderSuppressionCBox" ) );
mRenderSuppressionCBox->setChecked( true );
mRenderSuppressionCBox->setFont( statusBarFont );
mRenderSuppressionCBox->setWhatsThis( tr( "When checked, the map layers "
"are rendered in response to map navigation commands and other "
"events. When not checked, no rendering is done. This allows you "
"to add a large number of layers and symbolize them before rendering." ) );
mRenderSuppressionCBox->setToolTip( tr( "Toggle map rendering" ) );
mStatusBar->addPermanentWidget( mRenderSuppressionCBox, 0 );
// On the fly projection status bar icon
Expand All @@ -3130,10 +3121,6 @@ void QgisApp::createStatusBar()
// For Qt/Mac 3.3, the default toolbutton height is 30 and labels were expanding to match
mOnTheFlyProjectionStatusButton->setMaximumHeight( mScaleWidget->height() );
mOnTheFlyProjectionStatusButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "mIconProjectionEnabled.svg" ) ) );
mOnTheFlyProjectionStatusButton->setWhatsThis( tr( "This icon shows whether "
"on the fly coordinate reference system transformation is enabled or not. "
"Click the icon to bring up "
"the project properties dialog to alter this behavior." ) );
mOnTheFlyProjectionStatusButton->setToolTip( tr( "CRS status - Click "
"to open coordinate reference system dialog" ) );
connect( mOnTheFlyProjectionStatusButton, &QAbstractButton::clicked,
Expand All @@ -3145,7 +3132,6 @@ void QgisApp::createStatusBar()
mMessageButton->setAutoRaise( true );
mMessageButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mMessageLogRead.svg" ) ) );
mMessageButton->setToolTip( tr( "Messages" ) );
mMessageButton->setWhatsThis( tr( "Messages" ) );
mMessageButton->setObjectName( QStringLiteral( "mMessageLogViewerButton" ) );
mMessageButton->setMaximumHeight( mScaleWidget->height() );
mMessageButton->setCheckable( true );
Expand Down Expand Up @@ -3672,8 +3658,6 @@ void QgisApp::createOverview()
int blue = settings.value( QStringLiteral( "qgis/default_canvas_color_blue" ), 255 ).toInt();
mOverviewCanvas->setBackgroundColor( QColor( red, green, blue ) );

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." ) );

mOverviewMapCursor = new QCursor( Qt::OpenHandCursor );
mOverviewCanvas->setCursor( *mOverviewMapCursor );
// QVBoxLayout *myOverviewLayout = new QVBoxLayout;
Expand Down Expand Up @@ -3916,8 +3900,6 @@ void QgisApp::addUserInputWidget( QWidget *widget )

void QgisApp::initLayerTreeView()
{
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." ) );

mLayerTreeDock = new QgsDockWidget( tr( "Layers" ), this );
mLayerTreeDock->setObjectName( QStringLiteral( "Layers" ) );
mLayerTreeDock->setAllowedAreas( Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea );
Expand Down Expand Up @@ -4025,7 +4007,6 @@ void QgisApp::initLayerTreeView()
mMapLayerOrder = new QgsCustomLayerOrderWidget( mLayerTreeCanvasBridge, this );
mMapLayerOrder->setObjectName( QStringLiteral( "theMapLayerOrder" ) );

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


void QgisApp::whatsThis()
{
QWhatsThis::enterWhatsThisMode();
} // QgisApp::whatsThis()

QMenu *QgisApp::getPluginMenu( const QString &menuName )
{
/* Plugin menu items are below the plugin separator (which may not exist yet
Expand Down
2 changes: 0 additions & 2 deletions src/app/qgisapp.h
Expand Up @@ -1381,8 +1381,6 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
void customize();
//! options dialog slot
void options();
//! Whats-this help slot
void whatsThis();
//! Open project properties dialog and show the projections tab
void projectPropertiesProjections();
/* void urlData(); */
Expand Down
4 changes: 0 additions & 4 deletions src/app/qgsstatusbarcoordinateswidget.cpp
Expand Up @@ -59,10 +59,6 @@ QgsStatusBarCoordinatesWidget::QgsStatusBarCoordinatesWidget( QWidget *parent )

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

//toggle to switch between mouse pos and extents display in status bar widget
Expand Down
1 change: 0 additions & 1 deletion src/app/qgsstatusbarscalewidget.cpp
Expand Up @@ -45,7 +45,6 @@ QgsStatusBarScaleWidget::QgsStatusBarScaleWidget( QgsMapCanvas *canvas, QWidget
// so we need to set font for it separately
mScale->setMinimumWidth( 10 );
mScale->setContentsMargins( 0, 0, 0, 0 );
mScale->setWhatsThis( tr( "Displays the current map scale" ) );
mScale->setToolTip( tr( "Current map scale (formatted as x:y)" ) );

// layout
Expand Down
5 changes: 0 additions & 5 deletions src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -497,11 +497,6 @@ void QgsVectorLayerProperties::syncToLayer()
// populate the general information
mLayerOrigNameLineEdit->setText( mLayer->name() );
txtDisplayName->setText( mLayer->name() );
pbnQueryBuilder->setWhatsThis( tr( "This button opens the query "
"builder and allows you to create a subset of features to display on "
"the map canvas rather than displaying all features in the layer" ) );
txtSubsetSQL->setWhatsThis( tr( "The query used to limit the features in the "
"layer is shown here. To enter or modify the query, click on the Query Builder button" ) );

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

0 comments on commit fc5f707

Please sign in to comment.