aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickimplicitsizeitem.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2016-07-10 01:15:38 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-07-13 19:08:58 +0000
commit8dc7cb73ffdcd50fbbe2a1bc74a06b79092db4d8 (patch)
treeac4623b41413d30cf70d360723581f6997beff63 /src/quick/items/qquickimplicitsizeitem.cpp
parentcfe4e8b8dc994ed84d4bbb6c52ae1b33336bc3d9 (diff)
QQuickImplicitSizeItem: Document the purpose of this class
I only just figured this out myself after staring at it for a few minutes, so save someone else wandering down this path the trouble. Change-Id: I17cd26b78c678ca2993e6936ca3359eb1eb49c80 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/quick/items/qquickimplicitsizeitem.cpp')
-rw-r--r--src/quick/items/qquickimplicitsizeitem.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/quick/items/qquickimplicitsizeitem.cpp b/src/quick/items/qquickimplicitsizeitem.cpp
index 5dadf81ce4..08886329fd 100644
--- a/src/quick/items/qquickimplicitsizeitem.cpp
+++ b/src/quick/items/qquickimplicitsizeitem.cpp
@@ -42,6 +42,19 @@
QT_BEGIN_NAMESPACE
+/*!
+ \internal
+
+ The purpose of QQuickImplicitSizeItem is not immediately clear, as both
+ the implicit size properties and signals exist on QQuickItem. However,
+ for some items - where the implicit size has an underlying meaning (such as
+ Image, where the implicit size represents the real size of the image)
+ having implicit size writable is an undesirable thing.
+
+ QQuickImplicitSizeItem redefines the properties as being readonly.
+ Unfortunately, this also means they need to redefine the change signals.
+ See QTBUG-30258 for more information.
+*/
void QQuickImplicitSizeItemPrivate::implicitWidthChanged()
{
Q_Q(QQuickImplicitSizeItem);