From 7fcece168ebe2ab2ea8a8d28eadcf3206803e351 Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Thu, 10 Aug 2017 15:53:56 +0200 Subject: Doc: add doc to undocumented methods - qtext2dentity.cpp - qabstractphysicaldevice.cpp Change-Id: I026ac031c366c979e17667c3635c1a391a5bba8a Reviewed-by: Venugopal Shivashankar --- src/extras/text/qtext2dentity.cpp | 19 +++++++++++++++++++ src/input/frontend/qabstractphysicaldevice.cpp | 3 +++ 2 files changed, 22 insertions(+) diff --git a/src/extras/text/qtext2dentity.cpp b/src/extras/text/qtext2dentity.cpp index 1dfd171cd..10939a1e2 100644 --- a/src/extras/text/qtext2dentity.cpp +++ b/src/extras/text/qtext2dentity.cpp @@ -284,6 +284,10 @@ void QText2DEntityPrivate::update() setCurrentGlyphRuns(glyphRuns); } +/*! + Returns the font for the text item that is displayed + in the Qt Quick scene. +*/ QFont QText2DEntity::font() const { Q_D(const QText2DEntity); @@ -308,6 +312,10 @@ void QText2DEntity::setFont(const QFont &font) } } +/*! + Returns the color for the text item that is displayed in the Qt + Quick scene. +*/ QColor QText2DEntity::color() const { Q_D(const QText2DEntity); @@ -327,6 +335,9 @@ void QText2DEntity::setColor(const QColor &color) } } +/*! + Returns the text that is displayed in the Qt Quick scene. +*/ QString QText2DEntity::text() const { Q_D(const QText2DEntity); @@ -344,12 +355,20 @@ void QText2DEntity::setText(const QString &text) } } +/*! + Returns the width of the text item that is displayed in the + Qt Quick scene. +*/ float QText2DEntity::width() const { Q_D(const QText2DEntity); return d->m_width; } +/*! + Returns the width of the text item that is displayed in the + Qt Quick scene. +*/ float QText2DEntity::height() const { Q_D(const QText2DEntity); diff --git a/src/input/frontend/qabstractphysicaldevice.cpp b/src/input/frontend/qabstractphysicaldevice.cpp index 8a0e81e0c..dc54228d4 100644 --- a/src/input/frontend/qabstractphysicaldevice.cpp +++ b/src/input/frontend/qabstractphysicaldevice.cpp @@ -228,6 +228,9 @@ void QAbstractPhysicalDevicePrivate::postButtonEvent(int button, qreal value) notifyObservers(change); } +/*! + \internal +*/ Qt3DCore::QNodeCreatedChangeBasePtr QAbstractPhysicalDevice::createNodeCreationChange() const { auto creationChange = QPhysicalDeviceCreatedChangeBasePtr::create(this); -- cgit v1.2.3