Skip to content

Commit b97543d

Browse files
3nidsm-kuhn
andauthoredApr 30, 2020
Apply suggestions from code review
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
1 parent fc3bb46 commit b97543d

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed
 

‎scripts/rename_cpp.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3+
# This scripts renames the name of a class as well as its header and cpp file
4+
# (assuming they are the lowercase version of the class name).
5+
#
6+
# Usage: ./scripts/rename_cpp.sh src/core QgsMyClassName QgsMyNewClassName
7+
38
set -e
49

510
# GNU prefix command for mac os support (gsed, gsplit)

‎src/core/qgsfeatureexpressionvaluesgatherer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* \class QgsFieldExpressionValuesGatherer
3232
* Gathers features with substring matching on an expression.
3333
*
34-
* \since QGIS 3.0
34+
* \since QGIS 3.14
3535
*/
3636
class QgsFeatureExpressionValuesGatherer: public QThread
3737
{

‎src/core/qgsfeaturefiltermodel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class CORE_EXPORT QgsFeatureFilterModel : public QgsFeaturePickerModelBase
3030
Q_OBJECT
3131

3232
/**
33-
* A field of sourceLayer that is unique and should be used to identify features.
33+
* A set of fields of sourceLayer that is unique and should be used to identify features.
3434
* Normally the primary key field.
3535
* Needs to match the identifierValue.
3636
*/
3737
Q_PROPERTY( QStringList identifierFields READ identifierFields WRITE setIdentifierFields NOTIFY identifierFieldsChanged )
3838

3939
/**
40-
* The value that identifies the current feature.
40+
* The values that identifies the current feature.
4141
*/
4242
Q_PROPERTY( QVariantList extraIdentifierValues READ extraIdentifierValues WRITE setExtraIdentifierValues NOTIFY extraIdentifierValuesChanged )
4343

‎src/gui/qgsexpressionpreviewwidget.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ void QgsExpressionPreviewWidget::refreshPreview()
121121

122122
void QgsExpressionPreviewWidget::linkActivated( const QString & )
123123
{
124-
QgsMessageViewer *mv = new QgsMessageViewer( this );
125-
mv->setWindowTitle( tr( "More Info on Expression Error" ) );
126-
mv->setMessageAsHtml( mToolTip );
127-
mv->exec();
124+
QgsMessageViewer mv( this );
125+
mv.setWindowTitle( tr( "More Info on Expression Error" ) );
126+
mv.setMessageAsHtml( mToolTip );
127+
mv.exec();
128128
}
129129

130130
void QgsExpressionPreviewWidget::setExpressionToolTip( const QString &toolTip )
@@ -163,4 +163,3 @@ bool QgsExpressionPreviewWidget::evalError() const
163163
{
164164
return mEvalError;
165165
}
166-

0 commit comments

Comments
 (0)
Please sign in to comment.