diff --git a/src/plugins/coreplugin/editormanager/editormanager.h b/src/plugins/coreplugin/editormanager/editormanager.h index 9fd783de8b2f6580f807c1567677f7104df1b95d..44df9294cbdc2a3c2563e48c8e389cfe17882fab 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.h +++ b/src/plugins/coreplugin/editormanager/editormanager.h @@ -244,10 +244,14 @@ private: friend class Core::Internal::EditorView; }; -Q_DECLARE_OPERATORS_FOR_FLAGS(EditorManager::OpenEditorFlags); +} // namespace Core + +Q_DECLARE_OPERATORS_FOR_FLAGS(Core::EditorManager::OpenEditorFlags); + //===================EditorClosingCoreListener====================== +namespace Core { namespace Internal { class EditorClosingCoreListener : public ICoreListener diff --git a/src/plugins/coreplugin/editormanager/openeditorsview.cpp b/src/plugins/coreplugin/editormanager/openeditorsview.cpp index 6a15c77b771fcd08fdd293bec2fd66f3398327c3..4ef00b5934140c3d164f8965a7ff0c6d90880655 100644 --- a/src/plugins/coreplugin/editormanager/openeditorsview.cpp +++ b/src/plugins/coreplugin/editormanager/openeditorsview.cpp @@ -83,7 +83,7 @@ void OpenEditorsDelegate::paint(QPainter *painter, const QStyleOptionViewItem &o option.rect.height(), option.rect.height()); - icon.paint(painter, iconRect, Qt::Alignment(Qt::AlignRight | Qt::AlignVCenter)); + icon.paint(painter, iconRect, Qt::AlignRight | Qt::AlignVCenter); } }