summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qundostack.h
diff options
context:
space:
mode:
authorStephan Binner <stephan.binner@basyskom.com>2017-06-25 09:40:36 +0200
committerStephan Binner <stephan.binner@basyskom.com>2017-06-28 16:15:50 +0000
commitfa0ff2988eb6387bbc89160c85df8a5e1d6acccc (patch)
tree3c724d0a06f5d51d922287e81a1af77046a598f9 /src/widgets/util/qundostack.h
parenta4d190554ae3d35b53cd7e7823a23f548bd24cfe (diff)
Convert features.undocommand to QT_[REQUIRE_]CONFIG
Change-Id: I1016f7e6bb1297e9c2f73e26e0d3641c873c4d4d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/widgets/util/qundostack.h')
-rw-r--r--src/widgets/util/qundostack.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/widgets/util/qundostack.h b/src/widgets/util/qundostack.h
index e402e16eae..7ab90b507a 100644
--- a/src/widgets/util/qundostack.h
+++ b/src/widgets/util/qundostack.h
@@ -44,15 +44,14 @@
#include <QtCore/qobject.h>
#include <QtCore/qstring.h>
-QT_BEGIN_NAMESPACE
+QT_REQUIRE_CONFIG(undocommand);
+QT_BEGIN_NAMESPACE
class QAction;
class QUndoCommandPrivate;
class QUndoStackPrivate;
-#ifndef QT_NO_UNDOCOMMAND
-
class Q_WIDGETS_EXPORT QUndoCommand
{
QUndoCommandPrivate *d;
@@ -83,8 +82,6 @@ private:
friend class QUndoStack;
};
-#endif // QT_NO_UNDOCOMMAND
-
#if QT_CONFIG(undostack)
class Q_WIDGETS_EXPORT QUndoStack : public QObject