diff --git a/examples/DrawIntoPainter/framewidget.h b/examples/DrawIntoPainter/framewidget.h --- a/examples/DrawIntoPainter/framewidget.h +++ b/examples/DrawIntoPainter/framewidget.h @@ -32,7 +32,7 @@ Q_OBJECT public: - explicit FrameWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 ); + explicit FrameWidget( QWidget * parent = 0, Qt::WindowFlags f = Qt::WindowFlags() ); void paintEvent( QPaintEvent* ) Q_DECL_OVERRIDE; diff --git a/examples/Gantt/legend_example/entrydialog.h b/examples/Gantt/legend_example/entrydialog.h --- a/examples/Gantt/legend_example/entrydialog.h +++ b/examples/Gantt/legend_example/entrydialog.h @@ -39,7 +39,7 @@ Q_OBJECT public: - explicit EntryDialog( const QAbstractItemModel* model, QWidget* parent = 0, Qt::WindowFlags f = 0 ); + explicit EntryDialog( const QAbstractItemModel* model, QWidget* parent = 0, Qt::WindowFlags f = Qt::WindowFlags() ); void initFrom( const QModelIndex& index, const KGantt::ConstraintModel* constraintModel ); QString name() const; diff --git a/examples/Gantt/legend_example/mainwindow.h b/examples/Gantt/legend_example/mainwindow.h --- a/examples/Gantt/legend_example/mainwindow.h +++ b/examples/Gantt/legend_example/mainwindow.h @@ -41,7 +41,7 @@ Q_OBJECT public: - explicit MainWindow( QWidget * parent = 0, Qt::WindowFlags flags = 0 ); + explicit MainWindow( QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags() ); virtual ~MainWindow(); void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE; diff --git a/qtests/DrawIntoPainter/framewidget.h b/qtests/DrawIntoPainter/framewidget.h --- a/qtests/DrawIntoPainter/framewidget.h +++ b/qtests/DrawIntoPainter/framewidget.h @@ -32,7 +32,7 @@ Q_OBJECT public: - explicit FrameWidget( QWidget * parent = 0, Qt::WindowFlags f = 0 ); + explicit FrameWidget( QWidget * parent = 0, Qt::WindowFlags f = Qt::WindowFlags() ); void paintEvent( QPaintEvent* ) Q_DECL_OVERRIDE; diff --git a/src/KChart/KChartChart.cpp b/src/KChart/KChartChart.cpp --- a/src/KChart/KChartChart.cpp +++ b/src/KChart/KChartChart.cpp @@ -151,7 +151,7 @@ class MyWidgetItem : public QWidgetItem { public: - explicit MyWidgetItem(QWidget *w, Qt::Alignment alignment = 0) + explicit MyWidgetItem(QWidget *w, Qt::Alignment alignment = Qt::Alignment()) : QWidgetItem( w ) { setAlignment( alignment ); @@ -868,7 +868,7 @@ * column of the shared grid. */ planeLayoutItems << plane; plane->setParentLayout( planeLayout ); - planeLayout->addItem( plane, row, column, 1, 1, 0 ); + planeLayout->addItem( plane, row, column, 1, 1 ); //qDebug() << "Chart slotLayoutPlanes() calls planeLayout->addItem("<< row << column << ")"; planeLayout->setRowStretch( row, 2 ); planeLayout->setColumnStretch( column, 2 ); diff --git a/src/KChart/KChartLayoutItems.h b/src/KChart/KChartLayoutItems.h --- a/src/KChart/KChartLayoutItems.h +++ b/src/KChart/KChartLayoutItems.h @@ -49,7 +49,7 @@ class KCHART_EXPORT AbstractLayoutItem : public QLayoutItem { public: - AbstractLayoutItem( Qt::Alignment itemAlignment = 0 ) : + AbstractLayoutItem( Qt::Alignment itemAlignment = Qt::Alignment() ) : QLayoutItem( itemAlignment ), mParent( 0 ), mParentLayout( 0 ) {} @@ -102,7 +102,7 @@ const TextAttributes& attributes, const QObject* autoReferenceArea, KChartEnums::MeasureOrientation autoReferenceOrientation, - Qt::Alignment alignment = 0 ); + Qt::Alignment alignment = Qt::Alignment() ); void setAutoReferenceArea( const QObject* area ); const QObject* autoReferenceArea() const; @@ -173,7 +173,7 @@ const TextAttributes& attributes, const QObject* autoReferenceArea, KChartEnums::MeasureOrientation autoReferenceOrientation, - Qt::Alignment alignment = 0 ); + Qt::Alignment alignment = Qt::Alignment() ); ~TextBubbleLayoutItem(); @@ -221,7 +221,7 @@ const MarkerAttributes& marker, const QBrush& brush, const QPen& pen, - Qt::Alignment alignment = 0 ); + Qt::Alignment alignment = Qt::Alignment() ); Qt::Orientations expandingDirections() const Q_DECL_OVERRIDE; QRect geometry() const Q_DECL_OVERRIDE; @@ -260,7 +260,7 @@ int length, const QPen& pen, Qt::Alignment mLegendLineSymbolAlignment, - Qt::Alignment alignment = 0 ); + Qt::Alignment alignment = Qt::Alignment() ); Qt::Orientations expandingDirections() const Q_DECL_OVERRIDE; QRect geometry() const Q_DECL_OVERRIDE; @@ -303,7 +303,7 @@ const MarkerAttributes& marker, const QBrush& markerBrush, const QPen& markerPen, - Qt::Alignment alignment = 0 ); + Qt::Alignment alignment = Qt::Alignment() ); Qt::Orientations expandingDirections() const Q_DECL_OVERRIDE; QRect geometry() const Q_DECL_OVERRIDE; diff --git a/src/KChart/KChartLayoutItems.cpp b/src/KChart/KChartLayoutItems.cpp --- a/src/KChart/KChartLayoutItems.cpp +++ b/src/KChart/KChartLayoutItems.cpp @@ -293,7 +293,7 @@ Qt::Orientations KChart::TextLayoutItem::expandingDirections() const { - return 0; // Grow neither vertically nor horizontally + return Qt::Orientations(); // Grow neither vertically nor horizontally } QRect KChart::TextLayoutItem::geometry() const @@ -637,7 +637,7 @@ Qt::Orientations KChart::MarkerLayoutItem::expandingDirections() const { - return 0; // Grow neither vertically nor horizontally + return Qt::Orientations(); // Grow neither vertically nor horizontally } QRect KChart::MarkerLayoutItem::geometry() const @@ -732,7 +732,7 @@ Qt::Orientations KChart::LineLayoutItem::expandingDirections() const { - return 0; // Grow neither vertically nor horizontally + return Qt::Orientations(); // Grow neither vertically nor horizontally } QRect KChart::LineLayoutItem::geometry() const @@ -831,7 +831,7 @@ Qt::Orientations KChart::LineWithMarkerLayoutItem::expandingDirections() const { - return 0; // Grow neither vertically nor horizontally + return Qt::Orientations(); // Grow neither vertically nor horizontally } QRect KChart::LineWithMarkerLayoutItem::geometry() const @@ -891,7 +891,7 @@ Qt::Orientations KChart::AutoSpacerLayoutItem::expandingDirections() const { - return 0; // Grow neither vertically nor horizontally + return Qt::Orientations(); // Grow neither vertically nor horizontally } QRect KChart::AutoSpacerLayoutItem::geometry() const diff --git a/tests/Gantt/apireview/entrydialog.h b/tests/Gantt/apireview/entrydialog.h --- a/tests/Gantt/apireview/entrydialog.h +++ b/tests/Gantt/apireview/entrydialog.h @@ -39,7 +39,7 @@ Q_OBJECT public: - EntryDialog( const QAbstractItemModel* model, QWidget* parent = 0, Qt::WindowFlags f = 0 ); + EntryDialog( const QAbstractItemModel* model, QWidget* parent = 0, Qt::WindowFlags f = Qt::WindowFlags() ); void initFrom( const QModelIndex& index, const KGantt::ConstraintModel* constraintModel ); QString name() const; diff --git a/tests/Gantt/apireview/mainwindow.h b/tests/Gantt/apireview/mainwindow.h --- a/tests/Gantt/apireview/mainwindow.h +++ b/tests/Gantt/apireview/mainwindow.h @@ -40,7 +40,7 @@ Q_OBJECT public: - MainWindow( QWidget * parent = 0, Qt::WindowFlags flags = 0 ); + MainWindow( QWidget * parent = 0, Qt::WindowFlags flags = Qt::WindowFlags() ); private slots: void addNewEntry();