diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-21 13:21:26 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-01-21 13:40:37 +0000 |
commit | 0cf2f3f63472540e45f08e6c61d1662a5ec3f218 (patch) | |
tree | 6ce7cf7d27b608fd5891c1cb0821135f88f82d7d /src/templates/qquickmenu_p.h | |
parent | 2ab54620888f35ba4820b68d6e3f2b4596ff8044 (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.h')
-rw-r--r-- | src/templates/qquickmenu_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/templates/qquickmenu_p.h b/src/templates/qquickmenu_p.h index 78d27556..70c57155 100644 --- a/src/templates/qquickmenu_p.h +++ b/src/templates/qquickmenu_p.h @@ -82,6 +82,7 @@ public: void setTitle(QString &title); protected: + void componentComplete() Q_DECL_OVERRIDE; bool eventFilter(QObject *object, QEvent *event) Q_DECL_OVERRIDE; Q_SIGNALS: |