Merge remote-tracking branch 'origin/3.0'

This commit is contained in:
Eike Ziller
2013-12-09 12:41:09 +01:00
16 changed files with 41 additions and 15 deletions

View File

@@ -139,11 +139,6 @@ protected:
Node::accept(node, this); Node::accept(node, this);
} }
void acceptIndented(Node *node)
{
accept(node);
}
void lnAcceptIndented(Node *node) void lnAcceptIndented(Node *node)
{ {
newLine(); newLine();

View File

@@ -29,6 +29,7 @@
#include "documentmodel.h" #include "documentmodel.h"
#include "ieditor.h" #include "ieditor.h"
#include <coreplugin/documentmanager.h>
#include <coreplugin/idocument.h> #include <coreplugin/idocument.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
@@ -194,8 +195,9 @@ int DocumentModel::indexOfFilePath(const QString &filePath) const
{ {
if (filePath.isEmpty()) if (filePath.isEmpty())
return -1; return -1;
const QString fixedPath = DocumentManager::fixFileName(filePath, DocumentManager::KeepLinks);
for (int i = 0; i < d->m_documents.count(); ++i) { for (int i = 0; i < d->m_documents.count(); ++i) {
if (d->m_documents.at(i)->fileName() == filePath) if (DocumentManager::fixFileName(d->m_documents.at(i)->fileName(), DocumentManager::KeepLinks) == fixedPath)
return i; return i;
} }
return -1; return -1;

View File

@@ -302,8 +302,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
if (ActionContainer *windowMenu = ActionManager::actionContainer(Core::Constants::M_WINDOW)) { if (ActionContainer *windowMenu = ActionManager::actionContainer(Core::Constants::M_WINDOW)) {
// reuse EditorManager constants to avoid a second pair of menu actions // reuse EditorManager constants to avoid a second pair of menu actions
// Goto Previous In History Action // Goto Previous In History Action
action = new QAction(QApplication::translate("EditorManager", action = new QAction(this);
"Next Open Document in History"), this);
Command *ctrlTab = ActionManager::registerAction(action, Core::Constants::GOTOPREVINHISTORY, Command *ctrlTab = ActionManager::registerAction(action, Core::Constants::GOTOPREVINHISTORY,
modecontext); modecontext);
windowMenu->addAction(ctrlTab, Core::Constants::G_WINDOW_NAVIGATE); windowMenu->addAction(ctrlTab, Core::Constants::G_WINDOW_NAVIGATE);
@@ -311,8 +310,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
SLOT(gotoPreviousPage())); SLOT(gotoPreviousPage()));
// Goto Next In History Action // Goto Next In History Action
action = new QAction(QApplication::translate("EditorManager", action = new QAction(this);
"Previous Open Document in History"), this);
Command *ctrlShiftTab = ActionManager::registerAction(action, Core::Constants::GOTONEXTINHISTORY, Command *ctrlShiftTab = ActionManager::registerAction(action, Core::Constants::GOTONEXTINHISTORY,
modecontext); modecontext);
windowMenu->addAction(ctrlShiftTab, Core::Constants::G_WINDOW_NAVIGATE); windowMenu->addAction(ctrlShiftTab, Core::Constants::G_WINDOW_NAVIGATE);

View File

@@ -162,7 +162,9 @@ void IosDebugSupport::handleGotInferiorPid(Q_PID pid)
{ {
if (pid > 0) { if (pid > 0) {
//m_runControl->engine()->notifyInferiorPid(pid); //m_runControl->engine()->notifyInferiorPid(pid);
#ifndef Q_OS_WIN // Q_PID might be 64 bit pointer...
m_runControl->engine()->notifyEngineRemoteSetupDone(int(pid), m_qmlPort); m_runControl->engine()->notifyEngineRemoteSetupDone(int(pid), m_qmlPort);
#endif
} else { } else {
m_runControl->engine()->notifyEngineRemoteSetupFailed( m_runControl->engine()->notifyEngineRemoteSetupFailed(
tr("Got an invalid process id.")); tr("Got an invalid process id."));

View File

@@ -95,9 +95,19 @@ QVariantMap DefaultPropertyProvider::properties(const ProjectExplorer::Kit *k, c
? QStringList() << QLatin1String("mingw") << QLatin1String("gcc") ? QStringList() << QLatin1String("mingw") << QLatin1String("gcc")
: QStringList() << QLatin1String("msvc")); : QStringList() << QLatin1String("msvc"));
} else if (targetAbi.os() == ProjectExplorer::Abi::MacOS) { } else if (targetAbi.os() == ProjectExplorer::Abi::MacOS) {
data.insert(QLatin1String(QBS_TARGETOS), QStringList() << QLatin1String("osx") const char IOSQT[] = "Qt4ProjectManager.QtVersion.Ios"; // from Ios::Constants (include header?)
<< QLatin1String("darwin") << QLatin1String("bsd4") if (qt && qt->type() == QLatin1String(IOSQT)) {
<< QLatin1String("bsd") << QLatin1String("unix")); QStringList targetOS;
if (targetAbi.architecture() == ProjectExplorer::Abi::X86Architecture)
targetOS << QLatin1String("ios-simulator");
targetOS << QLatin1String("ios") << QLatin1String("darwin")
<< QLatin1String("bsd4") << QLatin1String("bsd") << QLatin1String("unix");
data.insert(QLatin1String(QBS_TARGETOS), targetOS);
} else {
data.insert(QLatin1String(QBS_TARGETOS), QStringList() << QLatin1String("osx")
<< QLatin1String("darwin") << QLatin1String("bsd4")
<< QLatin1String("bsd") << QLatin1String("unix"));
}
if (tc->type() != QLatin1String("clang")) { if (tc->type() != QLatin1String("clang")) {
data.insert(QLatin1String(QBS_TOOLCHAIN), QLatin1String("gcc")); data.insert(QLatin1String(QBS_TOOLCHAIN), QLatin1String("gcc"));
} else { } else {

View File

@@ -118,7 +118,7 @@ QmlProjectItem *QmlProjectFileFormat::parseProjectFile(const QString &fileName,
setupFileFilterItem(cssFileFilterItem, childNode); setupFileFilterItem(cssFileFilterItem, childNode);
projectItem->appendContent(cssFileFilterItem); projectItem->appendContent(cssFileFilterItem);
} else { } else {
qWarning() << "Unkwown type:" << childNode->name(); qWarning() << "Unknown type:" << childNode->name();
} }
} }
return projectItem; return projectItem;

View File

@@ -34,6 +34,7 @@
#include "blackberryconfigurationmanager.h" #include "blackberryconfigurationmanager.h"
#include "blackberryndkprocess.h" #include "blackberryndkprocess.h"
#include <utils/environment.h>
#include <utils/hostosinfo.h> #include <utils/hostosinfo.h>
#include <QProcess> #include <QProcess>
@@ -52,6 +53,8 @@ BlackBerryCertificate::BlackBerryCertificate(const QString &fileName,
m_process(new QProcess(this)) m_process(new QProcess(this))
{ {
m_process->setProcessChannelMode(QProcess::MergedChannels); m_process->setProcessChannelMode(QProcess::MergedChannels);
m_process->setEnvironment(Utils::EnvironmentItem::toStringList(
BlackBerryConfigurationManager::instance().defaultQnxEnv()));
} }
void BlackBerryCertificate::load() void BlackBerryCertificate::load()

View File

@@ -30,8 +30,11 @@
#include "blackberrydevicelistdetector.h" #include "blackberrydevicelistdetector.h"
#include "blackberryconfigurationmanager.h"
#include "blackberryndkprocess.h" #include "blackberryndkprocess.h"
#include <utils/environment.h>
#include <QStringList> #include <QStringList>
namespace Qnx { namespace Qnx {
@@ -53,6 +56,8 @@ void BlackBerryDeviceListDetector::detectDeviceList()
if (m_process->state() != QProcess::NotRunning) if (m_process->state() != QProcess::NotRunning)
return; return;
m_process->setEnvironment(Utils::EnvironmentItem::toStringList(
BlackBerryConfigurationManager::instance().defaultQnxEnv()));
const QString command = BlackBerryNdkProcess::resolveNdkToolPath(QLatin1String("blackberry-deploy")); const QString command = BlackBerryNdkProcess::resolveNdkToolPath(QLatin1String("blackberry-deploy"));
QStringList arguments; QStringList arguments;
arguments << QLatin1String("-devices"); arguments << QLatin1String("-devices");

View File

@@ -46,6 +46,8 @@ BlackBerryNdkProcess::BlackBerryNdkProcess(const QString &command, QObject *pare
m_command(command) m_command(command)
{ {
m_process->setProcessChannelMode(QProcess::MergedChannels); m_process->setProcessChannelMode(QProcess::MergedChannels);
m_process->setEnvironment(Utils::EnvironmentItem::toStringList(
BlackBerryConfigurationManager::instance().defaultQnxEnv()));
connect(m_process, SIGNAL(started()), this, SIGNAL(started())); connect(m_process, SIGNAL(started()), this, SIGNAL(started()));
connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)), connect(m_process, SIGNAL(finished(int,QProcess::ExitStatus)),

View File

@@ -124,6 +124,7 @@ void BlackBerryNDKSettingsWidget::launchBlackBerrySetupWizard() const
} }
BlackBerrySetupWizard wizard; BlackBerrySetupWizard wizard;
connect(&wizard, SIGNAL(ndkTargetsUpdated()), this, SLOT(updateNdkList()));
wizard.exec(); wizard.exec();
} }

View File

@@ -93,6 +93,8 @@ BlackBerrySetupWizard::BlackBerrySetupWizard(QWidget *parent) :
m_uploader = new BlackBerryDebugTokenUploader(this); m_uploader = new BlackBerryDebugTokenUploader(this);
m_keyGenerator = new QSsh::SshKeyGenerator; m_keyGenerator = new QSsh::SshKeyGenerator;
connect(m_ndkPage, SIGNAL(targetsUpdated()),
this, SIGNAL(ndkTargetsUpdated()));
connect(m_deviceInfo, SIGNAL(finished(int)), connect(m_deviceInfo, SIGNAL(finished(int)),
this, SLOT(deviceInfoFinished(int))); this, SLOT(deviceInfoFinished(int)));
connect(m_requester, SIGNAL(finished(int)), connect(m_requester, SIGNAL(finished(int)),

View File

@@ -69,6 +69,7 @@ public slots:
signals: signals:
void stepFinished(); void stepFinished();
void ndkTargetsUpdated();
private slots: private slots:
void processNextStep(); void processNextStep();

View File

@@ -87,6 +87,7 @@ BlackBerrySetupWizardNdkPage::BlackBerrySetupWizardNdkPage(QWidget *parent) :
m_widget->setWizardMessageVisible(false); m_widget->setWizardMessageVisible(false);
connect(m_widget, SIGNAL(targetsUpdated()), this, SIGNAL(completeChanged())); connect(m_widget, SIGNAL(targetsUpdated()), this, SIGNAL(completeChanged()));
connect(m_widget, SIGNAL(targetsUpdated()), this, SIGNAL(targetsUpdated()));
QVBoxLayout *layout = new QVBoxLayout; QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(m_widget); layout->addWidget(m_widget);

View File

@@ -70,6 +70,9 @@ public:
bool isComplete() const; bool isComplete() const;
signals:
void targetsUpdated();
private: private:
BlackBerryNDKSettingsWidget *m_widget; BlackBerryNDKSettingsWidget *m_widget;
}; };

View File

@@ -121,6 +121,7 @@ RunControl *RemoteLinuxRunControlFactory::create(RunConfiguration *runConfig, Ru
} }
QTC_ASSERT(false, return 0); QTC_ASSERT(false, return 0);
return 0;
} }
} // namespace Internal } // namespace Internal

View File

@@ -857,7 +857,7 @@ void tst_Dumpers::dumper()
"\n#endif" "\n#endif"
"\n" + (data.useQHash ? "\n" + (data.useQHash ?
"\n#if QT_VERSION >= 0x050000" "\n#if QT_VERSION >= 0x050000"
"\nqt_qhash_seed.testAndSetRelaxed(-1, 0);" "\nqt_qhash_seed.store(0);"
"\n#endif\n" : "") + "\n#endif\n" : "") +
"\n unused(&argc, &argv, &qtversion, &gccversion);\n" "\n unused(&argc, &argv, &qtversion, &gccversion);\n"
"\n" + data.code + "\n" + data.code +