28 Q_DECLARE_PUBLIC(QQuickMenuItemIconLabel)
31 ~QQuickMenuItemIconLabelPrivate() override;
33 bool hasShortcut()
const;
34 QKeySequence shortcut()
const;
35 bool createShortcutLabel();
36 bool updateShortcutLabel();
37 void syncShortcutLabel();
38 bool destroyShortcutLabel();
39 void updateOrSyncShortcutLabel();
41 void updateImplicitSize() override;
42 void layout() override;
43 void itemDestroyed(QQuickItem *item) override;
45 void textChange() override;
46 void displayChange() override;
48 QQuickMenuItem *menuItem =
nullptr;
49 QQuickText *shortcutLabel =
nullptr;