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:
Marc Mutz 2016-03-16 00:47:08 +01:00
parent e4cea305ed
commit 0e6ad27549
80 changed files with 151 additions and 1 deletions

View File

@ -396,4 +396,6 @@ void QErrorMessagePrivate::retranslateStrings()
QT_END_NAMESPACE
#include "moc_qerrormessage.cpp"
#endif // QT_NO_ERRORMESSAGE

View File

@ -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"

View File

@ -509,4 +509,6 @@ bool QSidebar::event(QEvent * event)
QT_END_NAMESPACE
#include "moc_qsidebar_p.cpp"
#endif

View File

@ -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

View File

@ -1330,4 +1330,6 @@ void QPixmapDropShadowFilter::draw(QPainter *p,
QT_END_NAMESPACE
#include "moc_qpixmapfilter_p.cpp"
#endif //QT_NO_GRAPHICSEFFECT

View File

@ -523,4 +523,7 @@ QSizeF QGraphicsAnchorLayout::sizeHint(Qt::SizeHint which, const QSizeF &constra
}
QT_END_NAMESPACE
#include "moc_qgraphicsanchorlayout.cpp"
#endif //QT_NO_GRAPHICSVIEW

View File

@ -588,4 +588,6 @@ void QGraphicsItemAnimation::afterAnimationStep(qreal step)
QT_END_NAMESPACE
#include "moc_qgraphicsitemanimation.cpp"
#endif // QT_NO_GRAPHICSVIEW

View File

@ -85,3 +85,4 @@
Add the \a item from the index.
*/
#include "moc_qgraphicsscenelinearindex_p.cpp"

View File

@ -2421,4 +2421,6 @@ void QGraphicsWidget::dumpFocusChain()
QT_END_NAMESPACE
#include "moc_qgraphicswidget.cpp"
#endif //QT_NO_GRAPHICSVIEW

View File

@ -183,4 +183,6 @@ originalXLocation(-1)
QT_END_NAMESPACE
#include "moc_qcolumnviewgrip_p.cpp"
#endif // QT_NO_QCOLUMNVIEW

View File

@ -606,4 +606,6 @@ QT_END_NAMESPACE
#include "qitemeditorfactory.moc"
#endif
#include "moc_qitemeditorfactory_p.cpp"
#endif // QT_NO_ITEMVIEWS

View File

@ -3291,4 +3291,6 @@ QSize QListView::viewportSizeHint() const
QT_END_NAMESPACE
#include "moc_qlistview.cpp"
#endif // QT_NO_LISTVIEW

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1348,3 +1348,5 @@ QVBoxLayout::~QVBoxLayout()
}
QT_END_NAMESPACE
#include "moc_qboxlayout.cpp"

View File

@ -268,3 +268,4 @@ void QDesktopWidget::resizeEvent(QResizeEvent *)
QT_END_NAMESPACE
#include "moc_qdesktopwidget.cpp"
#include "moc_qdesktopwidget_p.cpp"

View File

@ -2108,3 +2108,5 @@ void QFormLayout::dump() const
#endif
QT_END_NAMESPACE
#include "moc_qformlayout.cpp"

View File

@ -1686,3 +1686,5 @@ void QGridLayout::invalidate()
}
QT_END_NAMESPACE
#include "moc_qgridlayout.cpp"

View File

@ -1471,3 +1471,5 @@ QSize QLayout::closestAcceptableSize(const QWidget *widget, const QSize &size)
}
QT_END_NAMESPACE
#include "moc_qlayout.cpp"

View File

@ -1343,3 +1343,5 @@ bool QOpenGLWidget::event(QEvent *e)
}
QT_END_NAMESPACE
#include "moc_qopenglwidget.cpp"

View File

@ -652,3 +652,5 @@ bool QShortcut::event(QEvent *e)
#endif // QT_NO_SHORTCUT
QT_END_NAMESPACE
#include "moc_qshortcut.cpp"

