Fix frequent typo

can not -> cannot

Change-Id: Ie872ada1bc9b4ed64bffb667c2e44dbb13b4ad11
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Robert Loehning
2018-10-22 16:34:31 +02:00
parent 7ae7f921ab
commit 4032f6383a
29 changed files with 40 additions and 40 deletions

View File

@@ -396,7 +396,7 @@ QVariant ObjectNodeInstance::convertEnumToValue(const QVariant &value, const Pro
QQmlExpression expression(context(), object(), enumeration.toString()); QQmlExpression expression(context(), object(), enumeration.toString());
adjustedValue = expression.evaluate(); adjustedValue = expression.evaluate();
if (expression.hasError()) if (expression.hasError())
qDebug() << "Enumeration can not be evaluated:" << object() << name << enumeration; qDebug() << "Enumeration cannot be evaluated:" << object() << name << enumeration;
} }
return adjustedValue; return adjustedValue;
} }

View File

@@ -185,7 +185,7 @@ static inline int askMsgSendFailed()
QMessageBox::Retry); QMessageBox::Retry);
} }
// taken from utils/fileutils.cpp. We can not use utils here since that depends app_version.h. // taken from utils/fileutils.cpp. We cannot use utils here since that depends app_version.h.
static bool copyRecursively(const QString &srcFilePath, static bool copyRecursively(const QString &srcFilePath,
const QString &tgtFilePath) const QString &tgtFilePath)
{ {

View File

@@ -77,7 +77,7 @@ static inline std::string fixInnerType(const std::string &type,
std::string stripped std::string stripped
= SymbolGroupValue::stripConst(SymbolGroupValue::stripClassPrefixes(type)); = SymbolGroupValue::stripConst(SymbolGroupValue::stripClassPrefixes(type));
// Unfortunately the cdb can not handle the vc exclusiv 64 bit integer // Unfortunately the cdb cannot handle the vc exclusiv 64 bit integer
// "__int64" but works fine with "int64", so we have to strip down "__" // "__int64" but works fine with "int64", so we have to strip down "__"
const size_t __int64pos = stripped.find("__int64"); const size_t __int64pos = stripped.find("__int64");
if (__int64pos != std::string::npos) if (__int64pos != std::string::npos)

View File

@@ -352,7 +352,7 @@ static PyObject *cdbext_reportResult(PyObject *, PyObject *args)
static PyMethodDef cdbextMethods[] = { static PyMethodDef cdbextMethods[] = {
{"parseAndEvaluate", cdbext_parseAndEvaluate, METH_VARARGS, {"parseAndEvaluate", cdbext_parseAndEvaluate, METH_VARARGS,
"Returns value of expression or None if the expression can not be resolved"}, "Returns value of expression or None if the expression cannot be resolved"},
{"resolveSymbol", cdbext_resolveSymbol, METH_VARARGS, {"resolveSymbol", cdbext_resolveSymbol, METH_VARARGS,
"Returns a list of symbol names matching the given pattern"}, "Returns a list of symbol names matching the given pattern"},
{"getNameByAddress", cdbext_getNameByAddress, METH_VARARGS, {"getNameByAddress", cdbext_getNameByAddress, METH_VARARGS,
@@ -360,7 +360,7 @@ static PyMethodDef cdbextMethods[] = {
{"getAddressByName", cdbext_getAddressByName, METH_VARARGS, {"getAddressByName", cdbext_getAddressByName, METH_VARARGS,
"Returns the address of the symbol with the given name"}, "Returns the address of the symbol with the given name"},
{"lookupType", cdbext_lookupType, METH_VARARGS, {"lookupType", cdbext_lookupType, METH_VARARGS,
"Returns type object or None if the type can not be resolved"}, "Returns type object or None if the type cannot be resolved"},
{"listOfLocals", cdbext_listOfLocals, METH_VARARGS, {"listOfLocals", cdbext_listOfLocals, METH_VARARGS,
"Returns list of values that are currently in scope"}, "Returns list of values that are currently in scope"},
{"listOfModules", cdbext_listOfModules, METH_NOARGS, {"listOfModules", cdbext_listOfModules, METH_NOARGS,

View File

@@ -241,7 +241,7 @@ void DatabaseBackend::cacheTextEncoding()
void DatabaseBackend::checkForOpenDatabaseWhichCanBeClosed() void DatabaseBackend::checkForOpenDatabaseWhichCanBeClosed()
{ {
if (m_databaseHandle == nullptr) if (m_databaseHandle == nullptr)
throw DatabaseIsAlreadyClosed("SqliteDatabaseBackend::close: database is not open so it can not be closed."); throw DatabaseIsAlreadyClosed("SqliteDatabaseBackend::close: database is not open so it cannot be closed.");
} }
void DatabaseBackend::checkDatabaseClosing(int resultCode) void DatabaseBackend::checkDatabaseClosing(int resultCode)

View File

@@ -793,7 +793,7 @@ QVersionNumber AndroidConfig::ndkVersion() const
{ {
QVersionNumber version; QVersionNumber version;
if (!m_ndkLocation.exists()) { if (!m_ndkLocation.exists()) {
qCDebug(avdConfigLog) << "Can not find ndk version. Check NDK path." qCDebug(avdConfigLog) << "Cannot find ndk version. Check NDK path."
<< m_ndkLocation.toString(); << m_ndkLocation.toString();
return version; return version;
} }
@@ -826,11 +826,11 @@ QVersionNumber AndroidConfig::ndkVersion() const
version = QVersionNumber::fromString(QString("%1.%2.0").arg(major) version = QVersionNumber::fromString(QString("%1.%2.0").arg(major)
.arg((int)minor[0].toLatin1() - 97)); .arg((int)minor[0].toLatin1() - 97));
} else { } else {
qCDebug(avdConfigLog) << "Can not find ndk version. Can not parse RELEASE.TXT." qCDebug(avdConfigLog) << "Cannot find ndk version. Cannot parse RELEASE.TXT."
<< content; << content;
} }
} else { } else {
qCDebug(avdConfigLog) << "Can not find ndk version." << errorString; qCDebug(avdConfigLog) << "Cannot find ndk version." << errorString;
} }
} }
return version; return version;

View File

@@ -218,7 +218,7 @@ QString AndroidManager::activityName(ProjectExplorer::Target *target)
/*! /*!
Returns the minimum Android API level set for the APK. Minimum API level Returns the minimum Android API level set for the APK. Minimum API level
of the kit is returned if the manifest file of the APK can not be found of the kit is returned if the manifest file of the APK cannot be found
or parsed. or parsed.
*/ */
int AndroidManager::minimumSDK(ProjectExplorer::Target *target) int AndroidManager::minimumSDK(ProjectExplorer::Target *target)

View File

@@ -426,7 +426,7 @@ void AndroidRunnerWorker::asyncStartHelper()
runAdb({"shell", "run-as", m_packageName, "chmod", "a+x", packageDir}); runAdb({"shell", "run-as", m_packageName, "chmod", "a+x", packageDir});
if (m_gdbserverPath.isEmpty() || !uploadFile(m_gdbserverPath, "gdbserver")) { if (m_gdbserverPath.isEmpty() || !uploadFile(m_gdbserverPath, "gdbserver")) {
emit remoteProcessFinished(tr("Can not find/copy C++ debug server.")); emit remoteProcessFinished(tr("Cannot find/copy C++ debug server."));
return; return;
} }

View File

@@ -627,7 +627,7 @@ AndroidSdkPackage *SdkManagerOutputParser::parsePlatform(const QStringList &data
if (parseAbstractData(packageData, data, 2, "Platform")) { if (parseAbstractData(packageData, data, 2, "Platform")) {
int apiLevel = platformNameToApiLevel(packageData.headerParts.at(1)); int apiLevel = platformNameToApiLevel(packageData.headerParts.at(1));
if (apiLevel == -1) { if (apiLevel == -1) {
qCDebug(sdkManagerLog) << "Platform: Can not parse api level:"<< data; qCDebug(sdkManagerLog) << "Platform: Cannot parse api level:"<< data;
return nullptr; return nullptr;
} }
platform = new SdkPlatform(packageData.revision, data.at(0), apiLevel); platform = new SdkPlatform(packageData.revision, data.at(0), apiLevel);
@@ -647,7 +647,7 @@ QPair<SystemImage *, int> SdkManagerOutputParser::parseSystemImage(const QString
if (parseAbstractData(packageData, data, 4, "System-image")) { if (parseAbstractData(packageData, data, 4, "System-image")) {
int apiLevel = platformNameToApiLevel(packageData.headerParts.at(1)); int apiLevel = platformNameToApiLevel(packageData.headerParts.at(1));
if (apiLevel == -1) { if (apiLevel == -1) {
qCDebug(sdkManagerLog) << "System-image: Can not parse api level:"<< data; qCDebug(sdkManagerLog) << "System-image: Cannot parse api level:"<< data;
return result; return result;
} }
auto image = new SystemImage(packageData.revision, data.at(0), auto image = new SystemImage(packageData.revision, data.at(0),

View File

@@ -57,7 +57,7 @@ void Android::Internal::AndroidSignalOperation::adbFindRunAsFinished(int exitCod
m_errorMessage += QLatin1String(" adb process error: ") + adbError; m_errorMessage += QLatin1String(" adb process error: ") + adbError;
} }
if (runAs.isEmpty() || !m_errorMessage.isEmpty()) { if (runAs.isEmpty() || !m_errorMessage.isEmpty()) {
m_errorMessage = QLatin1String("Can not find User for process: ") m_errorMessage = QLatin1String("Cannot find User for process: ")
+ QString::number(m_pid) + QString::number(m_pid)
+ m_errorMessage; + m_errorMessage;
m_state = Idle; m_state = Idle;
@@ -90,7 +90,7 @@ void Android::Internal::AndroidSignalOperation::adbKillFinished(int exitCode,
m_errorMessage = QString::fromLatin1(m_adbProcess->readAllStandardError()); m_errorMessage = QString::fromLatin1(m_adbProcess->readAllStandardError());
} }
if (!m_errorMessage.isEmpty()) { if (!m_errorMessage.isEmpty()) {
m_errorMessage = QLatin1String("Can not kill process: ") + QString::number(m_pid) m_errorMessage = QLatin1String("Cannot kill process: ") + QString::number(m_pid)
+ m_errorMessage; + m_errorMessage;
} }
m_state = Idle; m_state = Idle;

View File

@@ -567,7 +567,7 @@ QList<Task> CMakeConfigurationKitInformation::validate(const Kit *k) const
Utils::FileName tcCPath; Utils::FileName tcCPath;
Utils::FileName tcCxxPath; Utils::FileName tcCxxPath;
foreach (const CMakeConfigItem &i, config) { foreach (const CMakeConfigItem &i, config) {
// Do not use expand(QByteArray) as we can not be sure the input is latin1 // Do not use expand(QByteArray) as we cannot be sure the input is latin1
const Utils::FileName expandedValue const Utils::FileName expandedValue
= Utils::FileName::fromString(k->macroExpander()->expand(QString::fromUtf8(i.value))); = Utils::FileName::fromString(k->macroExpander()->expand(QString::fromUtf8(i.value)));
if (i.key == CMAKE_QMAKE_KEY) if (i.key == CMAKE_QMAKE_KEY)

View File

@@ -170,7 +170,7 @@ CMakeProject::CMakeProject(const FileName &fileName) : Project(Constants::CMAKEM
if (senderBc && senderBc->isActive()) { if (senderBc && senderBc->isActive()) {
// The environment on our BC has changed: // The environment on our BC has changed:
// * Error out if the reader updates, can not happen since all BCs share a target/kit. // * Error out if the reader updates, cannot happen since all BCs share a target/kit.
// * run cmake without configuration arguments if the reader stays // * run cmake without configuration arguments if the reader stays
m_buildDirManager.setParametersAndRequestParse( m_buildDirManager.setParametersAndRequestParse(
BuildDirParameters(senderBc), BuildDirParameters(senderBc),
@@ -183,7 +183,7 @@ CMakeProject::CMakeProject(const FileName &fileName) : Project(Constants::CMAKEM
if (senderBc && senderBc->isActive() && senderBc == m_buildDirManager.buildConfiguration()) { if (senderBc && senderBc->isActive() && senderBc == m_buildDirManager.buildConfiguration()) {
// The build directory of our BC has changed: // The build directory of our BC has changed:
// * Error out if the reader updates, can not happen since all BCs share a target/kit. // * Error out if the reader updates, cannot happen since all BCs share a target/kit.
// * run cmake without configuration arguments if the reader stays // * run cmake without configuration arguments if the reader stays
// If no configuration exists, then the arguments will get added automatically by // If no configuration exists, then the arguments will get added automatically by
// the reader. // the reader.
@@ -198,7 +198,7 @@ CMakeProject::CMakeProject(const FileName &fileName) : Project(Constants::CMAKEM
if (senderBc && senderBc->isActive() && senderBc == m_buildDirManager.buildConfiguration()) { if (senderBc && senderBc->isActive() && senderBc == m_buildDirManager.buildConfiguration()) {
// The CMake configuration has changed on our BC: // The CMake configuration has changed on our BC:
// * Error out if the reader updates, can not happen since all BCs share a target/kit. // * Error out if the reader updates, cannot happen since all BCs share a target/kit.
// * run cmake with configuration arguments if the reader stays // * run cmake with configuration arguments if the reader stays
m_buildDirManager.setParametersAndRequestParse( m_buildDirManager.setParametersAndRequestParse(
BuildDirParameters(senderBc), BuildDirParameters(senderBc),

View File

@@ -126,7 +126,7 @@ Id IDocument::id() const
* In that case, the contents of the auto save file should be loaded, the file name of the * In that case, the contents of the auto save file should be loaded, the file name of the
* IDocument should be set to \a fileName, and the document state be set to modified. * IDocument should be set to \a fileName, and the document state be set to modified.
* If the editor is opened from a regular file, \a fileName and \a realFileName are the same. * If the editor is opened from a regular file, \a fileName and \a realFileName are the same.
* Use \a errorString to return an error message, if this document can not handle the * Use \a errorString to return an error message, if this document cannot handle the
* file contents. * file contents.
* Returns whether the file was opened and read successfully. * Returns whether the file was opened and read successfully.
*/ */

View File

@@ -111,7 +111,7 @@ void InfoBar::suppressInfo(Id id)
m_suppressed << id; m_suppressed << id;
} }
// Info can not be added more than once, or if it is suppressed // Info cannot be added more than once, or if it is suppressed
bool InfoBar::canInfoBeAdded(Id id) const bool InfoBar::canInfoBeAdded(Id id) const
{ {
return !containsInfo(id) && !m_suppressed.contains(id) && !globallySuppressed.contains(id); return !containsInfo(id) && !m_suppressed.contains(id) && !globallySuppressed.contains(id);

View File

@@ -610,7 +610,7 @@ void CdbEngine::runEngine()
const auto cb = [this](const DebuggerResponse &r) { handleBreakInsert(r, Breakpoint()); }; const auto cb = [this](const DebuggerResponse &r) { handleBreakInsert(r, Breakpoint()); };
if (boolSetting(CdbBreakOnCrtDbgReport)) { if (boolSetting(CdbBreakOnCrtDbgReport)) {
Abi::OSFlavor flavor = runParameters().toolChainAbi.osFlavor(); Abi::OSFlavor flavor = runParameters().toolChainAbi.osFlavor();
// CrtDebugReport can not be safely resolved for vc 19 // CrtDebugReport cannot be safely resolved for vc 19
if ((flavor > Abi::WindowsMsvc2005Flavor && flavor <= Abi::WindowsMsvc2013Flavor) || if ((flavor > Abi::WindowsMsvc2005Flavor && flavor <= Abi::WindowsMsvc2013Flavor) ||
flavor > Abi::WindowsMSysFlavor || flavor <= Abi::WindowsCEFlavor) { flavor > Abi::WindowsMSysFlavor || flavor <= Abi::WindowsCEFlavor) {
const QString module = msvcRunTime(flavor); const QString module = msvcRunTime(flavor);
@@ -2748,7 +2748,7 @@ void CdbEngine::setupScripting(const DebuggerResponse &response)
} }
if (!ok) { if (!ok) {
m_pythonVersion = 0; m_pythonVersion = 0;
showMessage(QString("Can not parse sys.version:\n%1").arg(verOutput), LogWarning); showMessage(QString("Cannot parse sys.version:\n%1").arg(verOutput), LogWarning);
return; return;
} }

View File

@@ -126,7 +126,7 @@ void IosBuildSettingsWidget::setDefaultSigningIdentfier(const QString &identifie
} else { } else {
// Reset to default // Reset to default
ui->m_signEntityCombo->setCurrentIndex(0); ui->m_signEntityCombo->setCurrentIndex(0);
qCDebug(iosSettingsLog) << "Can not find default" qCDebug(iosSettingsLog) << "Cannot find default"
<< (ui->m_autoSignCheckbox->isChecked() ? "team": "provisioning profile") << (ui->m_autoSignCheckbox->isChecked() ? "team": "provisioning profile")
<< ". Identifier: " << identifier; << ". Identifier: " << identifier;
} }

View File

@@ -107,7 +107,7 @@ static bool launchSimulator(const QString &simUdid) {
return runSimCtlCommand(QStringList({"boot", simUdid}), nullptr); return runSimCtlCommand(QStringList({"boot", simUdid}), nullptr);
} }
} else { } else {
qCDebug(simulatorLog) << "Can not start Simulator device." qCDebug(simulatorLog) << "Cannot start Simulator device."
<< "Error probing Simulator.app instance"; << "Error probing Simulator.app instance";
return false; return false;
} }
@@ -438,7 +438,7 @@ void SimulatorControlPrivate::startSimulator(QFutureInterface<SimulatorControl::
} }
if (simInfo.isShuttingDown()) { if (simInfo.isShuttingDown()) {
qCDebug(simulatorLog) << "Can not start Simulator device. " qCDebug(simulatorLog) << "Cannot start Simulator device. "
<< "Previous instance taking too long to shutdown." << simInfo; << "Previous instance taking too long to shutdown." << simInfo;
return; return;
} }
@@ -465,7 +465,7 @@ void SimulatorControlPrivate::startSimulator(QFutureInterface<SimulatorControl::
qCDebug(simulatorLog) << "Error starting simulator."; qCDebug(simulatorLog) << "Error starting simulator.";
} }
} else { } else {
qCDebug(simulatorLog) << "Can not start Simulator device. Simulator not in shutdown state." qCDebug(simulatorLog) << "Cannot start Simulator device. Simulator not in shutdown state."
<< simInfo; << simInfo;
} }

View File

@@ -127,7 +127,7 @@ protected:
~IBuildConfigurationFactory() override; ~IBuildConfigurationFactory() override;
public: public:
// The priority is negative if this factory can not create anything for the target. // The priority is negative if this factory cannot create anything for the target.
// It is 0 for the "default" factory that wants to handle the target. // It is 0 for the "default" factory that wants to handle the target.
// Add 100 for each specialization. // Add 100 for each specialization.
virtual int priority(const Target *parent) const; virtual int priority(const Target *parent) const;

View File

@@ -360,7 +360,7 @@ static Utils::FileName findLocalCompiler(const Utils::FileName &compilerPath,
// Find the "real" compiler if icecc, distcc or similar are in use. Ignore ccache, since that // Find the "real" compiler if icecc, distcc or similar are in use. Ignore ccache, since that
// is local already. // is local already.
// Get the path to the compiler, ignoring direct calls to icecc and distcc as we can not // Get the path to the compiler, ignoring direct calls to icecc and distcc as we cannot
// do anything about those. // do anything about those.
const Utils::FileName compilerDir = compilerPath.parentDir(); const Utils::FileName compilerDir = compilerPath.parentDir();
const QString compilerDirString = compilerDir.toString(); const QString compilerDirString = compilerDir.toString();

View File

@@ -180,7 +180,7 @@ void GnuMakeParser::taskAdded(const Task &task, int linkedLines, int skippedLine
if (possibleFiles.size() == 1) if (possibleFiles.size() == 1)
editable.file = Utils::FileName(possibleFiles.first()); editable.file = Utils::FileName(possibleFiles.first());
// Let the Makestep apply additional heuristics (based on // Let the Makestep apply additional heuristics (based on
// files in ther project) if we can not uniquely // files in ther project) if we cannot uniquely
// identify the file! // identify the file!
} }

View File

@@ -181,7 +181,7 @@ QVariant JsonWizard::value(const QString &n) const
if (v.isValid()) if (v.isValid())
return v; return v;
if (hasField(n)) if (hasField(n))
return field(n); // Can not contain macros! return field(n); // Cannot contain macros!
return QVariant(); return QVariant();
} }

View File

@@ -52,7 +52,7 @@ void OsParser::stdOutput(const QString &line)
if (Utils::HostOsInfo::isWindowsHost()) { if (Utils::HostOsInfo::isWindowsHost()) {
const QString trimmed = line.trimmed(); const QString trimmed = line.trimmed();
if (trimmed == QLatin1String("The process cannot access the file because it is being used by another process.")) { if (trimmed == QLatin1String("The process cannot access the file because it is being used by another process.")) {
addTask(Task(Task::Error, tr("The process can not access the file because it is being used by another process.\n" addTask(Task(Task::Error, tr("The process cannot access the file because it is being used by another process.\n"
"Please close all running instances of your application before starting a build."), "Please close all running instances of your application before starting a build."),
Utils::FileName(), -1, Constants::TASK_CATEGORY_COMPILE)); Utils::FileName(), -1, Constants::TASK_CATEGORY_COMPILE));
m_hasFatalError = true; m_hasFatalError = true;

View File

@@ -398,7 +398,7 @@ QVariantMap UserFileAccessor::preprocessReadSettings(const QVariantMap &data) co
QVariantMap tmp = MergingSettingsAccessor::preprocessReadSettings(data); QVariantMap tmp = MergingSettingsAccessor::preprocessReadSettings(data);
// Move from old Version field to new one: // Move from old Version field to new one:
// This can not be done in a normal upgrader since the version information is needed // This cannot be done in a normal upgrader since the version information is needed
// to decide which upgraders to run // to decide which upgraders to run
const QString obsoleteKey = OBSOLETE_VERSION_KEY; const QString obsoleteKey = OBSOLETE_VERSION_KEY;
const int obsoleteVersion = tmp.value(obsoleteKey, -1).toInt(); const int obsoleteVersion = tmp.value(obsoleteKey, -1).toInt();

View File

@@ -58,7 +58,7 @@ AbstractProperty::AbstractProperty(const PropertyName &propertyName, const Inter
m_view(view) m_view(view)
{ {
Q_ASSERT(!m_model || m_view); Q_ASSERT(!m_model || m_view);
Q_ASSERT_X(!m_propertyName.contains(' '), Q_FUNC_INFO, "a property name can not contain a space"); Q_ASSERT_X(!m_propertyName.contains(' '), Q_FUNC_INFO, "a property name cannot contain a space");
} }
AbstractProperty::AbstractProperty(const Internal::InternalPropertyPointer &property, Model* model, AbstractView *view) AbstractProperty::AbstractProperty(const Internal::InternalPropertyPointer &property, Model* model, AbstractView *view)

View File

@@ -122,7 +122,7 @@ QWidget *SwitchSplitTabWidget::currentWidget() const
void SwitchSplitTabWidget::updateSplitterSizes(int index) void SwitchSplitTabWidget::updateSplitterSizes(int index)
{ {
if (isHidden()) { if (isHidden()) {
// we can not get the sizes if the splitter is hidden // we cannot get the sizes if the splitter is hidden
m_splittSizesAreDirty = true; m_splittSizesAreDirty = true;
return; return;
} }

View File

@@ -1807,7 +1807,7 @@ FileNameList BaseQtVersion::qtCorePaths() const
} }
} }
} }
// Only handle static libs if we can not find dynamic ones: // Only handle static libs if we cannot find dynamic ones:
if (dynamicLibs.isEmpty()) if (dynamicLibs.isEmpty())
return staticLibs; return staticLibs;
return dynamicLibs; return dynamicLibs;

View File

@@ -198,7 +198,7 @@ SubversionDiffEditorController::SubversionDiffEditorController(
: VcsBaseDiffEditorController(document, SubversionPlugin::instance()->client(), workingDirectory) : VcsBaseDiffEditorController(document, SubversionPlugin::instance()->client(), workingDirectory)
, m_state(Idle) , m_state(Idle)
{ {
forceContextLineCount(3); // SVN can not change that when using internal diff forceContextLineCount(3); // SVN cannot change that when using internal diff
} }
void SubversionDiffEditorController::setFilesList(const QStringList &filesList) void SubversionDiffEditorController::setFilesList(const QStringList &filesList)

View File

@@ -280,7 +280,7 @@ bool AddKitOperation::setArguments(const QStringList &args)
if (m_deviceType.isEmpty()) if (m_deviceType.isEmpty())
std::cerr << "No devicetype given for kit." << std::endl << std::endl; std::cerr << "No devicetype given for kit." << std::endl << std::endl;
if (!m_debuggerId.isEmpty() && (!m_debugger.isEmpty() || m_debuggerEngine != 0)) { if (!m_debuggerId.isEmpty() && (!m_debugger.isEmpty() || m_debuggerEngine != 0)) {
std::cerr << "Can not set both debugger id and debugger/debuggerengine." << std::endl << std::endl; std::cerr << "Cannot set both debugger id and debugger/debuggerengine." << std::endl << std::endl;
return false; return false;
} }

View File

@@ -64,9 +64,9 @@ void tst_fileutils::parentDir_data()
QTest::newRow("C:/data") << "C:/data" << "C:/" << ""; QTest::newRow("C:/data") << "C:/data" << "C:/" << "";
QTest::newRow("C:/") << "C:/" << "" << ""; QTest::newRow("C:/") << "C:/" << "" << "";
QTest::newRow("//./com1") << "//./com1" << "/" << ""; QTest::newRow("//./com1") << "//./com1" << "/" << "";
QTest::newRow("//?/path") << "//?/path" << "/" << "Qt 4 can not handle this path."; QTest::newRow("//?/path") << "//?/path" << "/" << "Qt 4 cannot handle this path.";
QTest::newRow("/Global?\?/UNC/host") << "/Global?\?/UNC/host" << "/Global?\?/UNC/host" QTest::newRow("/Global?\?/UNC/host") << "/Global?\?/UNC/host" << "/Global?\?/UNC/host"
<< "Qt 4 can not handle this path."; << "Qt 4 cannot handle this path.";
QTest::newRow("//server/directory/file") QTest::newRow("//server/directory/file")
<< "//server/directory/file" << "//server/directory" << ""; << "//server/directory/file" << "//server/directory" << "";
QTest::newRow("//server/directory") << "//server/directory" << "//server" << ""; QTest::newRow("//server/directory") << "//server/directory" << "//server" << "";