Convert features.undocommand to QT_[REQUIRE_]CONFIG
Change-Id: I1016f7e6bb1297e9c2f73e26e0d3641c873c4d4d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>bb10
parent
a4d190554a
commit
fa0ff2988e
|
|
@ -44,8 +44,6 @@
|
|||
#endif
|
||||
#include "qundostack_p.h"
|
||||
|
||||
#ifndef QT_NO_UNDOCOMMAND
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
/*!
|
||||
|
|
@ -342,8 +340,6 @@ const QUndoCommand *QUndoCommand::child(int index) const
|
|||
return d->child_list.at(index);
|
||||
}
|
||||
|
||||
#endif // QT_NO_UNDOCOMMAND
|
||||
|
||||
#if QT_CONFIG(undostack)
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,15 +5,12 @@ HEADERS += \
|
|||
util/qcolormap.h \
|
||||
util/qcompleter.h \
|
||||
util/qcompleter_p.h \
|
||||
util/qsystemtrayicon_p.h \
|
||||
util/qundostack.h \
|
||||
util/qundostack_p.h
|
||||
util/qsystemtrayicon_p.h
|
||||
|
||||
SOURCES += \
|
||||
util/qsystemtrayicon.cpp \
|
||||
util/qcolormap.cpp \
|
||||
util/qcompleter.cpp \
|
||||
util/qundostack.cpp
|
||||
util/qcompleter.cpp
|
||||
|
||||
qtConfig(scroller) {
|
||||
HEADERS += \
|
||||
|
|
@ -29,6 +26,14 @@ qtConfig(scroller) {
|
|||
util/qflickgesture.cpp \
|
||||
}
|
||||
|
||||
qtConfig(undocommand) {
|
||||
HEADERS += \
|
||||
util/qundostack.h \
|
||||
util/qundostack_p.h
|
||||
|
||||
SOURCES += util/qundostack.cpp
|
||||
}
|
||||
|
||||
qtConfig(undogroup) {
|
||||
HEADERS += util/qundogroup.h
|
||||
SOURCES += util/qundogroup.cpp
|
||||
|
|
|
|||
Loading…
Reference in New Issue