Changeset View
Changeset View
Standalone View
Standalone View
src/mnemonicattached.h
Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | 124 | private: | |||
---|---|---|---|---|---|
149 | int m_baseWeight = 0; | 149 | int m_baseWeight = 0; | ||
150 | ControlType m_controlType = SecondaryControl; | 150 | ControlType m_controlType = SecondaryControl; | ||
151 | QMap<int, QChar> m_weights; | 151 | QMap<int, QChar> m_weights; | ||
152 | 152 | | |||
153 | QString m_label; | 153 | QString m_label; | ||
154 | QString m_actualRichTextLabel; | 154 | QString m_actualRichTextLabel; | ||
155 | QString m_richTextLabel; | 155 | QString m_richTextLabel; | ||
156 | QString m_mnemonicLabel; | 156 | QString m_mnemonicLabel; | ||
157 | QKeySequence m_sequence; | ||||
157 | bool m_enabled = true; | 158 | bool m_enabled = true; | ||
158 | 159 | | |||
159 | QPointer<QQuickWindow> m_window; | 160 | QPointer<QQuickWindow> m_window; | ||
160 | 161 | | |||
161 | //global mapping of mnemonics | 162 | //global mapping of mnemonics | ||
162 | //TODO: map by QWindow | 163 | //TODO: map by QWindow | ||
163 | static QHash<QKeySequence, MnemonicAttached *> s_sequenceToObject; | 164 | static QHash<QKeySequence, MnemonicAttached *> s_sequenceToObject; | ||
164 | static QHash<MnemonicAttached *, QKeySequence> s_objectToSequence; | | |||
165 | }; | 165 | }; | ||
166 | 166 | | |||
167 | QML_DECLARE_TYPEINFO(MnemonicAttached, QML_HAS_ATTACHED_PROPERTIES) | 167 | QML_DECLARE_TYPEINFO(MnemonicAttached, QML_HAS_ATTACHED_PROPERTIES) | ||
168 | 168 | | |||
169 | #endif // MnemonicATTACHED_H | 169 | #endif // MnemonicATTACHED_H |