summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qundostack.h
diff options
context:
space:
mode:
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