diff options
Diffstat (limited to 'src/designer/src/lib/uilib/formbuilderextra_p.h')
-rw-r--r-- | src/designer/src/lib/uilib/formbuilderextra_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/designer/src/lib/uilib/formbuilderextra_p.h b/src/designer/src/lib/uilib/formbuilderextra_p.h index 3b46c966b..54fbfbe66 100644 --- a/src/designer/src/lib/uilib/formbuilderextra_p.h +++ b/src/designer/src/lib/uilib/formbuilderextra_p.h @@ -147,8 +147,8 @@ public: // --- Hash used in creating button groups on demand. Store a map of name and pair of dom group and real group void registerButtonGroups(const DomButtonGroups *groups); - typedef QPair<DomButtonGroup *, QButtonGroup*> ButtonGroupEntry; - typedef QHash<QString, ButtonGroupEntry> ButtonGroupHash; + using ButtonGroupEntry = QPair<DomButtonGroup *, QButtonGroup*>; + using ButtonGroupHash = QHash<QString, ButtonGroupEntry>; const ButtonGroupHash &buttonGroups() const { return m_buttonGroups; } ButtonGroupHash &buttonGroups() { return m_buttonGroups; } @@ -191,7 +191,7 @@ private: void clearResourceBuilder(); void clearTextBuilder(); - typedef QHash<QLabel*, QString> BuddyHash; + using BuddyHash = QHash<QLabel*, QString>; BuddyHash m_buddies; QHash<QString, CustomWidgetData> m_customWidgetDataHash; @@ -256,14 +256,14 @@ struct QDESIGNER_UILIB_EXPORT QFormBuilderStrings { const QString scriptWidgetVariable; const QString scriptChildWidgetsVariable; - typedef QPair<Qt::ItemDataRole, QString> RoleNName; + using RoleNName = QPair<Qt::ItemDataRole, QString>; QList<RoleNName> itemRoles; QHash<QString, Qt::ItemDataRole> treeItemRoleHash; // first.first is primary role, first.second is shadow role. // Shadow is used for either the translation source or the designer // representation of the string value. - typedef QPair<QPair<Qt::ItemDataRole, Qt::ItemDataRole>, QString> TextRoleNName; + using TextRoleNName = QPair<QPair<Qt::ItemDataRole, Qt::ItemDataRole>, QString>; QList<TextRoleNName> itemTextRoles; QHash<QString, QPair<Qt::ItemDataRole, Qt::ItemDataRole> > treeItemTextRoleHash; }; |