Skip to content

Commit

Permalink
Replace "double click" and "doubleclick" by double-click
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Jul 6, 2017
1 parent 29c4fcf commit 15be889
Show file tree
Hide file tree
Showing 24 changed files with 29 additions and 27 deletions.
2 changes: 1 addition & 1 deletion python/console/console_sci.py
Expand Up @@ -629,7 +629,7 @@ def __init__(self, parent):
self.setWindowTitle(QCoreApplication.translate("PythonConsole",
"Python Console - Command History"))
self.listView.setToolTip(QCoreApplication.translate("PythonConsole",
"Double click on item to execute"))
"Double-click on item to execute"))
self.model = QStandardItemModel(self.listView)

self._reloadHistory()
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgsmapcanvas.sip
Expand Up @@ -801,7 +801,7 @@ Overridden key release event
virtual void mouseDoubleClickEvent( QMouseEvent *e );

%Docstring
Overridden mouse double click event
Overridden mouse double-click event
%End

virtual void mouseMoveEvent( QMouseEvent *e );
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgsmaptool.sip
Expand Up @@ -73,7 +73,7 @@ Mouse move event for overriding. Default implementation does nothing.

virtual void canvasDoubleClickEvent( QgsMapMouseEvent *e );
%Docstring
Mouse double click event for overriding. Default implementation does nothing.
Mouse double-click event for overriding. Default implementation does nothing.
%End

virtual void canvasPressEvent( QgsMapMouseEvent *e );
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/MetaSearch/ui/maindialog.ui
Expand Up @@ -236,7 +236,7 @@
<item row="2" column="0" colspan="5">
<widget class="QTreeWidget" name="treeRecords">
<property name="toolTip">
<string>Double click to see full record information</string>
<string>Double-click to see full record information</string>
</property>
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/ui/DlgNumberInput.ui
Expand Up @@ -23,7 +23,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enter expression in the text field. Double click on elements in the tree to add their values to the expression.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enter expression in the text field. Double-click on elements in the tree to add their values to the expression.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
Expand Down
2 changes: 1 addition & 1 deletion resources/context_help/QgsOracleSourceSelect
Expand Up @@ -28,7 +28,7 @@ To add a layer:
<a name="filter">
<h4>Filtering a Layer</h4>
</a>
To filter a layer before adding it to the map, double click on its name or use <label>Build query</label> button. This will open the Query Builder, allowing you to build up a SQL statement to use in filtering the records.
To filter a layer before adding it to the map, double-click on its name or use <label>Build query</label> button. This will open the Query Builder, allowing you to build up a SQL statement to use in filtering the records.

<a name="search">
<h4>Options</h4>
Expand Down
2 changes: 1 addition & 1 deletion resources/context_help/QgsPgSourceSelect
Expand Up @@ -28,7 +28,7 @@ To add a layer:
<a name="filter">
<h4>Filtering a Layer</h4>
</a>
To filter a layer before adding it to the map, double click on its name or use <label>Build query</label> button. This will open the Query Builder, allowing you to build up a SQL statement to use in filtering the records.
To filter a layer before adding it to the map, double-click on its name or use <label>Build query</label> button. This will open the Query Builder, allowing you to build up a SQL statement to use in filtering the records.

<a name="search">
<h4>Options</h4>
Expand Down
2 changes: 1 addition & 1 deletion resources/context_help/QgsVectorLayerProperties
Expand Up @@ -12,7 +12,7 @@ This dialog allows you to work with vector layer settings and properties. There
<a name="symbology">
<h4>Symbology</h4>
</a>
To change the symbology for a layer, simply double click on its legend entry and the vector <label>Layer Properties</label> dialog will be shown.<p>
To change the symbology for a layer, simply double-click on its legend entry and the vector <label>Layer Properties</label> dialog will be shown.<p>
Within this dialog you can style your vector layer. Depending on the selected rendering option you have the possibility to also classify your map features.

