Skip to content

Commit

Permalink
Replace WFlags with WindowFlags
Browse files Browse the repository at this point in the history
It has long been in Qt 4 that the WFlags window flags argument has been
renamed to WindowFlags. In fact, WFlags is just a typedef to WindowFlags.
In Qt 5, this will go away, so we can change this now to make transition
easier in the future.

This should not have any affect on API or ABI, as the symbol names already
have WindowFlags in them anyway.

This change concentrates on the sources in the src directory. There are
a few more places in the python directory that can be done later.
  • Loading branch information
simonsonc authored and wonder-sk committed Mar 27, 2014
1 parent a838700 commit 665f0a3
Show file tree
Hide file tree
Showing 167 changed files with 181 additions and 181 deletions.
2 changes: 1 addition & 1 deletion src/app/ogr/qgsnewogrconnection.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define TO8F(x) QFile::encodeName( x ).constData() #define TO8F(x) QFile::encodeName( x ).constData()
#endif #endif


QgsNewOgrConnection::QgsNewOgrConnection( QWidget *parent, const QString& connType, const QString& connName, Qt::WFlags fl ) QgsNewOgrConnection::QgsNewOgrConnection( QWidget *parent, const QString& connType, const QString& connName, Qt::WindowFlags fl )
: QDialog( parent, fl ), : QDialog( parent, fl ),
mOriginalConnName( connName ) mOriginalConnName( connName )
{ {
Expand Down
2 changes: 1 addition & 1 deletion src/app/ogr/qgsnewogrconnection.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class QgsNewOgrConnection : public QDialog, private Ui::QgsNewOgrConnectionBase


public: public:
//! Constructor //! Constructor
QgsNewOgrConnection( QWidget *parent = 0, const QString& connType = QString::null, const QString& connName = QString::null, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsNewOgrConnection( QWidget *parent = 0, const QString& connType = QString::null, const QString& connName = QString::null, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
//! Destructor //! Destructor
~QgsNewOgrConnection(); ~QgsNewOgrConnection();
//! Tests the connection using the parameters supplied //! Tests the connection using the parameters supplied
Expand Down
2 changes: 1 addition & 1 deletion src/app/ogr/qgsopenvectorlayerdialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include "qgsogrhelperfunctions.h" #include "qgsogrhelperfunctions.h"
#include "qgscontexthelp.h" #include "qgscontexthelp.h"


QgsOpenVectorLayerDialog::QgsOpenVectorLayerDialog( QWidget* parent, Qt::WFlags fl ) QgsOpenVectorLayerDialog::QgsOpenVectorLayerDialog( QWidget* parent, Qt::WindowFlags fl )
: QDialog( parent, fl ) : QDialog( parent, fl )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/ogr/qgsopenvectorlayerdialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class QgsOpenVectorLayerDialog : public QDialog, private Ui::QgsOpenVectorLayerD
Q_OBJECT Q_OBJECT


public: public:
QgsOpenVectorLayerDialog( QWidget* parent = 0, Qt::WFlags fl = 0 ); QgsOpenVectorLayerDialog( QWidget* parent = 0, Qt::WindowFlags fl = 0 );
~QgsOpenVectorLayerDialog(); ~QgsOpenVectorLayerDialog();
//! Opens a dialog to select a file datasource*/ //! Opens a dialog to select a file datasource*/
QStringList openFile(); QStringList openFile();
Expand Down
4 changes: 2 additions & 2 deletions src/app/ogr/qgsvectorlayersaveasdialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
#include <QFileDialog> #include <QFileDialog>
#include <QTextCodec> #include <QTextCodec>


QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog( long srsid, QWidget* parent, Qt::WFlags fl ) QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog( long srsid, QWidget* parent, Qt::WindowFlags fl )
: QDialog( parent, fl ) : QDialog( parent, fl )
, mCRS( srsid ) , mCRS( srsid )
{ {
setup(); setup();
} }


QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog( long srsid, const QgsRectangle& layerExtent, bool layerHasSelectedFeatures, int options, QWidget* parent, Qt::WFlags fl ) QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog( long srsid, const QgsRectangle& layerExtent, bool layerHasSelectedFeatures, int options, QWidget* parent, Qt::WindowFlags fl )
: QDialog( parent, fl ) : QDialog( parent, fl )
, mCRS( srsid ) , mCRS( srsid )
, mLayerExtent( layerExtent ) , mLayerExtent( layerExtent )
Expand Down
4 changes: 2 additions & 2 deletions src/app/ogr/qgsvectorlayersaveasdialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class QgsVectorLayerSaveAsDialog : public QDialog, private Ui::QgsVectorLayerSav
AllOptions = ~0 AllOptions = ~0
}; };


QgsVectorLayerSaveAsDialog( long srsid, QWidget* parent = 0, Qt::WFlags fl = 0 ); QgsVectorLayerSaveAsDialog( long srsid, QWidget* parent = 0, Qt::WindowFlags fl = 0 );
QgsVectorLayerSaveAsDialog( long srsid, const QgsRectangle& layerExtent, bool layerHasSelectedFeatures, int options = AllOptions, QWidget* parent = 0, Qt::WFlags fl = 0 ); QgsVectorLayerSaveAsDialog( long srsid, const QgsRectangle& layerExtent, bool layerHasSelectedFeatures, int options = AllOptions, QWidget* parent = 0, Qt::WindowFlags fl = 0 );
~QgsVectorLayerSaveAsDialog(); ~QgsVectorLayerSaveAsDialog();


QString format() const; QString format() const;
Expand Down
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#endif #endif




QgsPluginManager::QgsPluginManager( QWidget * parent, bool pluginsAreEnabled, Qt::WFlags fl ) QgsPluginManager::QgsPluginManager( QWidget * parent, bool pluginsAreEnabled, Qt::WindowFlags fl )
: QgsOptionsDialogBase( "PluginManager", parent, fl ) : QgsOptionsDialogBase( "PluginManager", parent, fl )
{ {
// initialize pointer // initialize pointer
Expand Down
2 changes: 1 addition & 1 deletion src/app/pluginmanager/qgspluginmanager.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
Q_OBJECT Q_OBJECT
public: public:
//! Constructor; set pluginsAreEnabled to false in --noplugins mode //! Constructor; set pluginsAreEnabled to false in --noplugins mode
QgsPluginManager( QWidget *parent = 0, bool pluginsAreEnabled = true, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsPluginManager( QWidget *parent = 0, bool pluginsAreEnabled = true, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );


//! Destructor //! Destructor
~QgsPluginManager(); ~QgsPluginManager();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static bool cmpByText_( QAction* a, QAction* b )
QgisApp *QgisApp::smInstance = 0; QgisApp *QgisApp::smInstance = 0;


// constructor starts here // constructor starts here
QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent, Qt::WFlags fl ) QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent, Qt::WindowFlags fl )
: QMainWindow( parent, fl ) : QMainWindow( parent, fl )
, mSplash( splash ) , mSplash( splash )
, mMousePrecisionDecimalPlaces( 0 ) , mMousePrecisionDecimalPlaces( 0 )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
Q_OBJECT Q_OBJECT
public: public:
//! Constructor //! Constructor
QgisApp( QSplashScreen *splash, bool restorePlugins = true, QWidget * parent = 0, Qt::WFlags fl = Qt::Window ); QgisApp( QSplashScreen *splash, bool restorePlugins = true, QWidget * parent = 0, Qt::WindowFlags fl = Qt::Window );
//! Constructor for unit tests //! Constructor for unit tests
QgisApp( ); QgisApp( );
//! Destructor //! Destructor
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsaddattrdialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


#include <QMessageBox> #include <QMessageBox>


QgsAddAttrDialog::QgsAddAttrDialog( QgsVectorLayer *vlayer, QWidget *parent, Qt::WFlags fl ) QgsAddAttrDialog::QgsAddAttrDialog( QgsVectorLayer *vlayer, QWidget *parent, Qt::WindowFlags fl )
: QDialog( parent, fl ) : QDialog( parent, fl )
, mIsShapeFile( vlayer && vlayer->providerType() == "ogr" && vlayer->storageType() == "ESRI Shapefile" ) , mIsShapeFile( vlayer && vlayer->providerType() == "ogr" && vlayer->storageType() == "ESRI Shapefile" )
{ {
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsaddattrdialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class APP_EXPORT QgsAddAttrDialog: public QDialog, private Ui::QgsAddAttrDialogB
Q_OBJECT Q_OBJECT
public: public:
QgsAddAttrDialog( QgsVectorLayer *vlayer, QgsAddAttrDialog( QgsVectorLayer *vlayer,
QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
QgsAddAttrDialog( const std::list<QString>& typelist, QgsAddAttrDialog( const std::list<QString>& typelist,
QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );


QgsField field() const; QgsField field() const;


Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsbookmarks.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


QgsBookmarks *QgsBookmarks::sInstance = 0; QgsBookmarks *QgsBookmarks::sInstance = 0;


QgsBookmarks::QgsBookmarks( QWidget *parent, Qt::WFlags fl ) QgsBookmarks::QgsBookmarks( QWidget *parent, Qt::WindowFlags fl )
: QDialog( parent, fl ) : QDialog( parent, fl )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsbookmarks.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class APP_EXPORT QgsBookmarks : public QDialog, private Ui::QgsBookmarksBase
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }


private: private:
QgsBookmarks( QWidget *parent = 0, Qt::WFlags fl = 0 ); QgsBookmarks( QWidget *parent = 0, Qt::WindowFlags fl = 0 );
~QgsBookmarks(); ~QgsBookmarks();


void saveWindowLocation(); void saveWindowLocation();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgscustomprojectiondialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extern "C"
} }




QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget *parent, Qt::WFlags fl ) QgsCustomProjectionDialog::QgsCustomProjectionDialog( QWidget *parent, Qt::WindowFlags fl )
: QDialog( parent, fl ) : QDialog( parent, fl )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgscustomprojectiondialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class APP_EXPORT QgsCustomProjectionDialog : public QDialog, private Ui::QgsCust
{ {
Q_OBJECT Q_OBJECT
public: public:
QgsCustomProjectionDialog( QWidget *parent = 0, Qt::WFlags fl = 0 ); QgsCustomProjectionDialog( QWidget *parent = 0, Qt::WindowFlags fl = 0 );
~QgsCustomProjectionDialog(); ~QgsCustomProjectionDialog();


public slots: public slots:
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsdisplayangle.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <QSettings> #include <QSettings>
#include <cmath> #include <cmath>


QgsDisplayAngle::QgsDisplayAngle( QgsMapToolMeasureAngle * tool, Qt::WFlags f ) QgsDisplayAngle::QgsDisplayAngle( QgsMapToolMeasureAngle * tool, Qt::WindowFlags f )
: QDialog( tool->canvas()->topLevelWidget(), f ), mTool( tool ) : QDialog( tool->canvas()->topLevelWidget(), f ), mTool( tool )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsidentifyresultsdialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void QgsIdentifyResultsWebViewItem::loadFinished( bool ok )
// action // action
// name value // name value


QgsIdentifyResultsDialog::QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidget *parent, Qt::WFlags f ) QgsIdentifyResultsDialog::QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidget *parent, Qt::WindowFlags f )
: QDialog( parent, f ) : QDialog( parent, f )
, mActionPopup( 0 ) , mActionPopup( 0 )
, mCanvas( canvas ) , mCanvas( canvas )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsidentifyresultsdialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class APP_EXPORT QgsIdentifyResultsDialog: public QDialog, private Ui::QgsIdenti


//! Constructor - takes it own copy of the QgsAttributeAction so //! Constructor - takes it own copy of the QgsAttributeAction so
// that it is independent of whoever created it. // that it is independent of whoever created it.
QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidget *parent = 0, Qt::WFlags f = 0 ); QgsIdentifyResultsDialog( QgsMapCanvas *canvas, QWidget *parent = 0, Qt::WindowFlags f = 0 );


~QgsIdentifyResultsDialog(); ~QgsIdentifyResultsDialog();


Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmeasuredialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <QPushButton> #include <QPushButton>




QgsMeasureDialog::QgsMeasureDialog( QgsMeasureTool* tool, Qt::WFlags f ) QgsMeasureDialog::QgsMeasureDialog( QgsMeasureTool* tool, Qt::WindowFlags f )
: QDialog( tool->canvas()->topLevelWidget(), f ), mTool( tool ) : QDialog( tool->canvas()->topLevelWidget(), f ), mTool( tool )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmeasuredialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class APP_EXPORT QgsMeasureDialog : public QDialog, private Ui::QgsMeasureBase
public: public:


//! Constructor //! Constructor
QgsMeasureDialog( QgsMeasureTool* tool, Qt::WFlags f = 0 ); QgsMeasureDialog( QgsMeasureTool* tool, Qt::WindowFlags f = 0 );


//! Save position //! Save position
void saveWindowLocation( void ); void saveWindowLocation( void );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsnewspatialitelayerdialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


#include <spatialite.h> #include <spatialite.h>


QgsNewSpatialiteLayerDialog::QgsNewSpatialiteLayerDialog( QWidget *parent, Qt::WFlags fl ) QgsNewSpatialiteLayerDialog::QgsNewSpatialiteLayerDialog( QWidget *parent, Qt::WindowFlags fl )
: QDialog( parent, fl ) : QDialog( parent, fl )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsnewspatialitelayerdialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class APP_EXPORT QgsNewSpatialiteLayerDialog: public QDialog, private Ui::QgsNew
Q_OBJECT Q_OBJECT


public: public:
QgsNewSpatialiteLayerDialog( QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsNewSpatialiteLayerDialog( QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
~QgsNewSpatialiteLayerDialog(); ~QgsNewSpatialiteLayerDialog();


protected slots: protected slots:
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsoptions.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
* \class QgsOptions - Set user options and preferences * \class QgsOptions - Set user options and preferences
* Constructor * Constructor
*/ */
QgsOptions::QgsOptions( QWidget *parent, Qt::WFlags fl ) : QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
QgsOptionsDialogBase( "Options", parent, fl ) QgsOptionsDialogBase( "Options", parent, fl )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsoptions.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class APP_EXPORT QgsOptions : public QgsOptionsDialogBase, private Ui::QgsOption
* @param name name for the widget * @param name name for the widget
* @param modal true for modal dialog * @param modal true for modal dialog
*/ */
QgsOptions( QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsOptions( QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
//! Destructor //! Destructor
~QgsOptions(); ~QgsOptions();
/** /**
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsprojectproperties.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const char * QgsProjectProperties::GEO_NONE_DESC = QT_TRANSLATE_NOOP( "QgsOption


//stdc++ includes //stdc++ includes


QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *parent, Qt::WFlags fl ) QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *parent, Qt::WindowFlags fl )
: QgsOptionsDialogBase( "ProjectProperties", parent, fl ) : QgsOptionsDialogBase( "ProjectProperties", parent, fl )
, mMapCanvas( mapCanvas ) , mMapCanvas( mapCanvas )
, mEllipsoidList() , mEllipsoidList()
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsprojectproperties.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class APP_EXPORT QgsProjectProperties : public QgsOptionsDialogBase, private Ui:


public: public:
//! Constructor //! Constructor
QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );


//! Destructor //! Destructor
~QgsProjectProperties(); ~QgsProjectProperties();
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsrasterlayerproperties.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#include <QMouseEvent> #include <QMouseEvent>
#include <QVector> #include <QVector>


QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanvas* theCanvas, QWidget *parent, Qt::WFlags fl ) QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanvas* theCanvas, QWidget *parent, Qt::WindowFlags fl )
: QgsOptionsDialogBase( "RasterLayerProperties", parent, fl ), : QgsOptionsDialogBase( "RasterLayerProperties", parent, fl ),
// Constant that signals property not used. // Constant that signals property not used.
TRSTRING_NOT_SET( tr( "Not Set" ) ), TRSTRING_NOT_SET( tr( "Not Set" ) ),
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsrasterlayerproperties.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class APP_EXPORT QgsRasterLayerProperties : public QgsOptionsDialogBase, private
/** \brief Constructor /** \brief Constructor
* @param ml Map layer for which properties will be displayed * @param ml Map layer for which properties will be displayed
*/ */
QgsRasterLayerProperties( QgsMapLayer *lyr, QgsMapCanvas* theCanvas, QWidget *parent = 0, Qt::WFlags = QgisGui::ModalDialogFlags ); QgsRasterLayerProperties( QgsMapLayer *lyr, QgsMapCanvas* theCanvas, QWidget *parent = 0, Qt::WindowFlags = QgisGui::ModalDialogFlags );
/** \brief Destructor */ /** \brief Destructor */
~QgsRasterLayerProperties(); ~QgsRasterLayerProperties();


Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsvectorlayerproperties.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
QgsVectorLayerProperties::QgsVectorLayerProperties( QgsVectorLayerProperties::QgsVectorLayerProperties(
QgsVectorLayer *lyr, QgsVectorLayer *lyr,
QWidget * parent, QWidget * parent,
Qt::WFlags fl Qt::WindowFlags fl
) )
: QgsOptionsDialogBase( "VectorLayerProperties", parent, fl ) : QgsOptionsDialogBase( "VectorLayerProperties", parent, fl )
, layer( lyr ) , layer( lyr )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsvectorlayerproperties.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class APP_EXPORT QgsVectorLayerProperties : public QgsOptionsDialogBase, private
DB, DB,
}; };


QgsVectorLayerProperties( QgsVectorLayer *lyr = 0, QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsVectorLayerProperties( QgsVectorLayer *lyr = 0, QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
~QgsVectorLayerProperties(); ~QgsVectorLayerProperties();
/**Returns the display name entered in the dialog*/ /**Returns the display name entered in the dialog*/
QString displayName(); QString displayName();
Expand Down
2 changes: 1 addition & 1 deletion src/browser/qgsbrowser.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#define QGIS_ICON_SIZE 24 #define QGIS_ICON_SIZE 24
#endif #endif


QgsBrowser::QgsBrowser( QWidget *parent, Qt::WFlags flags ) QgsBrowser::QgsBrowser( QWidget *parent, Qt::WindowFlags flags )
: QMainWindow( parent, flags ) : QMainWindow( parent, flags )
, mDirtyMetadata( true ) , mDirtyMetadata( true )
, mDirtyPreview( true ) , mDirtyPreview( true )
Expand Down
2 changes: 1 addition & 1 deletion src/browser/qgsbrowser.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class QgsBrowser : public QMainWindow, private Ui::QgsBrowserBase
{ {
Q_OBJECT Q_OBJECT
public: public:
QgsBrowser( QWidget *parent = 0, Qt::WFlags flags = 0 ); QgsBrowser( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
~QgsBrowser(); ~QgsBrowser();


// Expand to given path // Expand to given path
Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsproviderregistry.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ QgsDataProvider *QgsProviderRegistry::provider( QString const & providerKey, QSt
} // QgsProviderRegistry::setDataProvider } // QgsProviderRegistry::setDataProvider


// This should be QWidget, not QDialog // This should be QWidget, not QDialog
typedef QWidget * selectFactoryFunction_t( QWidget * parent, Qt::WFlags fl ); typedef QWidget * selectFactoryFunction_t( QWidget * parent, Qt::WindowFlags fl );


QWidget* QgsProviderRegistry::selectWidget( const QString & providerKey, QWidget* QgsProviderRegistry::selectWidget( const QString & providerKey,
QWidget * parent, Qt::WFlags fl ) QWidget * parent, Qt::WindowFlags fl )
{ {
selectFactoryFunction_t * selectFactory = selectFactoryFunction_t * selectFactory =
( selectFactoryFunction_t * ) cast_to_fptr( function( providerKey, "selectWidget" ) ); ( selectFactoryFunction_t * ) cast_to_fptr( function( providerKey, "selectWidget" ) );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsproviderregistry.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CORE_EXPORT QgsProviderRegistry
const QString & dataSource ); const QString & dataSource );


QWidget *selectWidget( const QString & providerKey, QWidget *selectWidget( const QString & providerKey,
QWidget * parent = 0, Qt::WFlags fl = 0 ); QWidget * parent = 0, Qt::WindowFlags fl = 0 );


/** Get pointer to provider function /** Get pointer to provider function
@param providerKey identificator of the provider @param providerKey identificator of the provider
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgisgui.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace QgisGui
* Qt::WindowMaximizeButtonHint is included but will be ignored if * Qt::WindowMaximizeButtonHint is included but will be ignored if
* the dialog is a fixed size and does not have a size grip. * the dialog is a fixed size and does not have a size grip.
*/ */
static const Qt::WFlags ModalDialogFlags = 0; static const Qt::WindowFlags ModalDialogFlags = 0;


/** /**
Open files, preferring to have the default file selector be the Open files, preferring to have the default file selector be the
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsbusyindicatordialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <QLabel> #include <QLabel>
#include <QProgressBar> #include <QProgressBar>


QgsBusyIndicatorDialog::QgsBusyIndicatorDialog( const QString& message, QWidget* parent, Qt::WFlags fl ) QgsBusyIndicatorDialog::QgsBusyIndicatorDialog( const QString& message, QWidget* parent, Qt::WindowFlags fl )
: QDialog( parent, fl ), mMessage( QString( message ) ), mMsgLabel( 0 ) : QDialog( parent, fl ), mMessage( QString( message ) ), mMsgLabel( 0 )
{ {
setWindowTitle( tr( "QGIS" ) ); setWindowTitle( tr( "QGIS" ) );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsbusyindicatordialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class GUI_EXPORT QgsBusyIndicatorDialog : public QDialog
* @param fl widget flags * @param fl widget flags
* @note added in 1.9 * @note added in 1.9
*/ */
QgsBusyIndicatorDialog( const QString& message = "", QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsBusyIndicatorDialog( const QString& message = "", QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
~QgsBusyIndicatorDialog(); ~QgsBusyIndicatorDialog();


QString message() const { return mMessage; } QString message() const { return mMessage; }
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscharacterselectdialog.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "qgscharacterselectdialog.h" #include "qgscharacterselectdialog.h"




QgsCharacterSelectorDialog::QgsCharacterSelectorDialog( QWidget *parent, Qt::WFlags fl ) QgsCharacterSelectorDialog::QgsCharacterSelectorDialog( QWidget *parent, Qt::WindowFlags fl )
: QDialog( parent, fl ), mChar( QChar::Null ) : QDialog( parent, fl ), mChar( QChar::Null )
{ {
setupUi( this ); setupUi( this );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscharacterselectdialog.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GUI_EXPORT QgsCharacterSelectorDialog : public QDialog, private Ui::QgsCha
Q_OBJECT Q_OBJECT


public: public:
QgsCharacterSelectorDialog( QWidget* parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags ); QgsCharacterSelectorDialog( QWidget* parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
~QgsCharacterSelectorDialog(); ~QgsCharacterSelectorDialog();


public slots: public slots:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscomposerview.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include "qgsmapcanvas.h" //for QgsMapCanvas::WheelAction #include "qgsmapcanvas.h" //for QgsMapCanvas::WheelAction
#include "qgscursors.h" #include "qgscursors.h"


QgsComposerView::QgsComposerView( QWidget* parent, const char* name, Qt::WFlags f ) QgsComposerView::QgsComposerView( QWidget* parent, const char* name, Qt::WindowFlags f )
: QGraphicsView( parent ) : QGraphicsView( parent )
, mRubberBandItem( 0 ) , mRubberBandItem( 0 )
, mRubberBandLineItem( 0 ) , mRubberBandLineItem( 0 )
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgscomposerview.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class GUI_EXPORT QgsComposerView: public QGraphicsView
ActiveUntilMouseRelease ActiveUntilMouseRelease
}; };


QgsComposerView( QWidget* parent = 0, const char* name = 0, Qt::WFlags f = 0 ); QgsComposerView( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags f = 0 );


/**Add an item group containing the selected items*/ /**Add an item group containing the selected items*/
void groupItems(); void groupItems();
Expand Down
Loading

0 comments on commit 665f0a3

Please sign in to comment.