Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix all remaining Qt QFlags deprecated constructor warnings
  • Loading branch information
nyalldawson committed Oct 2, 2020
1 parent 09f84eb commit ab6bbfd
Show file tree
Hide file tree
Showing 155 changed files with 221 additions and 226 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgspoint.sip.in
Expand Up @@ -369,7 +369,7 @@ Example

virtual bool fromWkt( const QString &wkt );

virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/auto_generated/symbology/qgssymbol.sip.in
Expand Up @@ -601,7 +601,7 @@ class QgsSymbolRenderContext
public:


QgsSymbolRenderContext( QgsRenderContext &c, QgsUnitTypes::RenderUnit u, qreal opacity = 1.0, bool selected = false, QgsSymbol::RenderHints renderHints = 0, const QgsFeature *f = 0, const QgsFields &fields = QgsFields(), const QgsMapUnitScale &mapUnitScale = QgsMapUnitScale() );
QgsSymbolRenderContext( QgsRenderContext &c, QgsUnitTypes::RenderUnit u, qreal opacity = 1.0, bool selected = false, QgsSymbol::RenderHints renderHints = QgsSymbol::RenderHints(), const QgsFeature *f = 0, const QgsFields &fields = QgsFields(), const QgsMapUnitScale &mapUnitScale = QgsMapUnitScale() );
%Docstring
Constructor for QgsSymbolRenderContext

Expand Down
Expand Up @@ -149,7 +149,7 @@ and reordering effects within the stack.
%End
public:

QgsEffectStackPropertiesDialog( QgsEffectStack *stack, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags f = 0 );
QgsEffectStackPropertiesDialog( QgsEffectStack *stack, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags f = Qt::WindowFlags() );
%Docstring
QgsEffectStackPropertiesDialog constructor

Expand Down
Expand Up @@ -53,7 +53,7 @@ Called when a rubber band should be updated to reflect a temporary
ending ``position`` (in layout coordinate space).
%End

virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = 0 ) = 0;
virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = Qt::KeyboardModifiers() ) = 0;
%Docstring
Called when a rubber band use has finished and the rubber
band is no longer required.
Expand Down Expand Up @@ -159,7 +159,7 @@ Constructor for QgsLayoutViewRectangularRubberBand.

virtual void update( QPointF position, Qt::KeyboardModifiers modifiers );

virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = 0 );
virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = Qt::KeyboardModifiers() );


};
Expand Down Expand Up @@ -190,7 +190,7 @@ Constructor for QgsLayoutViewEllipticalRubberBand.

virtual void update( QPointF position, Qt::KeyboardModifiers modifiers );

virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = 0 );
virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = Qt::KeyboardModifiers() );


};
Expand Down Expand Up @@ -221,7 +221,7 @@ Constructor for QgsLayoutViewTriangleRubberBand.

virtual void update( QPointF position, Qt::KeyboardModifiers modifiers );

virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = 0 );
virtual QRectF finish( QPointF position = QPointF(), Qt::KeyboardModifiers modifiers = Qt::KeyboardModifiers() );


};
Expand Down
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsoptionsdialogbase.sip.in
Expand Up @@ -38,7 +38,7 @@ To use:
%End
public:

QgsOptionsDialogBase( const QString &settingsKey, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = 0, QgsSettings *settings = 0 );
QgsOptionsDialogBase( const QString &settingsKey, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = Qt::WindowFlags(), QgsSettings *settings = 0 );
%Docstring
Constructor

Expand Down
Expand Up @@ -38,7 +38,7 @@ class QgsRasterLayerSaveAsDialog: QDialog
const QgsCoordinateReferenceSystem &layerCrs,
const QgsCoordinateReferenceSystem &currentCrs,
QWidget *parent /TransferThis/ = 0,
Qt::WindowFlags f = 0 );
Qt::WindowFlags f = Qt::WindowFlags() );
%Docstring
Constructor for QgsRasterLayerSaveAsDialog
%End
Expand Down
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgssublayersdialog.sip.in
Expand Up @@ -51,7 +51,7 @@ class QgsSublayersDialog : QDialog
QgsSublayersDialog( ProviderType providerType,
const QString &name,
QWidget *parent /TransferThis/ = 0,
Qt::WindowFlags fl = 0,
Qt::WindowFlags fl = Qt::WindowFlags(),
const QString &dataSourceUri = QString() );
%Docstring
Construct a new QgsSublayersDialog object - a dialog to select which sub layers to be imported from a data source (e.g. from geopackage or zipfile)
Expand Down
Expand Up @@ -53,7 +53,7 @@ A dialog to enter a custom dash space pattern for lines
%End
public:

QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags f = 0 );
QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags f = Qt::WindowFlags() );
%Docstring
Constructor for QgsDashSpaceDialog
%End
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmdissolve.h
Expand Up @@ -34,7 +34,7 @@ class QgsCollectorAlgorithm : public QgsProcessingAlgorithm
protected:

QVariantMap processCollection( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback,
const std::function<QgsGeometry( const QVector<QgsGeometry>& )> &collector, int maxQueueLength = 0, QgsProcessingFeatureSource::Flags sourceFlags = nullptr );
const std::function<QgsGeometry( const QVector<QgsGeometry>& )> &collector, int maxQueueLength = 0, QgsProcessingFeatureSource::Flags sourceFlags = QgsProcessingFeatureSource::Flags() );
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmextractzmvalues.cpp
Expand Up @@ -91,7 +91,7 @@ bool QgsExtractZMValuesAlgorithmBase::prepareAlgorithm( const QVariantMap &param
mPrefix = parameterAsString( parameters, QStringLiteral( "COLUMN_PREFIX" ), context );

const QList< int > stats = parameterAsEnums( parameters, QStringLiteral( "SUMMARIES" ), context );
mStats = nullptr;
mStats = QgsStatisticalSummary::Statistics();
for ( int s : stats )
{
mStats |= STATS.at( s );
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmzonalstatistics.cpp
Expand Up @@ -118,7 +118,7 @@ bool QgsZonalStatisticsAlgorithm::prepareAlgorithm( const QVariantMap &parameter
mPrefix = parameterAsString( parameters, QStringLiteral( "COLUMN_PREFIX" ), context );

const QList< int > stats = parameterAsEnums( parameters, QStringLiteral( "STATISTICS" ), context );
mStats = nullptr;
mStats = QgsZonalStatistics::Statistics();
for ( int s : stats )
{
mStats |= STATS.at( s );
Expand Down
Expand Up @@ -113,7 +113,7 @@ bool QgsZonalStatisticsFeatureBasedAlgorithm::prepareAlgorithm( const QVariantMa
mPrefix = parameterAsString( parameters, QStringLiteral( "COLUMN_PREFIX" ), context );

const QList< int > stats = parameterAsEnums( parameters, QStringLiteral( "STATISTICS" ), context );
mStats = nullptr;
mStats = QgsZonalStatistics::Statistics();
for ( int s : stats )
{
mStats |= STATS.at( s );
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/vector/geometry_checker/qgsgeometrycheck.cpp
Expand Up @@ -44,7 +44,7 @@ bool QgsGeometryCheck::isCompatible( QgsVectorLayer *layer ) const

QgsGeometryCheck::Flags QgsGeometryCheck::flags() const
{
return nullptr;
return QgsGeometryCheck::Flags();
}

void QgsGeometryCheck::fixError( const QMap<QString, QgsFeaturePool *> &featurePools, QgsGeometryCheckError *error, int method, const QMap<QString, int> &mergeAttributeIndices, QgsGeometryCheck::Changes &changes ) const
Expand Down
Expand Up @@ -351,7 +351,7 @@ QString QgsGeometrySelfIntersectionCheck::factoryDescription()

QgsGeometryCheck::Flags QgsGeometrySelfIntersectionCheck::factoryFlags()
{
return nullptr;
return QgsGeometryCheck::Flags();
}

QString QgsGeometrySelfIntersectionCheck::factoryId()
Expand Down
2 changes: 1 addition & 1 deletion src/app/3d/qgs3dmeasuredialog.h
Expand Up @@ -31,7 +31,7 @@ class Qgs3DMeasureDialog : public QDialog, private Ui::QgsMeasureBase

public:
// Constructor
Qgs3DMeasureDialog( Qgs3DMapToolMeasureLine *tool, Qt::WindowFlags f = nullptr );
Qgs3DMeasureDialog( Qgs3DMapToolMeasureLine *tool, Qt::WindowFlags f = Qt::WindowFlags() );

//! Save position
void saveWindowLocation();
Expand Down
6 changes: 3 additions & 3 deletions src/app/browser/qgsinbuiltdataitemproviders.cpp
Expand Up @@ -705,7 +705,7 @@ void QgsProjectItemGuiProvider::populateContextMenu( QgsDataItem *item, QMenu *m
{
p.accept( &visitor );
override.release();
QgsStyleManagerDialog dlg( &style, QgisApp::instance(), nullptr, true );
QgsStyleManagerDialog dlg( &style, QgisApp::instance(), Qt::WindowFlags(), true );
dlg.setFavoritesGroupVisible( false );
dlg.setSmartGroupsVisible( false );
QFileInfo fi( projectPath );
Expand Down Expand Up @@ -917,8 +917,8 @@ void QgsDatabaseItemGuiProvider::populateContextMenu( QgsDataItem *item, QMenu *
const QString geometryColumn { dlg.geometryColumnName() };
const QgsWkbTypes::Type geometryType { dlg.geometryType() };
const bool createSpatialIndex { dlg.createSpatialIndex() &&
geometryType != QgsWkbTypes::NoGeometry &&
geometryType != QgsWkbTypes::Unknown };
geometryType != QgsWkbTypes::NoGeometry &&
geometryType != QgsWkbTypes::Unknown };
const QgsCoordinateReferenceSystem crs { dlg.crs( ) };
// This flag tells to the provider that field types do not need conversion
QMap<QString, QVariant> options { { QStringLiteral( "skipConvertFields" ), true } };
Expand Down
2 changes: 1 addition & 1 deletion src/app/dwg/qgsdwgimportdialog.h
Expand Up @@ -28,7 +28,7 @@ class QgsDwgImportDialog : public QDialog, private Ui::QgsDwgImportBase
{
Q_OBJECT
public:
QgsDwgImportDialog( QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsDwgImportDialog( QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
~QgsDwgImportDialog() override;

private slots:
Expand Down
2 changes: 1 addition & 1 deletion src/app/georeferencer/qgsgeorefmainwindow.h
Expand Up @@ -54,7 +54,7 @@ class QgsGeoreferencerMainWindow : public QMainWindow, private Ui::QgsGeorefPlug
Q_OBJECT

public:
QgsGeoreferencerMainWindow( QWidget *parent = nullptr, Qt::WindowFlags fl = nullptr );
QgsGeoreferencerMainWindow( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags() );
~QgsGeoreferencerMainWindow() override;

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/app/labeling/qgslabelpropertydialog.h
Expand Up @@ -38,7 +38,7 @@ class APP_EXPORT QgsLabelPropertyDialog: public QDialog, private Ui::QgsLabelPro
bool isPinned,
const QgsPalLayerSettings &layerSettings,
QWidget *parent = nullptr,
Qt::WindowFlags f = nullptr );
Qt::WindowFlags f = Qt::WindowFlags() );

//! Returns properties changed by the user
const QgsAttributeMap &changedProperties() const { return mChangedProperties; }
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout/qgslayoutmanagerdialog.h
Expand Up @@ -36,7 +36,7 @@ class QgsLayoutManagerDialog: public QDialog, private Ui::QgsLayoutManagerBase
{
Q_OBJECT
public:
QgsLayoutManagerDialog( QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsLayoutManagerDialog( QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );

void addTemplates( const QMap<QString, QString> &templates );

Expand Down
2 changes: 1 addition & 1 deletion src/app/layout/qgsreportsectionmodel.cpp
Expand Up @@ -30,7 +30,7 @@ QgsReportSectionModel::QgsReportSectionModel( QgsReport *report, QObject *parent
Qt::ItemFlags QgsReportSectionModel::flags( const QModelIndex &index ) const
{
if ( !index.isValid() )
return nullptr;
return Qt::ItemFlags();

return QAbstractItemModel::flags( index );
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/mesh/qgsmeshcalculatordialog.h
Expand Up @@ -36,7 +36,7 @@ class APP_EXPORT QgsMeshCalculatorDialog: public QDialog, private Ui::QgsMeshCal
* \param parent widget
* \param f window flags
*/
QgsMeshCalculatorDialog( QgsMeshLayer *meshLayer = nullptr, QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsMeshCalculatorDialog( QgsMeshLayer *meshLayer = nullptr, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
~QgsMeshCalculatorDialog();

//! Returns new mesh calculator created from dialog options
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgisapp.cpp
Expand Up @@ -1700,7 +1700,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
} // QgisApp ctor

QgisApp::QgisApp()
: QMainWindow( nullptr, nullptr )
: QMainWindow( nullptr, Qt::WindowFlags() )
#ifdef Q_OS_MAC
, mWindowMenu( nullptr )
#endif
Expand Down Expand Up @@ -5765,7 +5765,7 @@ bool QgisApp::askUserForZipItemLayers( const QString &path )
// initialize a selection dialog and display it.
case QgsSublayersDialog::PromptAlways:
case QgsSublayersDialog::PromptIfNeeded:
QgsSublayersDialog chooseSublayersDialog( QgsSublayersDialog::Vsifile, QStringLiteral( "vsi" ), this, nullptr, path );
QgsSublayersDialog chooseSublayersDialog( QgsSublayersDialog::Vsifile, QStringLiteral( "vsi" ), this, Qt::WindowFlags(), path );
QgsSublayersDialog::LayerDefinitionList layers;

for ( int i = 0; i < zipItem->children().size(); i++ )
Expand Down Expand Up @@ -5858,7 +5858,7 @@ QList< QgsMapLayer * > QgisApp::askUserForGDALSublayers( QgsRasterLayer *layer )
}

// We initialize a selection dialog and display it.
QgsSublayersDialog chooseSublayersDialog( QgsSublayersDialog::Gdal, QStringLiteral( "gdal" ), this, nullptr, layer->dataProvider()->dataSourceUri() );
QgsSublayersDialog chooseSublayersDialog( QgsSublayersDialog::Gdal, QStringLiteral( "gdal" ), this, Qt::WindowFlags(), layer->dataProvider()->dataSourceUri() );
chooseSublayersDialog.setShowAddToGroupCheckbox( true );

QgsSublayersDialog::LayerDefinitionList layers;
Expand Down Expand Up @@ -6077,7 +6077,7 @@ QList<QgsMapLayer *> QgisApp::askUserForOGRSublayers( QgsVectorLayer *layer, con
// Check if the current layer uri contains the

// We initialize a selection dialog and display it.
QgsSublayersDialog chooseSublayersDialog( QgsSublayersDialog::Ogr, QStringLiteral( "ogr" ), this, nullptr, layer->dataProvider()->dataSourceUri() );
QgsSublayersDialog chooseSublayersDialog( QgsSublayersDialog::Ogr, QStringLiteral( "ogr" ), this, Qt::WindowFlags(), layer->dataProvider()->dataSourceUri() );
chooseSublayersDialog.setShowAddToGroupCheckbox( true );
chooseSublayersDialog.populateLayerTable( list );

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsannotationwidget.h
Expand Up @@ -34,7 +34,7 @@ class APP_EXPORT QgsAnnotationWidget: public QWidget, private Ui::QgsAnnotationW
Q_OBJECT
public:

QgsAnnotationWidget( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsAnnotationWidget( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );

//! Returns the annotation frame symbol fill color
QColor backgroundColor();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsappscreenshots.h
Expand Up @@ -59,7 +59,7 @@ class QgsAppScreenShots
QgsAppScreenShots( const QString &saveDirectory );

//! if categories is null, then takes all categories
void takePicturesOf( Categories categories = nullptr );
void takePicturesOf( Categories categories = Categories() );

//! set gradient size
void setGradientSize( int size );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgscustomprojectiondialog.h
Expand Up @@ -32,7 +32,7 @@ class APP_EXPORT QgsCustomProjectionDialog : public QDialog, private Ui::QgsCust
{
Q_OBJECT
public:
QgsCustomProjectionDialog( QWidget *parent = nullptr, Qt::WindowFlags fl = nullptr );
QgsCustomProjectionDialog( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::WindowFlags() );

public slots:
void pbnCalculate_clicked();
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsdatumtransformtablewidget.cpp
Expand Up @@ -258,7 +258,7 @@ QgsDatumTransformTableWidget::QgsDatumTransformTableWidget( QWidget *parent )

void QgsDatumTransformTableWidget::addDatumTransform()
{
QgsDatumTransformDialog dlg( QgsCoordinateReferenceSystem(), QgsCoordinateReferenceSystem(), true, false, false, QPair< int, int >(), nullptr, nullptr, QString(), QgisApp::instance()->mapCanvas() );
QgsDatumTransformDialog dlg( QgsCoordinateReferenceSystem(), QgsCoordinateReferenceSystem(), true, false, false, QPair< int, int >(), nullptr, Qt::WindowFlags(), QString(), QgisApp::instance()->mapCanvas() );
if ( dlg.exec() )
{
const QgsDatumTransformDialog::TransformInfo dt = dlg.selectedDatumTransform();
Expand Down Expand Up @@ -307,7 +307,7 @@ void QgsDatumTransformTableWidget::editDatumTransform( const QModelIndex &index
( sourceTransform != -1 || destinationTransform != -1 ) )
#endif
{
QgsDatumTransformDialog dlg( sourceCrs, destinationCrs, true, false, false, qMakePair( sourceTransform, destinationTransform ), nullptr, nullptr, proj, QgisApp::instance()->mapCanvas(), allowFallback );
QgsDatumTransformDialog dlg( sourceCrs, destinationCrs, true, false, false, qMakePair( sourceTransform, destinationTransform ), nullptr, Qt::WindowFlags(), proj, QgisApp::instance()->mapCanvas(), allowFallback );
if ( dlg.exec() )
{
const QgsDatumTransformDialog::TransformInfo dt = dlg.selectedDatumTransform();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdisplayangle.h
Expand Up @@ -27,7 +27,7 @@ class APP_EXPORT QgsDisplayAngle: public QDialog, private Ui::QgsDisplayAngleBas
Q_OBJECT

public:
QgsDisplayAngle( QgsMapToolMeasureAngle *tool = nullptr, Qt::WindowFlags f = nullptr );
QgsDisplayAngle( QgsMapToolMeasureAngle *tool = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );

/**
* Sets the measured angle value (in radians). The value is going to
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdxfexportdialog.cpp
Expand Up @@ -442,7 +442,7 @@ QgsDxfExportDialog::QgsDxfExportDialog( QWidget *parent, Qt::WindowFlags f )
mTreeView->setItemDelegate( mFieldSelectorDelegate );

QgsLayerTreeModel *model = new QgsVectorLayerAndAttributeModel( mLayerTreeGroup, this );
model->setFlags( nullptr );
model->setFlags( QgsLayerTreeModel::Flags() );
mTreeView->setModel( model );
mTreeView->resizeColumnToContents( 0 );
mTreeView->header()->show();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdxfexportdialog.h
Expand Up @@ -76,7 +76,7 @@ class QgsDxfExportDialog : public QDialog, private Ui::QgsDxfExportDialogBase
{
Q_OBJECT
public:
QgsDxfExportDialog( QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsDxfExportDialog( QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
~QgsDxfExportDialog() override;

QList< QgsDxfExport::DxfLayer > layers() const;
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsformannotationdialog.h
Expand Up @@ -25,7 +25,7 @@ class APP_EXPORT QgsFormAnnotationDialog: public QDialog, private Ui::QgsFormAnn
{
Q_OBJECT
public:
QgsFormAnnotationDialog( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsFormAnnotationDialog( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );

private:
QgsMapCanvasAnnotationItem *mItem = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgshtmlannotationdialog.h
Expand Up @@ -25,7 +25,7 @@ class APP_EXPORT QgsHtmlAnnotationDialog: public QDialog, private Ui::QgsFormAnn
{
Q_OBJECT
public:
QgsHtmlAnnotationDialog( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsHtmlAnnotationDialog( QgsMapCanvasAnnotationItem *item, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );

private:
QgsMapCanvasAnnotationItem *mItem = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsidentifyresultsdialog.h
Expand Up @@ -129,7 +129,7 @@ class APP_EXPORT QgsIdentifyResultsDialog: public QDialog, private Ui::QgsIdenti
* takes its own copy of the QgsAttributeAction so
* that it is independent of whoever created it.
*/
QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidget *parent = nullptr, Qt::WindowFlags f = nullptr );
QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );

~QgsIdentifyResultsDialog() override;

Expand Down

0 comments on commit ab6bbfd

Please sign in to comment.