on xenial help sign in
Explanation about heightToClip
d22667eAlbert Astals
plugins/ListViewWithPageHeader/listviewwithpageheader.cpp+7
@@ -70,6 +70,13 @@
70 * that is used for the cases we need to show the sticky section item at
70 * that is used for the cases we need to show the sticky section item at
71 * the top of the view.
71 * the top of the view.
72 *
72 *
73+ * Each delegate item has a context property called heightToClip that is
74+ * used to communicate to the delegate implementation in case it has to
75+ * clip itself because of overlapping with the top sticky section item.
76+ * This is an implementation decision since it has been agreed it
77+ * is easier to implement the clipping in QML with this info than to
78+ * do it at the C++ level.
79+ *
73 * Note that minYExtent and height are not always totally accurate, since
80 * Note that minYExtent and height are not always totally accurate, since
74 * we don't have the items created we can't guess their heights
81 * we don't have the items created we can't guess their heights
75 * so we can only guarantee the values are correct when the first/last
82 * so we can only guarantee the values are correct when the first/last