forked from qt-creator/qt-creator
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -165,7 +165,7 @@ QString QmlProjectRunConfiguration::viewerArguments() const
|
||||
|
||||
QString QmlProjectRunConfiguration::workingDirectory() const
|
||||
{
|
||||
QFileInfo projectFile(qmlTarget()->qmlProject()->file()->fileName());
|
||||
QFileInfo projectFile(qmlTarget()->qmlProject()->document()->fileName());
|
||||
return canonicalCapsPath(projectFile.absolutePath());
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@ bool QmlProjectRunConfiguration::fromMap(const QVariantMap &map)
|
||||
void QmlProjectRunConfiguration::changeCurrentFile(Core::IEditor *editor)
|
||||
{
|
||||
if (editor) {
|
||||
m_currentFileFilename = editor->file()->fileName();
|
||||
m_currentFileFilename = editor->document()->fileName();
|
||||
}
|
||||
updateEnabled();
|
||||
}
|
||||
@@ -333,7 +333,7 @@ void QmlProjectRunConfiguration::updateEnabled()
|
||||
Core::IEditor *editor = Core::EditorManager::instance()->currentEditor();
|
||||
Core::MimeDatabase *db = ICore::mimeDatabase();
|
||||
if (editor) {
|
||||
m_currentFileFilename = editor->file()->fileName();
|
||||
m_currentFileFilename = editor->document()->fileName();
|
||||
if (db->findByFile(mainScript()).type() == QLatin1String("application/x-qml"))
|
||||
qmlFileFound = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user