View File

@ -506,3 +506,5 @@ QDebug operator<<(QDebug dbg, const QSizePolicy &p)
#endif
QT_END_NAMESPACE
#include "moc_qsizepolicy.cpp"

View File

@ -590,3 +590,5 @@ void QStackedLayout::setStackingMode(StackingMode stackingMode)
}
QT_END_NAMESPACE
#include "moc_qstackedlayout.cpp"

View File

@ -1625,3 +1625,5 @@ void QWidgetPrivate::repaint_sys(const QRegion &rgn)
QT_END_NAMESPACE
#include "moc_qwidgetbackingstore_p.cpp"

View File

@ -997,3 +997,5 @@ void QWidgetWindow::updateObjectName()
}
QT_END_NAMESPACE
#include "moc_qwidgetwindow_p.cpp"

View File

@ -397,3 +397,5 @@ void QWindowContainer::parentWasLowered(QWidget *parent)
}
QT_END_NAMESPACE
#include "moc_qwindowcontainer_p.cpp"

View File

@ -197,4 +197,6 @@ void QBasicKeyEventTransition::onTransition(QEvent *)
QT_END_NAMESPACE
#include "moc_qbasickeyeventtransition_p.cpp"
#endif //QT_NO_STATEMACHINE

View File

@ -202,4 +202,6 @@ void QBasicMouseEventTransition::onTransition(QEvent *)
QT_END_NAMESPACE
#include "moc_qbasicmouseeventtransition_p.cpp"
#endif //QT_NO_STATEMACHINE

View File

@ -168,4 +168,6 @@ void QKeyEventTransition::onTransition(QEvent *event)
QT_END_NAMESPACE
#include "moc_qkeyeventtransition.cpp"
#endif //QT_NO_STATEMACHINE

View File

@ -196,4 +196,6 @@ void QMouseEventTransition::onTransition(QEvent *event)
QT_END_NAMESPACE
#include "moc_qmouseeventtransition.cpp"
#endif //QT_NO_STATEMACHINE

View File

@ -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

View File

@ -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)

View File

@ -423,4 +423,6 @@ int QProxyStyle::layoutSpacing(QSizePolicy::ControlType control1,
QT_END_NAMESPACE
#include "moc_qproxystyle.cpp"
#endif // QT_NO_STYLE_PROXY

View File

@ -2407,3 +2407,5 @@ void QStyle::setProxy(QStyle *style)
}
QT_END_NAMESPACE
#include "moc_qstyle.cpp"

View File

@ -359,4 +359,6 @@ void QScrollbarStyleAnimation::updateCurrentTime(int time)
QT_END_NAMESPACE
#include "moc_qstyleanimation_p.cpp"
#endif //QT_NO_ANIMATION

View File

@ -99,3 +99,5 @@ QStylePlugin::~QStylePlugin()
}
QT_END_NAMESPACE
#include "moc_qstyleplugin.cpp"

View File

