forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.7' into 2.8
This commit is contained in:
@@ -338,7 +338,7 @@ void AndroidPackageCreationStep::checkRequiredLibrariesForRun()
|
|||||||
QMetaObject::invokeMethod(this, "setQtLibs",Qt::BlockingQueuedConnection,
|
QMetaObject::invokeMethod(this, "setQtLibs",Qt::BlockingQueuedConnection,
|
||||||
Q_ARG(QStringList, m_qtLibsWithDependencies));
|
Q_ARG(QStringList, m_qtLibsWithDependencies));
|
||||||
|
|
||||||
QMetaObject::invokeMethod(this, "getBundleInformation");
|
QMetaObject::invokeMethod(this, "getBundleInformation", Qt::BlockingQueuedConnection);
|
||||||
|
|
||||||
emit updateRequiredLibrariesModels();
|
emit updateRequiredLibrariesModels();
|
||||||
}
|
}
|
||||||
|
@@ -319,8 +319,6 @@ QtcPlugin {
|
|||||||
"images/targetleftbutton.png",
|
"images/targetleftbutton.png",
|
||||||
"images/targetpanel_bottom.png",
|
"images/targetpanel_bottom.png",
|
||||||
"images/targetpanel_gradient.png",
|
"images/targetpanel_gradient.png",
|
||||||
"images/targetremovebutton.png",
|
|
||||||
"images/targetremovebuttondark.png",
|
|
||||||
"images/targetrightbutton.png",
|
"images/targetrightbutton.png",
|
||||||
"images/targetrunselected.png",
|
"images/targetrunselected.png",
|
||||||
"images/targetseparatorbackground.png",
|
"images/targetseparatorbackground.png",
|
||||||
|
@@ -45,10 +45,13 @@ public:
|
|||||||
TaskHub();
|
TaskHub();
|
||||||
virtual ~TaskHub();
|
virtual ~TaskHub();
|
||||||
|
|
||||||
|
public slots:
|
||||||
void addCategory(const Core::Id &categoryId, const QString &displayName, bool visible = true);
|
void addCategory(const Core::Id &categoryId, const QString &displayName, bool visible = true);
|
||||||
void addTask(Task task);
|
void addTask(ProjectExplorer::Task task);
|
||||||
void clearTasks(const Core::Id &categoryId = Core::Id());
|
void clearTasks(const Core::Id &categoryId = Core::Id());
|
||||||
void removeTask(const Task &task);
|
void removeTask(const ProjectExplorer::Task &task);
|
||||||
|
|
||||||
|
public:
|
||||||
void updateTaskFileName(unsigned int id, const QString &fileName);
|
void updateTaskFileName(unsigned int id, const QString &fileName);
|
||||||
void updateTaskLineNumber(unsigned int id, int line);
|
void updateTaskLineNumber(unsigned int id, int line);
|
||||||
void taskMarkClicked(unsigned int id);
|
void taskMarkClicked(unsigned int id);
|
||||||
@@ -58,6 +61,7 @@ public:
|
|||||||
void requestPopup();
|
void requestPopup();
|
||||||
|
|
||||||
QIcon taskTypeIcon(ProjectExplorer::Task::TaskType t) const;
|
QIcon taskTypeIcon(ProjectExplorer::Task::TaskType t) const;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void categoryAdded(const Core::Id &categoryId, const QString &displayName, bool visible);
|
void categoryAdded(const Core::Id &categoryId, const QString &displayName, bool visible);
|
||||||
void taskAdded(const ProjectExplorer::Task &task);
|
void taskAdded(const ProjectExplorer::Task &task);
|
||||||
|
@@ -135,8 +135,6 @@ void QbsBuildStep::run(QFutureInterface<bool> &fi)
|
|||||||
this, SLOT(handleProgress(int)));
|
this, SLOT(handleProgress(int)));
|
||||||
connect(m_job, SIGNAL(reportCommandDescription(QString,QString)),
|
connect(m_job, SIGNAL(reportCommandDescription(QString,QString)),
|
||||||
this, SLOT(handleCommandDescriptionReport(QString,QString)));
|
this, SLOT(handleCommandDescriptionReport(QString,QString)));
|
||||||
connect(m_job, SIGNAL(reportWarning(qbs::Error)),
|
|
||||||
this, SLOT(handleWarningReport(qbs::Error)));
|
|
||||||
connect(m_job, SIGNAL(reportProcessResult(qbs::ProcessResult)),
|
connect(m_job, SIGNAL(reportProcessResult(qbs::ProcessResult)),
|
||||||
this, SLOT(handleProcessResultReport(qbs::ProcessResult)));
|
this, SLOT(handleProcessResultReport(qbs::ProcessResult)));
|
||||||
}
|
}
|
||||||
@@ -248,14 +246,6 @@ void QbsBuildStep::handleProgress(int value)
|
|||||||
m_fi->setProgressValue(m_progressBase + value);
|
m_fi->setProgressValue(m_progressBase + value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QbsBuildStep::handleWarningReport(const qbs::Error &error)
|
|
||||||
{
|
|
||||||
foreach (const qbs::ErrorData &data, error.entries()) {
|
|
||||||
createTaskAndOutput(ProjectExplorer::Task::Warning, data.description(),
|
|
||||||
data.codeLocation().fileName(), data.codeLocation().line());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void QbsBuildStep::handleCommandDescriptionReport(const QString &highlight, const QString &message)
|
void QbsBuildStep::handleCommandDescriptionReport(const QString &highlight, const QString &message)
|
||||||
{
|
{
|
||||||
Q_UNUSED(highlight);
|
Q_UNUSED(highlight);
|
||||||
|
@@ -79,7 +79,6 @@ private slots:
|
|||||||
void buildingDone(bool success);
|
void buildingDone(bool success);
|
||||||
void handleTaskStarted(const QString &desciption, int max);
|
void handleTaskStarted(const QString &desciption, int max);
|
||||||
void handleProgress(int value);
|
void handleProgress(int value);
|
||||||
void handleWarningReport(const qbs::Error &error);
|
|
||||||
void handleCommandDescriptionReport(const QString &highlight, const QString &message);
|
void handleCommandDescriptionReport(const QString &highlight, const QString &message);
|
||||||
void handleProcessResultReport(const qbs::ProcessResult &result);
|
void handleProcessResultReport(const qbs::ProcessResult &result);
|
||||||
|
|
||||||
|
@@ -32,6 +32,9 @@
|
|||||||
#include <qbs.h>
|
#include <qbs.h>
|
||||||
|
|
||||||
#include <coreplugin/messagemanager.h>
|
#include <coreplugin/messagemanager.h>
|
||||||
|
#include <projectexplorer/projectexplorer.h>
|
||||||
|
#include <projectexplorer/taskhub.h>
|
||||||
|
#include <utils/fileutils.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QMutexLocker>
|
#include <QMutexLocker>
|
||||||
@@ -46,6 +49,9 @@ namespace Internal {
|
|||||||
|
|
||||||
QbsLogSink::QbsLogSink(QObject *parent) : QObject(parent)
|
QbsLogSink::QbsLogSink(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
|
ProjectExplorer::TaskHub *hub = ProjectExplorer::ProjectExplorerPlugin::instance()->taskHub();
|
||||||
|
connect(this, SIGNAL(newTask(ProjectExplorer::Task)),
|
||||||
|
hub, SLOT(addTask(ProjectExplorer::Task)), Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
void QbsLogSink::sendMessages()
|
void QbsLogSink::sendMessages()
|
||||||
@@ -62,6 +68,16 @@ void QbsLogSink::sendMessages()
|
|||||||
mm->printToOutputPane(msg, Core::MessageManager::NoModeSwitch);
|
mm->printToOutputPane(msg, Core::MessageManager::NoModeSwitch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void QbsLogSink::doPrintWarning(const qbs::Error &warning)
|
||||||
|
{
|
||||||
|
foreach (const qbs::ErrorData &data, warning.entries())
|
||||||
|
emit newTask(ProjectExplorer::Task(ProjectExplorer::Task::Warning,
|
||||||
|
data.description(),
|
||||||
|
Utils::FileName::fromString(data.codeLocation().fileName()),
|
||||||
|
data.codeLocation().line(),
|
||||||
|
ProjectExplorer::Constants::TASK_CATEGORY_BUILDSYSTEM));
|
||||||
|
}
|
||||||
|
|
||||||
void QbsLogSink::doPrintMessage(qbs::LoggerLevel level, const QString &message, const QString &tag)
|
void QbsLogSink::doPrintMessage(qbs::LoggerLevel level, const QString &message, const QString &tag)
|
||||||
{
|
{
|
||||||
Q_UNUSED(tag);
|
Q_UNUSED(tag);
|
||||||
|
@@ -30,6 +30,8 @@
|
|||||||
#ifndef QBSLOGSINK_H
|
#ifndef QBSLOGSINK_H
|
||||||
#define QBSLOGSINK_H
|
#define QBSLOGSINK_H
|
||||||
|
|
||||||
|
#include <projectexplorer/task.h>
|
||||||
|
|
||||||
#include <qbs.h>
|
#include <qbs.h>
|
||||||
|
|
||||||
#include <QMutex>
|
#include <QMutex>
|
||||||
@@ -45,10 +47,14 @@ class QbsLogSink : public QObject, public qbs::ILogSink
|
|||||||
public:
|
public:
|
||||||
QbsLogSink(QObject *parent = 0);
|
QbsLogSink(QObject *parent = 0);
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void newTask(const ProjectExplorer::Task &task);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void sendMessages();
|
void sendMessages();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void doPrintWarning(const qbs::Error &warning);
|
||||||
void doPrintMessage(qbs::LoggerLevel level, const QString &message, const QString &tag);
|
void doPrintMessage(qbs::LoggerLevel level, const QString &message, const QString &tag);
|
||||||
|
|
||||||
QStringList m_messages;
|
QStringList m_messages;
|
||||||
|
@@ -188,7 +188,6 @@ QtcPlugin {
|
|||||||
"ifunctionhintproposalmodel.h",
|
"ifunctionhintproposalmodel.h",
|
||||||
"igenericproposalmodel.cpp",
|
"igenericproposalmodel.cpp",
|
||||||
"igenericproposalmodel.h",
|
"igenericproposalmodel.h",
|
||||||
"ikeywords.h",
|
|
||||||
"keywordscompletionassist.cpp",
|
"keywordscompletionassist.cpp",
|
||||||
"keywordscompletionassist.h",
|
"keywordscompletionassist.h",
|
||||||
"quickfixassistprocessor.cpp",
|
"quickfixassistprocessor.cpp",
|
||||||
|
Submodule src/shared/qbs updated: 32ae53690c...5df624fa58
Reference in New Issue
Block a user