diff options
author | hjk <hjk121@nokiamail.com> | 2014-05-07 16:25:04 +0200 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2014-05-13 11:48:30 +0200 |
commit | 6e584b5b4953b996ef07c4625adf178c59de24f7 (patch) | |
tree | 2af702c76bf5323c331154b553aacbe5523592f5 /src/plugins/qmakeprojectmanager | |
parent | 226c1abc89888fa2f272d92c466725fd6dad65db (diff) | |
download | qt-creator-6e584b5b4953b996ef07c4625adf178c59de24f7.tar.gz |
DocumentModel: Make interface static
Move item model implementation to private, adjust user code.
Change-Id: Ifbe94e7c7b9b1e8be1b4c531958dbd7a9413af13
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/qmakeprojectmanager')
-rw-r--r-- | src/plugins/qmakeprojectmanager/qmakenodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmakeprojectmanager/qmakenodes.cpp b/src/plugins/qmakeprojectmanager/qmakenodes.cpp index 606c474450..7011ff819b 100644 --- a/src/plugins/qmakeprojectmanager/qmakenodes.cpp +++ b/src/plugins/qmakeprojectmanager/qmakenodes.cpp @@ -1083,7 +1083,7 @@ bool QmakePriFileNode::priFileWritable(const QString &path) bool QmakePriFileNode::saveModifiedEditors() { Core::IDocument *document - = Core::EditorManager::documentModel()->documentForFilePath(m_projectFilePath); + = Core::DocumentModel::documentForFilePath(m_projectFilePath); if (!document || !document->isModified()) return true; @@ -1250,7 +1250,7 @@ void QmakePriFileNode::save(const QStringList &lines) // We manually tell each editor to reload it's file. // (The .pro files are notified by the file system watcher.) QStringList errorStrings; - Core::IDocument *document = Core::EditorManager::documentModel()->documentForFilePath(m_projectFilePath); + Core::IDocument *document = Core::DocumentModel::documentForFilePath(m_projectFilePath); if (document) { QString errorString; if (!document->reload(&errorString, Core::IDocument::FlagReload, Core::IDocument::TypeContents)) |