@ -2397,4 +2397,6 @@ QIcon QWindowsStyle::standardIcon(StandardPixmap standardIcon, const QStyleOptio
QT_END_NAMESPACE
#include "moc_qwindowsstyle_p.cpp"
#endif // QT_NO_STYLE_WINDOWS

View File

@ -1880,4 +1880,6 @@ QT_END_NAMESPACE
#include "moc_qcompleter.cpp"
#include "moc_qcompleter_p.cpp"
#endif // QT_NO_COMPLETER

View File

@ -704,4 +704,6 @@ void QFlickGestureRecognizer::reset(QGesture *state)
QT_END_NAMESPACE
#include "moc_qflickgesture_p.cpp"
#endif // QT_NO_GESTURES

View File

@ -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"

View File

@ -766,3 +766,4 @@ QT_END_NAMESPACE
#endif // QT_NO_SYSTEMTRAYICON
#include "moc_qsystemtrayicon.cpp"
#include "moc_qsystemtrayicon_p.cpp"

View File

@ -495,4 +495,6 @@ QAction *QUndoGroup::createRedoAction(QObject *parent, const QString &prefix) co
QT_END_NAMESPACE
#include "moc_qundogroup.cpp"
#endif // QT_NO_UNDOGROUP

View File

@ -1168,4 +1168,7 @@ bool QUndoStack::isActive() const
QT_END_NAMESPACE
#include "moc_qundostack.cpp"
#include "moc_qundostack_p.cpp"
#endif // QT_NO_UNDOSTACK

View File

@ -466,5 +466,6 @@ QIcon QUndoView::cleanIcon() const
QT_END_NAMESPACE
#include "qundoview.moc"
#include "moc_qundoview.cpp"
#endif // QT_NO_UNDOVIEW

View File

@ -1413,3 +1413,5 @@ void QAbstractButton::setIconSize(const QSize &size)
QT_END_NAMESPACE
#include "moc_qabstractbutton.cpp"

View File

@ -937,3 +937,5 @@ bool QAbstractSlider::event(QEvent *e)
}
QT_END_NAMESPACE
#include "moc_qabstractslider.cpp"

View File

@ -261,3 +261,4 @@
\sa setId()
*/
#include "moc_qbuttongroup.cpp"

View File

@ -387,3 +387,5 @@ bool QCheckBox::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qcheckbox.cpp"

View File

@ -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

View File

@ -407,3 +407,4 @@ QString QCommandLinkButton::description() const
QT_END_NAMESPACE
#include "moc_qcommandlinkbutton.cpp"

View File

@ -2686,5 +2686,6 @@ void QCalendarPopup::hideEvent(QHideEvent *)
QT_END_NAMESPACE
#include "moc_qdatetimeedit.cpp"
#include "moc_qdatetimeedit_p.cpp"
#endif // QT_NO_DATETIMEEDIT

View File

@ -481,4 +481,6 @@ bool QDial::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qdial.cpp"
#endif // QT_NO_DIAL

View File

@ -1676,5 +1676,6 @@ QT_END_NAMESPACE
#include "qdockwidget.moc"
#include "moc_qdockwidget.cpp"
#include "moc_qdockwidget_p.cpp"
#endif // QT_NO_DOCKWIDGET

View File

@ -333,3 +333,5 @@ bool QFocusFrame::event(QEvent *e)
}
QT_END_NAMESPACE
#include "moc_qfocusframe.cpp"

View File

@ -549,3 +549,5 @@ bool QFrame::event(QEvent *e)
}
QT_END_NAMESPACE
#include "moc_qframe.cpp"

View File

@ -318,3 +318,5 @@ void QKeySequenceEdit::timerEvent(QTimerEvent *e)
#endif // QT_NO_KEYSEQUENCEEDIT
QT_END_NAMESPACE
#include "moc_qkeysequenceedit.cpp"

View File

@ -1216,4 +1216,6 @@ bool QLCDNumber::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qlcdnumber.cpp"
#endif // QT_NO_LCDNUMBER

View File

@ -520,4 +520,6 @@ void QLineEditPrivate::removeAction(QAction *action)
QT_END_NAMESPACE
#include "moc_qlineedit_p.cpp"
#endif

View File

@ -1746,4 +1746,6 @@ QMenu *QMainWindow::createPopupMenu()
QT_END_NAMESPACE
#include "moc_qmainwindow.cpp"
#endif // QT_NO_MAINWINDOW

View File

@ -2590,4 +2590,6 @@ void QMainWindowLayout::timerEvent(QTimerEvent *e)
QT_END_NAMESPACE
#include "moc_qmainwindowlayout_p.cpp"
#endif // QT_NO_MAINWINDOW

View File

@ -623,4 +623,6 @@ QString QProgressBar::format() const
QT_END_NAMESPACE
#include "moc_qprogressbar.cpp"
#endif // QT_NO_PROGRESSBAR

