forked from qt-creator/qt-creator
Merge "Merge remote-tracking branch 'origin/7.0'"
This commit is contained in:
@@ -1101,7 +1101,7 @@ static CommandLine defaultInitialCMakeCommand(const Kit *k, const QString buildT
|
||||
if (!isIos(k)) { // iOS handles this differently
|
||||
const QString sysRoot = SysRootKitAspect::sysRoot(k).path();
|
||||
if (!sysRoot.isEmpty()) {
|
||||
cmd.addArg("-DCMAKE_SYSROOT:PATH" + sysRoot);
|
||||
cmd.addArg("-DCMAKE_SYSROOT:PATH=" + sysRoot);
|
||||
if (ToolChain *tc = ToolChainKitAspect::cxxToolChain(k)) {
|
||||
const QString targetTriple = tc->originalTargetTriple();
|
||||
cmd.addArg("-DCMAKE_C_COMPILER_TARGET:STRING=" + targetTriple);
|
||||
|
||||
@@ -514,7 +514,7 @@ void CMakeBuildSystem::combineScanAndParse(bool restoredFromBackup)
|
||||
|
||||
if (restoredFromBackup)
|
||||
project()->addIssue(
|
||||
CMakeProject::IssueType::Error,
|
||||
CMakeProject::IssueType::Warning,
|
||||
tr("<b>CMake configuration failed<b>"
|
||||
"<p>The backup of the previous configuration has been restored.</p>"
|
||||
"<p>Issues and \"Projects > Build\" settings "
|
||||
@@ -532,7 +532,7 @@ void CMakeBuildSystem::combineScanAndParse(bool restoredFromBackup)
|
||||
updateFallbackProjectData();
|
||||
|
||||
project()->addIssue(
|
||||
CMakeProject::IssueType::Error,
|
||||
CMakeProject::IssueType::Warning,
|
||||
tr("<b>Failed to load project<b>"
|
||||
"<p>Issues and \"Projects > Build\" settings "
|
||||
"show more information about the failure.</p"));
|
||||
|
||||
@@ -349,7 +349,8 @@ CMakeConfig CMakeConfig::fromArguments(const QStringList &list, QStringList &unk
|
||||
|
||||
unknownOptions.append(i);
|
||||
}
|
||||
return result;
|
||||
|
||||
return Utils::filtered(result, [](const CMakeConfigItem &item) { return !item.key.isEmpty(); });
|
||||
}
|
||||
|
||||
CMakeConfig CMakeConfig::fromFile(const Utils::FilePath &cacheFile, QString *errorMessage)
|
||||
|
||||
@@ -274,7 +274,7 @@ void ProgressManagerPrivate::init()
|
||||
summaryProgressLayout->setSpacing(0);
|
||||
m_summaryProgressWidget->setLayout(summaryProgressLayout);
|
||||
m_statusDetailsWidgetContainer = new QWidget(m_summaryProgressWidget);
|
||||
m_statusDetailsWidgetLayout = new QHBoxLayout(m_summaryProgressWidget);
|
||||
m_statusDetailsWidgetLayout = new QHBoxLayout(m_statusDetailsWidgetContainer);
|
||||
m_statusDetailsWidgetLayout->setContentsMargins(0, 0, 0, 0);
|
||||
m_statusDetailsWidgetLayout->setSpacing(0);
|
||||
m_statusDetailsWidgetLayout->addStretch(1);
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <QList>
|
||||
#include <QSet>
|
||||
#include <QSharedPointer>
|
||||
#include <QVersionNumber>
|
||||
#include <QtGlobal>
|
||||
|
||||
@@ -1244,7 +1244,7 @@ void BuildDeviceKitAspect::setup(Kit *k)
|
||||
{
|
||||
QTC_ASSERT(DeviceManager::instance()->isLoaded(), return );
|
||||
IDevice::ConstPtr dev = BuildDeviceKitAspect::device(k);
|
||||
if (!dev.isNull() && dev->isCompatibleWith(k))
|
||||
if (!dev.isNull())
|
||||
return;
|
||||
|
||||
dev = defaultDevice();
|
||||
|
||||
@@ -103,13 +103,12 @@ static QAction *createAction(const Utils::Id &id,
|
||||
const QString &name,
|
||||
const QKeySequence &shortcut)
|
||||
{
|
||||
QString text = QString("%1 (%2)").arg(name).arg(shortcut.toString());
|
||||
|
||||
Core::Context context(TimelineConstants::C_QMLTIMELINE);
|
||||
|
||||
auto *action = new QAction(icon, text);
|
||||
auto *action = new QAction(icon, name);
|
||||
auto *command = Core::ActionManager::registerAction(action, id, context);
|
||||
command->setDefaultKeySequence(shortcut);
|
||||
command->augmentActionWithShortcutToolTip(action);
|
||||
|
||||
return action;
|
||||
}
|
||||
|
||||
@@ -37,10 +37,10 @@ const int transitionEditorPropertyItemUserType = QGraphicsItem::UserType + 7;
|
||||
|
||||
const char C_QMLTRANSITIONS[] = "QmlDesigner::Transitions";
|
||||
|
||||
const char C_SETTINGS[] = "QmlDesigner.SettingsTransitions";
|
||||
const char C_CURVE_PICKER[] = "QmlDesigner.CurvePickerTransitions";
|
||||
const char C_ZOOM_IN[] = "QmlDesigner.ZoomInTransition";
|
||||
const char C_ZOOM_OUT[] = "QmlDesigner.ZoomOutTransitions";
|
||||
const char C_SETTINGS[] = "QmlDesigner.Transitions.Settings";
|
||||
const char C_CURVE_PICKER[] = "QmlDesigner.Transitions.CurvePicker";
|
||||
const char C_ZOOM_IN[] = "QmlDesigner.Transitions.ZoomIn";
|
||||
const char C_ZOOM_OUT[] = "QmlDesigner.Transitions.ZoomOut";
|
||||
|
||||
} // namespace TransitionEditorConstants
|
||||
} // namespace QmlDesigner
|
||||
|
||||
@@ -90,13 +90,13 @@ static QAction *createAction(const Utils::Id &id,
|
||||
const QString &name,
|
||||
const QKeySequence &shortcut)
|
||||
{
|
||||
QString text = QString("%1 (%2)").arg(name).arg(shortcut.toString());
|
||||
|
||||
Core::Context context(TransitionEditorConstants::C_QMLTRANSITIONS);
|
||||
|
||||
auto *action = new QAction(icon, text);
|
||||
auto *action = new QAction(icon, name);
|
||||
auto *command = Core::ActionManager::registerAction(action, id, context);
|
||||
command->setDefaultKeySequence(shortcut);
|
||||
command->augmentActionWithShortcutToolTip(action);
|
||||
|
||||
return action;
|
||||
}
|
||||
|
||||
@@ -319,6 +319,9 @@ TransitionEditorWidget *TransitionEditorView::createWidget()
|
||||
if (!m_transitionEditorWidget)
|
||||
m_transitionEditorWidget = new TransitionEditorWidget(this);
|
||||
|
||||
auto *transitionContext = new TransitionContext(m_transitionEditorWidget);
|
||||
Core::ICore::addContextObject(transitionContext);
|
||||
|
||||
return m_transitionEditorWidget;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,6 +68,19 @@
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
TransitionContext::TransitionContext(QWidget *widget)
|
||||
: IContext(widget)
|
||||
{
|
||||
setWidget(widget);
|
||||
setContext(Core::Context(TransitionEditorConstants::C_QMLTRANSITIONS));
|
||||
}
|
||||
|
||||
void TransitionContext::contextHelp(const Core::IContext::HelpCallback &callback) const
|
||||
{
|
||||
if (auto *widget = qobject_cast<TransitionEditorWidget *>(m_widget))
|
||||
widget->contextHelp(callback);
|
||||
}
|
||||
|
||||
class Eventfilter : public QObject
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -49,6 +49,15 @@ class TransitionEditorToolBar;
|
||||
class TransitionEditorGraphicsScene;
|
||||
class ModelNode;
|
||||
|
||||
class TransitionContext : public Core::IContext
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TransitionContext(QWidget *widget);
|
||||
void contextHelp(const HelpCallback &callback) const override;
|
||||
};
|
||||
|
||||
class TransitionEditorWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -169,7 +169,7 @@ void QnxDeployQtLibrariesDialog::updateProgress(const QString &progressMessage)
|
||||
{
|
||||
QTC_CHECK(m_state == Uploading);
|
||||
|
||||
const int progress = progressMessage.count("sftp> put");
|
||||
const int progress = progressMessage.count("sftp> put") + progressMessage.count("sftp> ln -s");
|
||||
if (progress != 0) {
|
||||
m_progressCount += progress;
|
||||
m_ui->deployProgress->setValue(m_progressCount);
|
||||
|
||||
@@ -156,7 +156,6 @@ void QnxQtVersion::addToEnvironment(const Kit *k, Environment &env) const
|
||||
QtSupport::QtVersion::addToEnvironment(k, env);
|
||||
updateEnvironment();
|
||||
env.modify(m_qnxEnv);
|
||||
env.prependOrSetLibrarySearchPath(libraryPath());
|
||||
}
|
||||
|
||||
void QnxQtVersion::setupQmakeRunEnvironment(Environment &env) const
|
||||
|
||||
Reference in New Issue
Block a user