From e6fad35155a25a932386ad6f8421efd74404ac7f Mon Sep 17 00:00:00 2001 From: Stephan Binner Date: Sun, 23 Jul 2017 11:31:32 +0200 Subject: Convert features.graphicsview to QT_[REQUIRE_]CONFIG Change-Id: I1083097802772624e5d414678b4612308683a56f Reviewed-by: Oswald Buddenhagen --- src/widgets/kernel/qaction.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/widgets/kernel/qaction.cpp') diff --git a/src/widgets/kernel/qaction.cpp b/src/widgets/kernel/qaction.cpp index 2314ab45f1..002ca68720 100644 --- a/src/widgets/kernel/qaction.cpp +++ b/src/widgets/kernel/qaction.cpp @@ -112,7 +112,7 @@ void QActionPrivate::sendDataChanged() QWidget *w = widgets.at(i); QApplication::sendEvent(w, &e); } -#ifndef QT_NO_GRAPHICSVIEW +#if QT_CONFIG(graphicsview) for (int i = 0; i < graphicsWidgets.size(); ++i) { QGraphicsWidget *w = graphicsWidgets.at(i); QApplication::sendEvent(w, &e); @@ -360,7 +360,7 @@ QList QAction::associatedWidgets() const return d->widgets; } -#ifndef QT_NO_GRAPHICSVIEW +#if QT_CONFIG(graphicsview) /*! \since 4.5 Returns a list of widgets this action has been added to. @@ -565,7 +565,7 @@ QAction::~QAction() QWidget *w = d->widgets.at(i); w->removeAction(this); } -#ifndef QT_NO_GRAPHICSVIEW +#if QT_CONFIG(graphicsview) for (int i = d->graphicsWidgets.size()-1; i >= 0; --i) { QGraphicsWidget *w = d->graphicsWidgets.at(i); w->removeAction(this); -- cgit v1.2.3