QtWidgets: includemocs
A very simple way to save ~3KiB in test size and 440b in data size on GCC 5.3 Linux AMD64 release builds. Change-Id: I6619148cc497116b9772a00e1bc30d573a2b2534 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
This commit is contained in:
parent
e4cea305ed
commit
0e6ad27549
@ -396,4 +396,6 @@ void QErrorMessagePrivate::retranslateStrings()
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qerrormessage.cpp"
|
||||
|
||||
#endif // QT_NO_ERRORMESSAGE
|
||||
|
@ -339,3 +339,5 @@ void QFileInfoGatherer::fetch(const QFileInfo &fileInfo, QElapsedTimer &base, bo
|
||||
#endif // QT_NO_FILESYSTEMMODEL
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qfileinfogatherer_p.cpp"
|
||||
|
@ -509,4 +509,6 @@ bool QSidebar::event(QEvent * event)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qsidebar_p.cpp"
|
||||
|
||||
#endif
|
||||
|
@ -1229,4 +1229,7 @@ void QGraphicsOpacityEffect::draw(QPainter *painter)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qgraphicseffect.cpp"
|
||||
#include "moc_qgraphicseffect_p.cpp"
|
||||
|
||||
#endif //QT_NO_GRAPHICSEFFECT
|
||||
|
@ -1330,4 +1330,6 @@ void QPixmapDropShadowFilter::draw(QPainter *p,
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qpixmapfilter_p.cpp"
|
||||
|
||||
#endif //QT_NO_GRAPHICSEFFECT
|
||||
|
@ -523,4 +523,7 @@ QSizeF QGraphicsAnchorLayout::sizeHint(Qt::SizeHint which, const QSizeF &constra
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qgraphicsanchorlayout.cpp"
|
||||
|
||||
#endif //QT_NO_GRAPHICSVIEW
|
||||
|
@ -588,4 +588,6 @@ void QGraphicsItemAnimation::afterAnimationStep(qreal step)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qgraphicsitemanimation.cpp"
|
||||
|
||||
#endif // QT_NO_GRAPHICSVIEW
|
||||
|
@ -85,3 +85,4 @@
|
||||
Add the \a item from the index.
|
||||
*/
|
||||
|
||||
#include "moc_qgraphicsscenelinearindex_p.cpp"
|
||||
|
@ -2421,4 +2421,6 @@ void QGraphicsWidget::dumpFocusChain()
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qgraphicswidget.cpp"
|
||||
|
||||
#endif //QT_NO_GRAPHICSVIEW
|
||||
|
@ -183,4 +183,6 @@ originalXLocation(-1)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qcolumnviewgrip_p.cpp"
|
||||
|
||||
#endif // QT_NO_QCOLUMNVIEW
|
||||
|
@ -606,4 +606,6 @@ QT_END_NAMESPACE
|
||||
#include "qitemeditorfactory.moc"
|
||||
#endif
|
||||
|
||||
#include "moc_qitemeditorfactory_p.cpp"
|
||||
|
||||
#endif // QT_NO_ITEMVIEWS
|
||||
|
@ -3291,4 +3291,6 @@ QSize QListView::viewportSizeHint() const
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qlistview.cpp"
|
||||
|
||||
#endif // QT_NO_LISTVIEW
|
||||
|
@ -1948,5 +1948,6 @@ bool QListWidget::event(QEvent *e)
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qlistwidget.cpp"
|
||||
#include "moc_qlistwidget_p.cpp"
|
||||
|
||||
#endif // QT_NO_LISTWIDGET
|
||||
|
@ -2716,5 +2716,6 @@ void QTableWidget::dropEvent(QDropEvent *event) {
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qtablewidget.cpp"
|
||||
#include "moc_qtablewidget_p.cpp"
|
||||
|
||||
#endif // QT_NO_TABLEWIDGET
|
||||
|
@ -3449,5 +3449,6 @@ bool QTreeWidget::event(QEvent *e)
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qtreewidget.cpp"
|
||||
#include "moc_qtreewidget_p.cpp"
|
||||
|
||||
#endif // QT_NO_TREEWIDGET
|
||||
|
@ -1348,3 +1348,5 @@ QVBoxLayout::~QVBoxLayout()
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qboxlayout.cpp"
|
||||
|
@ -268,3 +268,4 @@ void QDesktopWidget::resizeEvent(QResizeEvent *)
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qdesktopwidget.cpp"
|
||||
#include "moc_qdesktopwidget_p.cpp"
|
||||
|
@ -2108,3 +2108,5 @@ void QFormLayout::dump() const
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qformlayout.cpp"
|
||||
|
@ -1686,3 +1686,5 @@ void QGridLayout::invalidate()
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qgridlayout.cpp"
|
||||
|
@ -1471,3 +1471,5 @@ QSize QLayout::closestAcceptableSize(const QWidget *widget, const QSize &size)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qlayout.cpp"
|
||||
|
@ -1343,3 +1343,5 @@ bool QOpenGLWidget::event(QEvent *e)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qopenglwidget.cpp"
|
||||
|
@ -652,3 +652,5 @@ bool QShortcut::event(QEvent *e)
|
||||
#endif // QT_NO_SHORTCUT
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qshortcut.cpp"
|
||||
|
@ -506,3 +506,5 @@ QDebug operator<<(QDebug dbg, const QSizePolicy &p)
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qsizepolicy.cpp"
|
||||
|
@ -590,3 +590,5 @@ void QStackedLayout::setStackingMode(StackingMode stackingMode)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qstackedlayout.cpp"
|
||||
|
@ -1625,3 +1625,5 @@ void QWidgetPrivate::repaint_sys(const QRegion &rgn)
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qwidgetbackingstore_p.cpp"
|
||||
|
@ -997,3 +997,5 @@ void QWidgetWindow::updateObjectName()
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qwidgetwindow_p.cpp"
|
||||
|
@ -397,3 +397,5 @@ void QWindowContainer::parentWasLowered(QWidget *parent)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qwindowcontainer_p.cpp"
|
||||
|
@ -197,4 +197,6 @@ void QBasicKeyEventTransition::onTransition(QEvent *)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qbasickeyeventtransition_p.cpp"
|
||||
|
||||
#endif //QT_NO_STATEMACHINE
|
||||
|
@ -202,4 +202,6 @@ void QBasicMouseEventTransition::onTransition(QEvent *)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qbasicmouseeventtransition_p.cpp"
|
||||
|
||||
#endif //QT_NO_STATEMACHINE
|
||||
|
@ -168,4 +168,6 @@ void QKeyEventTransition::onTransition(QEvent *event)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qkeyeventtransition.cpp"
|
||||
|
||||
#endif //QT_NO_STATEMACHINE
|
||||
|
@ -196,4 +196,6 @@ void QMouseEventTransition::onTransition(QEvent *event)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qmouseeventtransition.cpp"
|
||||
|
||||
#endif //QT_NO_STATEMACHINE
|
||||
|
@ -3739,4 +3739,6 @@ QPixmap QFusionStyle::standardPixmap(StandardPixmap standardPixmap, const QStyle
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qfusionstyle_p.cpp"
|
||||
|
||||
#endif // QT_NO_STYLE_FUSION || QT_PLUGIN
|
||||
|
@ -888,4 +888,7 @@ uint qHash(const QHashableLatin1Literal &key)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qgtkstyle_p.cpp"
|
||||
#include "moc_qgtkstyle_p_p.cpp"
|
||||
|
||||
#endif // !defined(QT_NO_STYLE_GTK)
|
||||
|
@ -423,4 +423,6 @@ int QProxyStyle::layoutSpacing(QSizePolicy::ControlType control1,
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qproxystyle.cpp"
|
||||
|
||||
#endif // QT_NO_STYLE_PROXY
|
||||
|
@ -2407,3 +2407,5 @@ void QStyle::setProxy(QStyle *style)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qstyle.cpp"
|
||||
|
@ -359,4 +359,6 @@ void QScrollbarStyleAnimation::updateCurrentTime(int time)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qstyleanimation_p.cpp"
|
||||
|
||||
#endif //QT_NO_ANIMATION
|
||||
|
@ -99,3 +99,5 @@ QStylePlugin::~QStylePlugin()
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qstyleplugin.cpp"
|
||||
|
@ -2397,4 +2397,6 @@ QIcon QWindowsStyle::standardIcon(StandardPixmap standardIcon, const QStyleOptio
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qwindowsstyle_p.cpp"
|
||||
|
||||
#endif // QT_NO_STYLE_WINDOWS
|
||||
|
@ -1880,4 +1880,6 @@ QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qcompleter.cpp"
|
||||
|
||||
#include "moc_qcompleter_p.cpp"
|
||||
|
||||
#endif // QT_NO_COMPLETER
|
||||
|
@ -704,4 +704,6 @@ void QFlickGestureRecognizer::reset(QGesture *state)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qflickgesture_p.cpp"
|
||||
|
||||
#endif // QT_NO_GESTURES
|
||||
|
@ -2048,3 +2048,6 @@ qreal QScrollerPrivate::nextSnapPos(qreal p, int dir, Qt::Orientation orientatio
|
||||
*/
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qscroller.cpp"
|
||||
#include "moc_qscroller_p.cpp"
|
||||
|
@ -766,3 +766,4 @@ QT_END_NAMESPACE
|
||||
#endif // QT_NO_SYSTEMTRAYICON
|
||||
|
||||
#include "moc_qsystemtrayicon.cpp"
|
||||
#include "moc_qsystemtrayicon_p.cpp"
|
||||
|
@ -495,4 +495,6 @@ QAction *QUndoGroup::createRedoAction(QObject *parent, const QString &prefix) co
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qundogroup.cpp"
|
||||
|
||||
#endif // QT_NO_UNDOGROUP
|
||||
|
@ -1168,4 +1168,7 @@ bool QUndoStack::isActive() const
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qundostack.cpp"
|
||||
#include "moc_qundostack_p.cpp"
|
||||
|
||||
#endif // QT_NO_UNDOSTACK
|
||||
|
@ -466,5 +466,6 @@ QIcon QUndoView::cleanIcon() const
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "qundoview.moc"
|
||||
#include "moc_qundoview.cpp"
|
||||
|
||||
#endif // QT_NO_UNDOVIEW
|
||||
|
@ -1413,3 +1413,5 @@ void QAbstractButton::setIconSize(const QSize &size)
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qabstractbutton.cpp"
|
||||
|
@ -937,3 +937,5 @@ bool QAbstractSlider::event(QEvent *e)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qabstractslider.cpp"
|
||||
|
@ -261,3 +261,4 @@
|
||||
\sa setId()
|
||||
*/
|
||||
|
||||
#include "moc_qbuttongroup.cpp"
|
||||
|
@ -387,3 +387,5 @@ bool QCheckBox::event(QEvent *e)
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qcheckbox.cpp"
|
||||
|
@ -3429,5 +3429,6 @@ void QComboBox::setModelColumn(int visibleColumn)
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qcombobox.cpp"
|
||||
#include "moc_qcombobox_p.cpp"
|
||||
|
||||
#endif // QT_NO_COMBOBOX
|
||||
|
@ -407,3 +407,4 @@ QString QCommandLinkButton::description() const
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qcommandlinkbutton.cpp"
|
||||
|
@ -2686,5 +2686,6 @@ void QCalendarPopup::hideEvent(QHideEvent *)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
#include "moc_qdatetimeedit.cpp"
|
||||
#include "moc_qdatetimeedit_p.cpp"
|
||||
|
||||
#endif // QT_NO_DATETIMEEDIT
|
||||
|
@ -481,4 +481,6 @@ bool QDial::event(QEvent *e)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qdial.cpp"
|
||||
|
||||
#endif // QT_NO_DIAL
|
||||
|
@ -1676,5 +1676,6 @@ QT_END_NAMESPACE
|
||||
|
||||
#include "qdockwidget.moc"
|
||||
#include "moc_qdockwidget.cpp"
|
||||
#include "moc_qdockwidget_p.cpp"
|
||||
|
||||
#endif // QT_NO_DOCKWIDGET
|
||||
|
@ -333,3 +333,5 @@ bool QFocusFrame::event(QEvent *e)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qfocusframe.cpp"
|
||||
|
@ -549,3 +549,5 @@ bool QFrame::event(QEvent *e)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qframe.cpp"
|
||||
|
@ -318,3 +318,5 @@ void QKeySequenceEdit::timerEvent(QTimerEvent *e)
|
||||
#endif // QT_NO_KEYSEQUENCEEDIT
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qkeysequenceedit.cpp"
|
||||
|
@ -1216,4 +1216,6 @@ bool QLCDNumber::event(QEvent *e)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qlcdnumber.cpp"
|
||||
|
||||
#endif // QT_NO_LCDNUMBER
|
||||
|
@ -520,4 +520,6 @@ void QLineEditPrivate::removeAction(QAction *action)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qlineedit_p.cpp"
|
||||
|
||||
#endif
|
||||
|
@ -1746,4 +1746,6 @@ QMenu *QMainWindow::createPopupMenu()
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qmainwindow.cpp"
|
||||
|
||||
#endif // QT_NO_MAINWINDOW
|
||||
|
@ -2590,4 +2590,6 @@ void QMainWindowLayout::timerEvent(QTimerEvent *e)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qmainwindowlayout_p.cpp"
|
||||
|
||||
#endif // QT_NO_MAINWINDOW
|
||||
|
@ -623,4 +623,6 @@ QString QProgressBar::format() const
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qprogressbar.cpp"
|
||||
|
||||
#endif // QT_NO_PROGRESSBAR
|
||||
|
@ -266,3 +266,5 @@ bool QRadioButton::event(QEvent *e)
|
||||
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qradiobutton.cpp"
|
||||
|
@ -327,4 +327,6 @@ bool QRubberBand::event(QEvent *e)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qrubberband.cpp"
|
||||
|
||||
#endif // QT_NO_RUBBERBAND
|
||||
|
@ -532,4 +532,6 @@ Qt::Alignment QScrollArea::alignment() const
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qscrollarea.cpp"
|
||||
|
||||
#endif // QT_NO_SCROLLAREA
|
||||
|
@ -738,4 +738,6 @@ Q_WIDGETS_EXPORT QStyleOptionSlider qt_qscrollbarStyleOption(QScrollBar *scrollb
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qscrollbar.cpp"
|
||||
|
||||
#endif // QT_NO_SCROLLBAR
|
||||
|
@ -553,3 +553,5 @@ Q_WIDGETS_EXPORT QStyleOptionSlider qt_qsliderStyleOption(QSlider *slider)
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qslider.cpp"
|
||||
|
@ -1322,4 +1322,6 @@ bool QSpinBox::event(QEvent *event)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qspinbox.cpp"
|
||||
|
||||
#endif // QT_NO_SPINBOX
|
||||
|
@ -352,4 +352,6 @@ bool QSplashScreen::event(QEvent *e)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qsplashscreen.cpp"
|
||||
|
||||
#endif //QT_NO_SPLASHSCREEN
|
||||
|
@ -1733,4 +1733,6 @@ QTextStream& operator>>(QTextStream& ts, QSplitter& splitter)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qsplitter.cpp"
|
||||
|
||||
#endif // QT_NO_SPLITTER
|
||||
|
@ -287,4 +287,6 @@ bool QStackedWidget::event(QEvent *e)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qstackedwidget.cpp"
|
||||
|
||||
#endif // QT_NO_STACKEDWIDGET
|
||||
|
@ -783,4 +783,6 @@ bool QStatusBar::event(QEvent *e)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qstatusbar.cpp"
|
||||
|
||||
#endif
|
||||
|
@ -2497,4 +2497,4 @@ QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_TABBAR
|
||||
|
||||
|
||||
#include "moc_qtabbar_p.cpp"
|
||||
|
@ -81,4 +81,6 @@ QSize QToolBarExtension::sizeHint() const
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qtoolbarextension_p.cpp"
|
||||
|
||||
#endif // QT_NO_TOOLBUTTON
|
||||
|
@ -742,4 +742,6 @@ QToolBarItem *QToolBarLayout::createItem(QAction *action)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qtoolbarlayout_p.cpp"
|
||||
|
||||
#endif // QT_NO_TOOLBAR
|
||||
|
@ -80,4 +80,6 @@ void QToolBarSeparator::paintEvent(QPaintEvent *)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qtoolbarseparator_p.cpp"
|
||||
|
||||
#endif // QT_NO_TOOLBAR
|
||||
|
@ -114,3 +114,5 @@ bool QWidgetAnimator::animating() const
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qwidgetanimator_p.cpp"
|
||||
|
@ -1919,4 +1919,6 @@ bool QWidgetLineControl::isRedoAvailable() const
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qwidgetlinecontrol_p.cpp"
|
||||
|
||||
#endif
|
||||
|
@ -535,4 +535,6 @@ void QWidgetResizeHandler::doMove()
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#include "moc_qwidgetresizehandler_p.cpp"
|
||||
|
||||
#endif //QT_NO_RESIZEHANDLER
|
||||
|
@ -84,6 +84,7 @@ HEADERS += \
|
||||
widgets/qplaintextedit_p.h
|
||||
|
||||
SOURCES += \
|
||||
widgets/qbuttongroup.cpp \
|
||||
widgets/qabstractbutton.cpp \
|
||||
widgets/qabstractslider.cpp \
|
||||
widgets/qabstractspinbox.cpp \
|
||||
|
Loading…
Reference in New Issue
Block a user