summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2017-08-10 15:53:56 +0200
committerNico Vertriest <nico.vertriest@qt.io>2017-08-11 12:41:41 +0000
commit7fcece168ebe2ab2ea8a8d28eadcf3206803e351 (patch)
tree3a26c6176c0b6aec0199094f633823acad7af16d
parentaa4381e74c9c5db200c6920dd774c97cbffb493b (diff)
Doc: add doc to undocumented methods
- qtext2dentity.cpp - qabstractphysicaldevice.cpp Change-Id: I026ac031c366c979e17667c3635c1a391a5bba8a Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
-rw-r--r--src/extras/text/qtext2dentity.cpp19
-rw-r--r--src/input/frontend/qabstractphysicaldevice.cpp3
2 files changed, 22 insertions, 0 deletions
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);