• Thomas Hartmann's avatar
    QmlDesigner.DesignDocument: Fixing getActiveQtVersion() · 8d6e3d22
    Thomas Hartmann authored
    The function currentProject() returns the current project based
    on the current project node.
    If the current document was newly created by a wizard, this did not work.
    We use SessionManager::projectForFile() as a fallback.
    For Qt Creator 3.2 we plan to unify this functionality with die Qml
    code model.
    Change-Id: I296224671a0b496fbf6fd0d8e62e74c28b4f9abb
    Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
designdocument.cpp 21.6 KB