32 Q_DECLARE_PUBLIC(QQuickMenuItemIconLabel)
35 ~QQuickMenuItemIconLabelPrivate() override;
37 bool hasShortcut()
const;
38#if QT_CONFIG(shortcut)
39 QKeySequence shortcut()
const;
41 bool createShortcutLabel();
42 bool updateShortcutLabel();
43 void syncShortcutLabel();
44 bool destroyShortcutLabel();
45 void updateOrSyncShortcutLabel();
47 void updateImplicitSize() override;
48 void layout() override;
49 void itemDestroyed(QQuickItem *item) override;
51 void textChange() override;
52 void displayChange() override;
54 QQuickMenuItem *menuItem =
nullptr;
55 QQuickText *shortcutLabel =
nullptr;