<h5>Legend type</h5>
Expand Down
2 changes: 1 addition & 1 deletion resources/function_help/json/Field
@@ -1,6 +1,6 @@
{
"name": "Field",
"type": "group",
"description": "Double click to add field name to expression string.<br>Right-Click on field name to open context menu sample value loading options.",
"description": "Double-click to add field name to expression string.<br>Right-Click on field name to open context menu sample value loading options.",
"notes": "Loading field values from WFS layers isn't supported, before the layer is actually inserted, ie. when building queries."
}
2 changes: 2 additions & 0 deletions scripts/spell_check/spelling.dat
Expand Up @@ -2390,6 +2390,8 @@ dosent':doesn't
dosen't:doesn't
doub:doubt
doulbe:double
double click:double-click
doubleclick:double-click
dowloads:downloads
downlad:download
downlads:downloads
Expand Down
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.h
Expand Up @@ -112,7 +112,7 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
//! Display details of inactive item too
void on_vwPlugins_clicked( const QModelIndex &index );

//! Load/unload plugin by double click
//! Load/unload plugin by double-click
void on_vwPlugins_doubleClicked( const QModelIndex &index );

//! Handle click in the web view
Expand Down
4 changes: 2 additions & 2 deletions src/app/pluginmanager/qgspluginmanager_texts.cpp
Expand Up @@ -17,7 +17,7 @@ Some plugins come with your QGIS installation while most of them are made availa
\
<p>\
You can temporarily enable or disable a plugin.\
To <i>enable</i> or <i>disable</i> a plugin, click its checkbox or doubleclick its name...\
To <i>enable</i> or <i>disable</i> a plugin, click its checkbox or double-click its name...\
</p>\
\
<p>\
Expand All @@ -37,7 +37,7 @@ Here you only see plugins <b>installed on your QGIS</b>.\
Click on the name to see details. \
</p>\
<p>\
Click the checkbox or doubleclick the name to <i>activate</i> or <i>deactivate</i> the plugin.\
Click the checkbox or double-click the name to <i>activate</i> or <i>deactivate</i> the plugin.\
</p>\
<p>\
You can change the sorting via the context menu (right click).\
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -3390,7 +3390,7 @@ 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." ) );
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 Panel" ), this );
mLayerTreeDock->setObjectName( QStringLiteral( "Layers" ) );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscomposerview.cpp
Expand Up @@ -831,7 +831,7 @@ void QgsComposerView::mouseReleaseEvent( QMouseEvent *e )
{
if ( mPolygonItem && mPolylineItem )
{
// ignore the last point due to release event before doubleClick event
// ignore the last point due to release event before doubleClick event # spellok
QPolygonF poly = mPolygonItem->polygon();

// last (temporary) point is removed
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -275,7 +275,7 @@ void QgsExpressionBuilderWidget::on_expressionTree_doubleClicked( const QModelIn
if ( !item )
return;

// Don't handle the double click it we are on a header node.
// Don't handle the double-click if we are on a header node.
if ( item->getItemType() == QgsExpressionItem::Header )
return;

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.h
Expand Up @@ -689,7 +689,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
//! Overridden key release event
void keyReleaseEvent( QKeyEvent *e ) override;

//! Overridden mouse double click event
//! Overridden mouse double-click event
void mouseDoubleClickEvent( QMouseEvent *e ) override;

//! Overridden mouse move event
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmaptool.h
Expand Up @@ -103,7 +103,7 @@ class GUI_EXPORT QgsMapTool : public QObject
//! Mouse move event for overriding. Default implementation does nothing.
virtual void canvasMoveEvent( QgsMapMouseEvent *e );

//! Mouse double click event for overriding. Default implementation does nothing.
//! Mouse double-click event for overriding. Default implementation does nothing.
virtual void canvasDoubleClickEvent( QgsMapMouseEvent *e );

//! Mouse press event for overriding. Default implementation does nothing.
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmaptooladvanceddigitizing.h
Expand Up @@ -127,7 +127,7 @@ class GUI_EXPORT QgsMapToolAdvancedDigitizing : public QgsMapToolEdit
bool mSnapOnPress; //!< Snap on press
bool mSnapOnRelease; //!< Snap on release
bool mSnapOnMove; //!< Snap on move
bool mSnapOnDoubleClick; //!< Snap on double click
bool mSnapOnDoubleClick; //!< Snap on double-click

private slots:

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsprojectionselectiondialog.cpp
Expand Up @@ -33,7 +33,7 @@ QgsProjectionSelectionDialog::QgsProjectionSelectionDialog( QWidget *parent,
//we will show this only when a message is set
textEdit->hide();

//apply selected projection upon double click on item
//apply selected projection upon double-click on item
connect( projectionSelector, &QgsProjectionSelectionTreeWidget::projectionDoubleClicked, this, &QgsProjectionSelectionDialog::accept );
}

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsprojectionselectiontreewidget.h
Expand Up @@ -256,7 +256,7 @@ class GUI_EXPORT QgsProjectionSelectionTreeWidget : public QWidget, private Ui::
//! get list of authorities
QStringList authorities();

//! Apply projection on double click
//! Apply projection on double-click
void on_lstCoordinateSystems_itemDoubleClicked( QTreeWidgetItem *current, int column );
void on_lstRecent_itemDoubleClicked( QTreeWidgetItem *current, int column );
void on_lstCoordinateSystems_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgssourceselectdialog.cpp
Expand Up @@ -419,7 +419,7 @@ void QgsSourceSelectDialog::on_cmbConnections_activated( int index )

void QgsSourceSelectDialog::treeWidgetItemDoubleClicked( const QModelIndex &index )
{
QgsDebugMsg( "double click called" );
QgsDebugMsg( "double-click called" );
QgsOwsConnection connection( mServiceName, cmbConnections->currentText() );
buildQuery( connection, index );
}
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/grass/qtermwidget/TerminalDisplay.cpp
Expand Up @@ -2263,10 +2263,10 @@ void TerminalDisplay::mouseDoubleClickEvent(QMouseEvent* ev)

QPoint pos(charColumn,charLine);

// pass on double click as two clicks.
// pass on double-click as two clicks.
if (!_mouseMarks && !(ev->modifiers() & Qt::ShiftModifier))
{
// Send just _ONE_ click event, since the first click of the double click
// Send just _ONE_ click event, since the first click of the double-click
// was already sent by the click handler
emit mouseSignal( 0,
pos.x()+1,
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfssourceselect.cpp
Expand Up @@ -755,7 +755,7 @@ void QgsWFSSourceSelect::on_btnLoad_clicked()

void QgsWFSSourceSelect::treeWidgetItemDoubleClicked( const QModelIndex &index )
{
QgsDebugMsg( "double click called" );
QgsDebugMsg( "double-click called" );
buildQuery( index );
}

Expand Down
6 changes: 3 additions & 3 deletions src/ui/qgsoptionsbase.ui
Expand Up @@ -1807,14 +1807,14 @@
<item>
<widget class="QCheckBox" name="cbxAddPostgisDC">
<property name="text">
<string>Add PostGIS layers with double click and select in extended mode</string>
<string>Add PostGIS layers with double-click and select in extended mode</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cbxAddOracleDC">
<property name="text">
<string>Add Oracle layers with double click and select in extended mode</string>
<string>Add Oracle layers with double-click and select in extended mode</string>
</property>
</widget>
</item>
Expand Down Expand Up @@ -2962,7 +2962,7 @@
<item>
<widget class="QLabel" name="label_15">
<property name="text">
<string>Double click action in legend</string>
<string>Double-click action in legend</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit 15be889

Please sign in to comment.