aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickmenu_p_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-21 13:21:26 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2016-01-21 13:40:37 +0000
commit0cf2f3f63472540e45f08e6c61d1662a5ec3f218 (patch)
tree6ce7cf7d27b608fd5891c1cb0821135f88f82d7d /src/templates/qquickmenu_p_p.h
parent2ab54620888f35ba4820b68d6e3f2b4596ff8044 (diff)
Menu: resize menu items to the width of the menu
...unless they have explicit width set. Change-Id: I4c3a1f550bd14fa171b693c819a05abab77dbe1a Task-number: QTBUG-50572 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/templates/qquickmenu_p_p.h')
-rw-r--r--src/templates/qquickmenu_p_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/templates/qquickmenu_p_p.h b/src/templates/qquickmenu_p_p.h
index 6ef382c9..e4bdebed 100644
--- a/src/templates/qquickmenu_p_p.h
+++ b/src/templates/qquickmenu_p_p.h
@@ -69,10 +69,14 @@ public:
void moveItem(int from, int to);
void removeItem(int index, QQuickItem *item);
+ void resizeItem(QQuickItem *item);
+ void resizeItems();
+
void itemChildAdded(QQuickItem *item, QQuickItem *child) Q_DECL_OVERRIDE;
void itemSiblingOrderChanged(QQuickItem *item) Q_DECL_OVERRIDE;
void itemParentChanged(QQuickItem *item, QQuickItem *parent) Q_DECL_OVERRIDE;
void itemDestroyed(QQuickItem *item) Q_DECL_OVERRIDE;
+ void itemGeometryChanged(QQuickItem *, const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
void onContentItemChanged();
void onItemPressed();