View File

@ -266,3 +266,5 @@ bool QRadioButton::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qradiobutton.cpp"

View File

@ -327,4 +327,6 @@ bool QRubberBand::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qrubberband.cpp"
#endif // QT_NO_RUBBERBAND

View File

@ -532,4 +532,6 @@ Qt::Alignment QScrollArea::alignment() const
QT_END_NAMESPACE
#include "moc_qscrollarea.cpp"
#endif // QT_NO_SCROLLAREA

View File

@ -738,4 +738,6 @@ Q_WIDGETS_EXPORT QStyleOptionSlider qt_qscrollbarStyleOption(QScrollBar *scrollb
QT_END_NAMESPACE
#include "moc_qscrollbar.cpp"
#endif // QT_NO_SCROLLBAR

View File

@ -553,3 +553,5 @@ Q_WIDGETS_EXPORT QStyleOptionSlider qt_qsliderStyleOption(QSlider *slider)
#endif
QT_END_NAMESPACE
#include "moc_qslider.cpp"

View File

@ -1322,4 +1322,6 @@ bool QSpinBox::event(QEvent *event)
QT_END_NAMESPACE
#include "moc_qspinbox.cpp"
#endif // QT_NO_SPINBOX

View File

@ -352,4 +352,6 @@ bool QSplashScreen::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qsplashscreen.cpp"
#endif //QT_NO_SPLASHSCREEN

View File

@ -1733,4 +1733,6 @@ QTextStream& operator>>(QTextStream& ts, QSplitter& splitter)
QT_END_NAMESPACE
#include "moc_qsplitter.cpp"
#endif // QT_NO_SPLITTER

View File

@ -287,4 +287,6 @@ bool QStackedWidget::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qstackedwidget.cpp"
#endif // QT_NO_STACKEDWIDGET

View File

@ -783,4 +783,6 @@ bool QStatusBar::event(QEvent *e)
QT_END_NAMESPACE
#include "moc_qstatusbar.cpp"
#endif

View File

@ -2497,4 +2497,4 @@ QT_END_NAMESPACE
#endif // QT_NO_TABBAR
#include "moc_qtabbar_p.cpp"

View File

@ -81,4 +81,6 @@ QSize QToolBarExtension::sizeHint() const
QT_END_NAMESPACE
#include "moc_qtoolbarextension_p.cpp"
#endif // QT_NO_TOOLBUTTON

View File

@ -742,4 +742,6 @@ QToolBarItem *QToolBarLayout::createItem(QAction *action)
QT_END_NAMESPACE
#include "moc_qtoolbarlayout_p.cpp"
#endif // QT_NO_TOOLBAR

View File

@ -80,4 +80,6 @@ void QToolBarSeparator::paintEvent(QPaintEvent *)
QT_END_NAMESPACE
#include "moc_qtoolbarseparator_p.cpp"
#endif // QT_NO_TOOLBAR

View File

@ -114,3 +114,5 @@ bool QWidgetAnimator::animating() const
}
QT_END_NAMESPACE
#include "moc_qwidgetanimator_p.cpp"

View File

@ -1919,4 +1919,6 @@ bool QWidgetLineControl::isRedoAvailable() const
QT_END_NAMESPACE
#include "moc_qwidgetlinecontrol_p.cpp"
#endif

View File

@ -535,4 +535,6 @@ void QWidgetResizeHandler::doMove()
QT_END_NAMESPACE
#include "moc_qwidgetresizehandler_p.cpp"
#endif //QT_NO_RESIZEHANDLER

View File

@ -84,6 +84,7 @@ HEADERS += \
widgets/qplaintextedit_p.h
SOURCES += \
widgets/qbuttongroup.cpp \
widgets/qabstractbutton.cpp \
widgets/qabstractslider.cpp \
widgets/qabstractspinbox.cpp \