diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2011-11-02 19:38:10 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-09 11:35:36 +0100 |
commit | f9aa0fb422ebc6a5a5b1416269eda471887a2c90 (patch) | |
tree | c7736d5344bb87306b770dcb25dd1975d6044d4c | |
parent | 7c786616af4ae83a9ee21de23274c8cf27c59c09 (diff) | |
download | qttools-f9aa0fb422ebc6a5a5b1416269eda471887a2c90.tar.gz |
Replace Q_TYPENAME by typename
Q_TYPENAME is being removed.
Change-Id: I4b4b34dbf87e3f2f3a604d4370d1c0e55e1553c5
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
4 files changed, 13 insertions, 13 deletions
diff --git a/src/designer/src/components/propertyeditor/designerpropertymanager.cpp b/src/designer/src/components/propertyeditor/designerpropertymanager.cpp index 57cf60047..391ecb06e 100644 --- a/src/designer/src/components/propertyeditor/designerpropertymanager.cpp +++ b/src/designer/src/components/propertyeditor/designerpropertymanager.cpp @@ -2292,7 +2292,7 @@ void DesignerEditorFactory::disconnectPropertyManager(QtVariantPropertyManager * template <class EditorContainer, class Editor, class SetterParameter, class Value> static inline void applyToEditors(const EditorContainer &list, void (Editor::*setter)(SetterParameter), const Value &value) { - typedef Q_TYPENAME EditorContainer::const_iterator ListIterator; + typedef typename EditorContainer::const_iterator ListIterator; if (list.empty()) { return; } diff --git a/src/designer/src/lib/shared/qdesigner_utils_p.h b/src/designer/src/lib/shared/qdesigner_utils_p.h index 96ad21a72..b902f63b5 100644 --- a/src/designer/src/lib/shared/qdesigner_utils_p.h +++ b/src/designer/src/lib/shared/qdesigner_utils_p.h @@ -151,7 +151,7 @@ IntType MetaEnum<IntType>::keyToValue(QString key, bool *ok) const { if (!m_scope.isEmpty() && key.startsWith(m_scope)) key.remove(0, m_scope.size() + m_separator.size()); - const Q_TYPENAME KeyToValueMap::const_iterator it = m_keyToValueMap.find(key); + const typename KeyToValueMap::const_iterator it = m_keyToValueMap.find(key); const bool found = it != m_keyToValueMap.constEnd(); if (ok) *ok = found; diff --git a/src/shared/qtpropertybrowser/qteditorfactory.cpp b/src/shared/qtpropertybrowser/qteditorfactory.cpp index 7516884be..6c7909d04 100644 --- a/src/shared/qtpropertybrowser/qteditorfactory.cpp +++ b/src/shared/qtpropertybrowser/qteditorfactory.cpp @@ -107,7 +107,7 @@ Editor *EditorFactoryPrivate<Editor>::createEditor(QtProperty *property, QWidget template <class Editor> void EditorFactoryPrivate<Editor>::initializeEditor(QtProperty *property, Editor *editor) { - Q_TYPENAME PropertyToEditorListMap::iterator it = m_createdEditors.find(property); + typename PropertyToEditorListMap::iterator it = m_createdEditors.find(property); if (it == m_createdEditors.end()) it = m_createdEditors.insert(property, EditorList()); it.value().append(editor); @@ -117,12 +117,12 @@ void EditorFactoryPrivate<Editor>::initializeEditor(QtProperty *property, Editor template <class Editor> void EditorFactoryPrivate<Editor>::slotEditorDestroyed(QObject *object) { - const Q_TYPENAME EditorToPropertyMap::iterator ecend = m_editorToProperty.end(); - for (Q_TYPENAME EditorToPropertyMap::iterator itEditor = m_editorToProperty.begin(); itEditor != ecend; ++itEditor) { + const typename EditorToPropertyMap::iterator ecend = m_editorToProperty.end(); + for (typename EditorToPropertyMap::iterator itEditor = m_editorToProperty.begin(); itEditor != ecend; ++itEditor) { if (itEditor.key() == object) { Editor *editor = itEditor.key(); QtProperty *property = itEditor.value(); - const Q_TYPENAME PropertyToEditorListMap::iterator pit = m_createdEditors.find(property); + const typename PropertyToEditorListMap::iterator pit = m_createdEditors.find(property); if (pit != m_createdEditors.end()) { pit.value().removeAll(editor); if (pit.value().empty()) diff --git a/src/shared/qtpropertybrowser/qtpropertymanager.cpp b/src/shared/qtpropertybrowser/qtpropertymanager.cpp index e07a0a00e..b911e1296 100644 --- a/src/shared/qtpropertybrowser/qtpropertymanager.cpp +++ b/src/shared/qtpropertybrowser/qtpropertymanager.cpp @@ -190,7 +190,7 @@ static Value getData(const QMap<const QtProperty *, PrivateData> &propertyMap, const QtProperty *property, const Value &defaultValue = Value()) { typedef QMap<const QtProperty *, PrivateData> PropertyToData; - typedef Q_TYPENAME PropertyToData::const_iterator PropertyToDataConstIterator; + typedef typename PropertyToData::const_iterator PropertyToDataConstIterator; const PropertyToDataConstIterator it = propertyMap.constFind(property); if (it == propertyMap.constEnd()) return defaultValue; @@ -226,7 +226,7 @@ static void setSimpleValue(QMap<const QtProperty *, Value> &propertyMap, QtProperty *property, const Value &val) { typedef QMap<const QtProperty *, Value> PropertyToData; - typedef Q_TYPENAME PropertyToData::iterator PropertyToDataIterator; + typedef typename PropertyToData::iterator PropertyToDataIterator; const PropertyToDataIterator it = propertyMap.find(property); if (it == propertyMap.end()) return; @@ -247,9 +247,9 @@ static void setValueInRange(PropertyManager *manager, PropertyManagerPrivate *ma QtProperty *property, const Value &val, void (PropertyManagerPrivate::*setSubPropertyValue)(QtProperty *, ValueChangeParameter)) { - typedef Q_TYPENAME PropertyManagerPrivate::Data PrivateData; + typedef typename PropertyManagerPrivate::Data PrivateData; typedef QMap<const QtProperty *, PrivateData> PropertyToData; - typedef Q_TYPENAME PropertyToData::iterator PropertyToDataIterator; + typedef typename PropertyToData::iterator PropertyToDataIterator; const PropertyToDataIterator it = managerPrivate->m_values.find(property); if (it == managerPrivate->m_values.end()) return; @@ -282,9 +282,9 @@ static void setBorderValues(PropertyManager *manager, PropertyManagerPrivate *ma void (PropertyManagerPrivate::*setSubPropertyRange)(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter)) { - typedef Q_TYPENAME PropertyManagerPrivate::Data PrivateData; + typedef typename PropertyManagerPrivate::Data PrivateData; typedef QMap<const QtProperty *, PrivateData> PropertyToData; - typedef Q_TYPENAME PropertyToData::iterator PropertyToDataIterator; + typedef typename PropertyToData::iterator PropertyToDataIterator; const PropertyToDataIterator it = managerPrivate->m_values.find(property); if (it == managerPrivate->m_values.end()) return; @@ -327,7 +327,7 @@ static void setBorderValue(PropertyManager *manager, PropertyManagerPrivate *man ValueChangeParameter, ValueChangeParameter, ValueChangeParameter)) { typedef QMap<const QtProperty *, PrivateData> PropertyToData; - typedef Q_TYPENAME PropertyToData::iterator PropertyToDataIterator; + typedef typename PropertyToData::iterator PropertyToDataIterator; const PropertyToDataIterator it = managerPrivate->m_values.find(property); if (it == managerPrivate->m_values.end()) return; |