From 929ea503938dd1a7b2873b87fd6bb239e2349f3c Mon Sep 17 00:00:00 2001 From: Martin Smith Date: Thu, 16 Mar 2017 10:29:51 +0100 Subject: [PATCH] doc: Document remaining anonymous enums MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change adds qdoc comments for the remaining nameless enum types. Change-Id: I4da8b67883c8020323437cf74c938d3655d8c384 Reviewed-by: Topi Reiniƶ --- src/corelib/kernel/qcoreapplication.cpp | 6 ++++++ src/dbus/qdbuspendingreply.cpp | 6 ++++++ src/gui/kernel/qevent.cpp | 7 +++++++ src/widgets/graphicsview/qgraphicsproxywidget.cpp | 8 ++++++++ src/widgets/graphicsview/qgraphicswidget.cpp | 8 ++++++++ 5 files changed, 35 insertions(+) diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index a3342ecd5f..0ba841bd30 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -781,6 +781,12 @@ QCoreApplication::QCoreApplication(int &argc, char **argv #endif } +/*! + \enum QCoreApplication::anonymous + \internal + + \value ApplicationFlags QT_VERSION +*/ void QCoreApplicationPrivate::init() { diff --git a/src/dbus/qdbuspendingreply.cpp b/src/dbus/qdbuspendingreply.cpp index f1489ed720..ac121038ab 100644 --- a/src/dbus/qdbuspendingreply.cpp +++ b/src/dbus/qdbuspendingreply.cpp @@ -164,6 +164,12 @@ \sa isFinished() */ +/*! + \enum QDBusPendingReply::anonymous + + \value Count The number of arguments the reply is expected to have + */ + /*! \fn int QDBusPendingReply::count() const diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index 916b13df44..d2485b08b6 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -693,6 +693,13 @@ QHoverEvent::~QHoverEvent() \sa QMouseEvent, QWidget::grabMouse() */ +/*! + \enum QWheelEvent::anonymous + \internal + + \value DefaultDeltasPerStep Defaqult deltas per step +*/ + /*! \fn Qt::MouseButtons QWheelEvent::buttons() const diff --git a/src/widgets/graphicsview/qgraphicsproxywidget.cpp b/src/widgets/graphicsview/qgraphicsproxywidget.cpp index 94ce102a68..442f08325d 100644 --- a/src/widgets/graphicsview/qgraphicsproxywidget.cpp +++ b/src/widgets/graphicsview/qgraphicsproxywidget.cpp @@ -1536,6 +1536,14 @@ void QGraphicsProxyWidget::paint(QPainter *painter, const QStyleOptionGraphicsIt d->widget->render(painter, exposedWidgetRect.topLeft(), exposedWidgetRect); } +/*! + \enum QGraphicsProxyWidget::anonymous + + The value returned by the virtual type() function. + + \value Type A graphics proxy widget +*/ + /*! \reimp */ diff --git a/src/widgets/graphicsview/qgraphicswidget.cpp b/src/widgets/graphicsview/qgraphicswidget.cpp index 4108dd803a..a4534c73dd 100644 --- a/src/widgets/graphicsview/qgraphicswidget.cpp +++ b/src/widgets/graphicsview/qgraphicswidget.cpp @@ -2227,6 +2227,14 @@ bool QGraphicsWidget::testAttribute(Qt::WidgetAttribute attribute) const return d->testAttribute(attribute); } +/*! + \enum QGraphicsWidget::anonymous + + The value returned by the virtual type() function. + + \value Type A graphics widget item +*/ + /*! \reimp */