diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-06-12 10:00:50 +0300 |
---|---|---|
committer | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2017-06-12 10:01:16 +0300 |
commit | 6b0e1bc5f805071da37e36807da6d5c6cffc39d2 (patch) | |
tree | 2356ed170b92d2472026414a632ee91296d80f38 /src | |
parent | 1d921ae0444f8fa9cf0ef7a26f342001112f243f (diff) | |
parent | 98c35d6cd9fea6b5f28316b8fc5e1ac9b1efd321 (diff) | |
download | qt-creator-6b0e1bc5f805071da37e36807da6d5c6cffc39d2.tar.gz |
Merge remote-tracking branch 'origin/4.3' into master
Change-Id: I83af635dcac98e4fd78b21d8dd9dc3a27a4fdf94
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/baremetal/gdbserverprovidermanager.cpp | 2 | ||||
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 2 | ||||
-rw-r--r-- | src/plugins/git/gerrit/gerritplugin.cpp | 2 | ||||
-rw-r--r-- | src/plugins/help/localhelpmanager.cpp | 2 | ||||
-rw-r--r-- | src/plugins/projectexplorer/abstractmsvctoolchain.cpp | 3 | ||||
-rw-r--r-- | src/plugins/qbsprojectmanager/qbsprojectmanager.cpp | 2 | ||||
-rw-r--r-- | src/plugins/qmljstools/qmljsmodelmanager.cpp | 1 | ||||
-rw-r--r-- | src/plugins/texteditor/codeassist/codeassistant.cpp | 4 | ||||
m--------- | src/shared/qbs | 0 |
9 files changed, 12 insertions, 6 deletions
diff --git a/src/plugins/baremetal/gdbserverprovidermanager.cpp b/src/plugins/baremetal/gdbserverprovidermanager.cpp index 6085a51322..84af4b5c3f 100644 --- a/src/plugins/baremetal/gdbserverprovidermanager.cpp +++ b/src/plugins/baremetal/gdbserverprovidermanager.cpp @@ -161,7 +161,7 @@ QList<GdbServerProviderFactory *> GdbServerProviderManager::factories() GdbServerProvider *GdbServerProviderManager::findProvider(const QString &id) { - if (id.isEmpty()) + if (id.isEmpty() || !m_instance) return 0; return Utils::findOrDefault(m_instance->m_providers, Utils::equal(&GdbServerProvider::id, id)); diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 2a46f95eff..32aaa3bbc0 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -2278,7 +2278,7 @@ void WatchModel::showEditValue(const WatchItem *item) str = QString::fromUtf8(ba.constData(), ba.size()); else if (format == DisplayUtf16String) str = QString::fromUtf16((ushort *)ba.constData(), ba.size() / 2); - else if (format == DisplayUtf16String) + else if (format == DisplayUcs4String) str = QString::fromUcs4((uint *)ba.constData(), ba.size() / 4); m_separatedView->prepareObject<TextEdit>(item)->setPlainText(str); } else if (format == DisplayPlotData) { diff --git a/src/plugins/git/gerrit/gerritplugin.cpp b/src/plugins/git/gerrit/gerritplugin.cpp index cedcf002d7..4c5aad27fb 100644 --- a/src/plugins/git/gerrit/gerritplugin.cpp +++ b/src/plugins/git/gerrit/gerritplugin.cpp @@ -302,7 +302,7 @@ void GerritPlugin::updateActions(const VcsBase::VcsBasePluginState &state) const bool hasTopLevel = state.hasTopLevel(); m_gerritCommand->action()->setEnabled(hasTopLevel); m_pushToGerritCommand->action()->setEnabled(hasTopLevel); - if (m_dialog) + if (m_dialog && m_dialog->isVisible()) m_dialog->setCurrentPath(state.topLevel()); } diff --git a/src/plugins/help/localhelpmanager.cpp b/src/plugins/help/localhelpmanager.cpp index 5289209492..5e13d10b3e 100644 --- a/src/plugins/help/localhelpmanager.cpp +++ b/src/plugins/help/localhelpmanager.cpp @@ -266,7 +266,7 @@ QList<float> LocalHelpManager::lastShownPagesZoom() void LocalHelpManager::setLastShownPagesZoom(const QList<qreal> &zoom) { const QStringList stringValues = Utils::transform(zoom, - [](float z) { return QString::number(z); }); + [](qreal z) { return QString::number(z); }); Core::ICore::settings()->setValue(kLastShownPagesZoomKey, stringValues.join(Constants::ListSeparator)); } diff --git a/src/plugins/projectexplorer/abstractmsvctoolchain.cpp b/src/plugins/projectexplorer/abstractmsvctoolchain.cpp index c9ecff28a9..386fc33e19 100644 --- a/src/plugins/projectexplorer/abstractmsvctoolchain.cpp +++ b/src/plugins/projectexplorer/abstractmsvctoolchain.cpp @@ -251,7 +251,8 @@ Utils::FileName AbstractMsvcToolChain::compilerCommand() const Utils::FileName clexe = env.searchInPath(QLatin1String("cl.exe"), QStringList(), [](const QString &name) { QDir dir(QDir::cleanPath(QFileInfo(name).absolutePath() + QStringLiteral("/.."))); do { - if (QFile::exists(dir.absoluteFilePath(QStringLiteral("vcvarsall.bat")))) + if (QFile::exists(dir.absoluteFilePath(QStringLiteral("vcvarsall.bat"))) + || QFile::exists(dir.absolutePath() + "/Auxiliary/Build/vcvarsall.bat")) return true; } while (dir.cdUp() && !dir.isRoot()); return false; diff --git a/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp b/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp index e9eff1f483..2fed0160d7 100644 --- a/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp +++ b/src/plugins/qbsprojectmanager/qbsprojectmanager.cpp @@ -180,6 +180,8 @@ void QbsManager::addQtProfileFromKit(const QString &profileName, const ProjectEx if (qtEnv.qtConfigItems.contains(buildVariant)) qtEnv.buildVariant << buildVariant; } + qtEnv.qmlPath = qt->qmakeProperty("QT_INSTALL_QML"); + qtEnv.qmlImportPath = qt->qmakeProperty("QT_INSTALL_IMPORTS"); const qbs::ErrorInfo errorInfo = qbs::setupQtProfile(profileName, settings(), qtEnv); if (errorInfo.hasError()) { Core::MessageManager::write(tr("Failed to set up kit for Qbs: %1") diff --git a/src/plugins/qmljstools/qmljsmodelmanager.cpp b/src/plugins/qmljstools/qmljsmodelmanager.cpp index 4b21b6d4a1..60f7566713 100644 --- a/src/plugins/qmljstools/qmljsmodelmanager.cpp +++ b/src/plugins/qmljstools/qmljsmodelmanager.cpp @@ -77,6 +77,7 @@ ModelManagerInterface::ProjectInfo ModelManager::defaultProjectInfoForProject( Project *project) const { ModelManagerInterface::ProjectInfo projectInfo(project); + projectInfo.qmlDumpEnvironment = Utils::Environment::systemEnvironment(); Target *activeTarget = nullptr; if (project) { const QSet<QString> qmlTypeNames = { Constants::QML_MIMETYPE ,Constants::QBS_MIMETYPE, diff --git a/src/plugins/texteditor/codeassist/codeassistant.cpp b/src/plugins/texteditor/codeassist/codeassistant.cpp index 98c2d24168..fafc401cb9 100644 --- a/src/plugins/texteditor/codeassist/codeassistant.cpp +++ b/src/plugins/texteditor/codeassist/codeassistant.cpp @@ -285,6 +285,8 @@ void CodeAssistantPrivate::displayProposal(IAssistProposal *newProposal, AssistR if (!newProposal) return; + // TODO: The proposal should own the model until someone takes it explicitly away. + QScopedPointer<IAssistProposalModel> proposalCandidateModel(newProposal->model()); QScopedPointer<IAssistProposal> proposalCandidate(newProposal); bool destroyCurrentContext = false; @@ -336,7 +338,7 @@ void CodeAssistantPrivate::displayProposal(IAssistProposal *newProposal, AssistR m_proposalWidget->setReason(reason); m_proposalWidget->setKind(m_assistKind); m_proposalWidget->setUnderlyingWidget(m_editorWidget); - m_proposalWidget->setModel(m_proposal->model()); + m_proposalWidget->setModel(proposalCandidateModel.take()); m_proposalWidget->setDisplayRect(m_editorWidget->cursorRect(basePosition)); m_proposalWidget->setIsSynchronized(!m_receivedContentWhileWaiting); m_proposalWidget->showProposal(prefix); diff --git a/src/shared/qbs b/src/shared/qbs -Subproject 7687d8a145d1b00f855b306f9f364830f8dec8c +Subproject 7ccc08f33153cd3093081567ac653e371759d69 |