forked from qt-creator/qt-creator
Fix some typos
Change-Id: I3be73c2a4d256a0d28e863fd2517a4d7442b34d8 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
This commit is contained in:
@@ -662,7 +662,7 @@
|
|||||||
Also, the debugger displays access data for QFileInfo and provides
|
Also, the debugger displays access data for QFileInfo and provides
|
||||||
access to the "real" contents of QVariant.
|
access to the "real" contents of QVariant.
|
||||||
|
|
||||||
Right-click in the the \gui{Locals and Expressions} view to open a context
|
Right-click in the \gui{Locals and Expressions} view to open a context
|
||||||
menu that provides additional options for viewing data. The available
|
menu that provides additional options for viewing data. The available
|
||||||
options depend on the type of the current items, and are provided by the
|
options depend on the type of the current items, and are provided by the
|
||||||
\l{Using Debugging Helpers}{Debugging Helpers}. Typically, string-like data,
|
\l{Using Debugging Helpers}{Debugging Helpers}. Typically, string-like data,
|
||||||
|
@@ -58,7 +58,7 @@
|
|||||||
\li \l{Configuring the Editor}
|
\li \l{Configuring the Editor}
|
||||||
|
|
||||||
You can change the fonts, colors, highlighting, and indentation.
|
You can change the fonts, colors, highlighting, and indentation.
|
||||||
If you are used to the the Vim editor, you can even run the main
|
If you are used to the Vim editor, you can even run the main
|
||||||
editor in a manner similar to it in the \gui{FakeVim} mode.
|
editor in a manner similar to it in the \gui{FakeVim} mode.
|
||||||
|
|
||||||
\endlist
|
\endlist
|
||||||
|
4
src/libs/3rdparty/cplusplus/Token.h
vendored
4
src/libs/3rdparty/cplusplus/Token.h
vendored
@@ -336,7 +336,7 @@ public:
|
|||||||
unsigned kind : 8;
|
unsigned kind : 8;
|
||||||
// The token starts a new line.
|
// The token starts a new line.
|
||||||
unsigned newline : 1;
|
unsigned newline : 1;
|
||||||
// The token is preceeded by whitespace(s).
|
// The token is preceded by whitespace(s).
|
||||||
unsigned whitespace : 1;
|
unsigned whitespace : 1;
|
||||||
// The token is joined with the previous one.
|
// The token is joined with the previous one.
|
||||||
unsigned joined : 1;
|
unsigned joined : 1;
|
||||||
@@ -354,7 +354,7 @@ public:
|
|||||||
unsigned generated : 1;
|
unsigned generated : 1;
|
||||||
// Unused...
|
// Unused...
|
||||||
unsigned pad : 3;
|
unsigned pad : 3;
|
||||||
// The token lenght.
|
// The token length.
|
||||||
unsigned length : 16;
|
unsigned length : 16;
|
||||||
};
|
};
|
||||||
union {
|
union {
|
||||||
|
@@ -197,7 +197,7 @@ void TranslationUnit::tokenize()
|
|||||||
if (tk.is(T_TILDE)) {
|
if (tk.is(T_TILDE)) {
|
||||||
lex(&tk);
|
lex(&tk);
|
||||||
|
|
||||||
// Get the total number of generated tokens and specifiy "null"
|
// Get the total number of generated tokens and specify "null"
|
||||||
// information for them.
|
// information for them.
|
||||||
unsigned totalGenerated =
|
unsigned totalGenerated =
|
||||||
static_cast<unsigned>(strtoul(tk.spell(), 0, 0));
|
static_cast<unsigned>(strtoul(tk.spell(), 0, 0));
|
||||||
|
@@ -976,7 +976,7 @@ bool Preprocessor::handleIdentifier(PPToken *tk)
|
|||||||
|
|
||||||
QVector<PPToken> body = macro->definitionTokens();
|
QVector<PPToken> body = macro->definitionTokens();
|
||||||
|
|
||||||
// Withing nested expansion we might reach a previously added marker token. In this case,
|
// Within nested expansion we might reach a previously added marker token. In this case,
|
||||||
// we need to move it from its current possition to outside the nesting.
|
// we need to move it from its current possition to outside the nesting.
|
||||||
PPToken oldMarkerTk;
|
PPToken oldMarkerTk;
|
||||||
|
|
||||||
@@ -1837,13 +1837,13 @@ void Preprocessor::handleElifDirective(PPToken *tk, const PPToken £Token)
|
|||||||
m_state.m_skipping[m_state.m_ifLevel] = true;
|
m_state.m_skipping[m_state.m_ifLevel] = true;
|
||||||
} else if (m_state.m_trueTest[m_state.m_ifLevel]) {
|
} else if (m_state.m_trueTest[m_state.m_ifLevel]) {
|
||||||
if (!m_state.m_skipping[m_state.m_ifLevel]) {
|
if (!m_state.m_skipping[m_state.m_ifLevel]) {
|
||||||
// start skipping because the preceeding then-part was not skipped
|
// start skipping because the preceding then-part was not skipped
|
||||||
m_state.m_skipping[m_state.m_ifLevel] = true;
|
m_state.m_skipping[m_state.m_ifLevel] = true;
|
||||||
if (m_client)
|
if (m_client)
|
||||||
startSkippingBlocks(poundToken);
|
startSkippingBlocks(poundToken);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// preceeding then-part was skipped, so calculate if we should start
|
// preceding then-part was skipped, so calculate if we should start
|
||||||
// skipping, depending on the condition
|
// skipping, depending on the condition
|
||||||
Value result;
|
Value result;
|
||||||
evalExpression(tk, result);
|
evalExpression(tk, result);
|
||||||
|
@@ -1793,7 +1793,7 @@ static bool dumpQStringFromQPrivateClass(const SymbolGroupValue &v,
|
|||||||
v.node()->symbolGroup()->addSymbol(v.module(), symbolName, std::string(), &errorMessage);
|
v.node()->symbolGroup()->addSymbol(v.module(), symbolName, std::string(), &errorMessage);
|
||||||
if (!stringNode && errorMessage.find("DEBUG_ANY_ID") != std::string::npos) {
|
if (!stringNode && errorMessage.find("DEBUG_ANY_ID") != std::string::npos) {
|
||||||
// HACK:
|
// HACK:
|
||||||
// In some rare cases the the AddSymbol can't create a node with a given module name,
|
// In some rare cases the AddSymbol can't create a node with a given module name,
|
||||||
// but is able to add the symbol without any modulename.
|
// but is able to add the symbol without any modulename.
|
||||||
dumpType = QtInfo::get(v.context()).prependModuleAndNameSpace("QString", "", QtInfo::get(v.context()).nameSpace);
|
dumpType = QtInfo::get(v.context()).prependModuleAndNameSpace("QString", "", QtInfo::get(v.context()).nameSpace);
|
||||||
symbolName = SymbolGroupValue::pointedToSymbolName(stringAddress , dumpType);
|
symbolName = SymbolGroupValue::pointedToSymbolName(stringAddress , dumpType);
|
||||||
@@ -2557,7 +2557,7 @@ static bool dumpQVariant(const SymbolGroupValue &v, std::wostream &str, void **s
|
|||||||
if (const SymbolGroupValue sv = dataV.typeCast(qtInfo.prependQtCoreModule("QString *").c_str())) {
|
if (const SymbolGroupValue sv = dataV.typeCast(qtInfo.prependQtCoreModule("QString *").c_str())) {
|
||||||
if (!dumpQString(sv, str)) {
|
if (!dumpQString(sv, str)) {
|
||||||
// HACK:
|
// HACK:
|
||||||
// In some rare cases the the AddSymbol can't create a node with a given module name,
|
// In some rare cases the AddSymbol can't create a node with a given module name,
|
||||||
// but is able to add the symbol without any modulename.
|
// but is able to add the symbol without any modulename.
|
||||||
if (const SymbolGroupValue svc = dataV.typeCast("QString *"))
|
if (const SymbolGroupValue svc = dataV.typeCast("QString *"))
|
||||||
dumpQString(svc, str);
|
dumpQString(svc, str);
|
||||||
|
@@ -514,7 +514,7 @@ QString FileName::toUserOutput() const
|
|||||||
|
|
||||||
/// Find the parent directory of a given directory.
|
/// Find the parent directory of a given directory.
|
||||||
|
|
||||||
/// Returns an empty FileName if the current dirctory is already
|
/// Returns an empty FileName if the current directory is already
|
||||||
/// a root level directory.
|
/// a root level directory.
|
||||||
|
|
||||||
/// \returns \a FileName with the last segment removed.
|
/// \returns \a FileName with the last segment removed.
|
||||||
|
@@ -89,7 +89,7 @@ QString JsonValue::kindToString(JsonValue::Kind kind)
|
|||||||
if (kind == Null)
|
if (kind == Null)
|
||||||
return QLatin1String("null");
|
return QLatin1String("null");
|
||||||
|
|
||||||
return QLatin1String("unkown");
|
return QLatin1String("unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
JsonValue *JsonValue::build(const QVariant &variant, JsonMemoryPool *pool)
|
JsonValue *JsonValue::build(const QVariant &variant, JsonMemoryPool *pool)
|
||||||
|
@@ -680,7 +680,7 @@ void QtcProcess::start()
|
|||||||
qWarning("QtcProcess::start: Empty environment set when running '%s'.", qPrintable(m_command));
|
qWarning("QtcProcess::start: Empty environment set when running '%s'.", qPrintable(m_command));
|
||||||
env = m_environment;
|
env = m_environment;
|
||||||
|
|
||||||
// If the process environemnt has no libraryPath,
|
// If the process environment has no libraryPath,
|
||||||
// Qt will copy creator's libraryPath into the process environment.
|
// Qt will copy creator's libraryPath into the process environment.
|
||||||
// That's brain dead, and we work around it
|
// That's brain dead, and we work around it
|
||||||
if (osType != OsTypeWindows) { // a.k.a "Unixoid"
|
if (osType != OsTypeWindows) { // a.k.a "Unixoid"
|
||||||
|
@@ -499,7 +499,7 @@ bool AndroidManifestEditorWidget::open(QString *errorString, const QString &file
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// some error occured
|
// some error occurred
|
||||||
updateInfoBar(error, errorLine, errorColumn);
|
updateInfoBar(error, errorLine, errorColumn);
|
||||||
setActivePage(Source);
|
setActivePage(Source);
|
||||||
return true;
|
return true;
|
||||||
|
@@ -111,7 +111,7 @@ public:
|
|||||||
bool hasError() const;
|
bool hasError() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return True, if the the has been cancelled by MakefileParserThread::cancel().
|
* @return True, if the parsing has been cancelled by MakefileParserThread::cancel().
|
||||||
*/
|
*/
|
||||||
bool isCanceled() const;
|
bool isCanceled() const;
|
||||||
|
|
||||||
|
@@ -1121,7 +1121,7 @@ void ClearCasePlugin::diffActivity()
|
|||||||
// latest version - updated each line
|
// latest version - updated each line
|
||||||
filever[file].second = shortver;
|
filever[file].second = shortver;
|
||||||
|
|
||||||
// pre-first version. only for the first occurence
|
// pre-first version. only for the first occurrence
|
||||||
if (filever[file].first.isEmpty()) {
|
if (filever[file].first.isEmpty()) {
|
||||||
int verpos = shortver.lastIndexOf(QRegExp(QLatin1String("[^0-9]"))) + 1;
|
int verpos = shortver.lastIndexOf(QRegExp(QLatin1String("[^0-9]"))) + 1;
|
||||||
int vernum = shortver.mid(verpos).toInt();
|
int vernum = shortver.mid(verpos).toInt();
|
||||||
|
@@ -736,7 +736,7 @@ void CMakeRunPage::runCMake()
|
|||||||
m_cmakeWizard->setKit(generatorInfo.kit());
|
m_cmakeWizard->setKit(generatorInfo.kit());
|
||||||
m_cmakeWizard->setUseNinja(generatorInfo.isNinja());
|
m_cmakeWizard->setUseNinja(generatorInfo.isNinja());
|
||||||
|
|
||||||
// If mode is initial the user chooses the kit, otherwise it's already choosen
|
// If mode is initial the user chooses the kit, otherwise it's already chosen
|
||||||
// and the environment already contains the kit
|
// and the environment already contains the kit
|
||||||
if (m_mode == Initial)
|
if (m_mode == Initial)
|
||||||
generatorInfo.kit()->addToEnvironment(env);
|
generatorInfo.kit()->addToEnvironment(env);
|
||||||
|
@@ -231,7 +231,7 @@ void CodeFormatter::recalculateStateAfter(const QTextBlock &block)
|
|||||||
switch (kind) {
|
switch (kind) {
|
||||||
case T_RBRACKET: turnInto(lambda_declarator_expected); break; // we can't determine exact kind of expression. Try again
|
case T_RBRACKET: turnInto(lambda_declarator_expected); break; // we can't determine exact kind of expression. Try again
|
||||||
case T_COMMA:
|
case T_COMMA:
|
||||||
case T_EQUAL: turnInto(lambda_instroducer); break; // ',' or '=' inside brackets can be only whithin lambda capture list
|
case T_EQUAL: turnInto(lambda_instroducer); break; // ',' or '=' inside brackets can be only within lambda capture list
|
||||||
case T_IDENTIFIER: // '&', id, 'this' are allowed both in the capture list and subscribtion
|
case T_IDENTIFIER: // '&', id, 'this' are allowed both in the capture list and subscribtion
|
||||||
case T_AMPER:
|
case T_AMPER:
|
||||||
case T_THIS: break;
|
case T_THIS: break;
|
||||||
|
@@ -402,7 +402,7 @@ QByteArray CppModelManager::internalDefinedMacros() const
|
|||||||
return macros;
|
return macros;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function will aquire the mutex!
|
/// This function will acquire the mutex!
|
||||||
void CppModelManager::dumpModelManagerConfiguration()
|
void CppModelManager::dumpModelManagerConfiguration()
|
||||||
{
|
{
|
||||||
// Tons of debug output...
|
// Tons of debug output...
|
||||||
|
@@ -1673,7 +1673,7 @@ void CdbEngine::handleResolveSymbol(const CdbBuiltinCommandPtr &command)
|
|||||||
|
|
||||||
// Find the function address matching needle in a list of function
|
// Find the function address matching needle in a list of function
|
||||||
// addresses obtained from the 'x' command. Check for the
|
// addresses obtained from the 'x' command. Check for the
|
||||||
// mimimum POSITIVE offset (needle >= function address.)
|
// minimum POSITIVE offset (needle >= function address.)
|
||||||
static inline quint64 findClosestFunctionAddress(const QList<quint64> &addresses,
|
static inline quint64 findClosestFunctionAddress(const QList<quint64> &addresses,
|
||||||
quint64 needle)
|
quint64 needle)
|
||||||
{
|
{
|
||||||
|
@@ -2563,7 +2563,7 @@ void GdbEngine::handleBreakInsert1(const GdbResponse &response)
|
|||||||
const BreakpointModelId id = response.cookie.value<BreakpointModelId>();
|
const BreakpointModelId id = response.cookie.value<BreakpointModelId>();
|
||||||
if (handler->state(id) == BreakpointRemoveRequested) {
|
if (handler->state(id) == BreakpointRemoveRequested) {
|
||||||
if (response.resultClass == GdbResultDone) {
|
if (response.resultClass == GdbResultDone) {
|
||||||
// This delete was defered. Act now.
|
// This delete was deferred. Act now.
|
||||||
const GdbMi mainbkpt = response.data["bkpt"];
|
const GdbMi mainbkpt = response.data["bkpt"];
|
||||||
handler->notifyBreakpointRemoveProceeding(id);
|
handler->notifyBreakpointRemoveProceeding(id);
|
||||||
QByteArray nr = mainbkpt["number"].data();
|
QByteArray nr = mainbkpt["number"].data();
|
||||||
|
@@ -3150,7 +3150,7 @@ void FakeVimHandler::Private::fixSelection()
|
|||||||
|
|
||||||
if (g.movetype == MoveExclusive && g.subsubmode == NoSubSubMode) {
|
if (g.movetype == MoveExclusive && g.subsubmode == NoSubSubMode) {
|
||||||
if (anchor() < position() && atBlockStart()) {
|
if (anchor() < position() && atBlockStart()) {
|
||||||
// Exlusive motion ending at the beginning of line
|
// Exclusive motion ending at the beginning of line
|
||||||
// becomes inclusive and end is moved to end of previous line.
|
// becomes inclusive and end is moved to end of previous line.
|
||||||
g.movetype = MoveInclusive;
|
g.movetype = MoveInclusive;
|
||||||
moveToStartOfLine();
|
moveToStartOfLine();
|
||||||
|
@@ -3215,7 +3215,7 @@ bool GitClient::addAndCommit(const QString &repositoryDirectory,
|
|||||||
filesToReset.append(newFile);
|
filesToReset.append(newFile);
|
||||||
}
|
}
|
||||||
} else if (state & UnmergedFile && checked) {
|
} else if (state & UnmergedFile && checked) {
|
||||||
QTC_ASSERT(false, continue); // There should not be unmerged files when commiting!
|
QTC_ASSERT(false, continue); // There should not be unmerged files when committing!
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state == ModifiedFile && checked) {
|
if (state == ModifiedFile && checked) {
|
||||||
@@ -3231,7 +3231,7 @@ bool GitClient::addAndCommit(const QString &repositoryDirectory,
|
|||||||
} else if (state == CopiedFile && checked) {
|
} else if (state == CopiedFile && checked) {
|
||||||
QTC_ASSERT(false, continue); // only is noticed after adding a new file to the index
|
QTC_ASSERT(false, continue); // only is noticed after adding a new file to the index
|
||||||
} else if (state == UnmergedFile && checked) {
|
} else if (state == UnmergedFile && checked) {
|
||||||
QTC_ASSERT(false, continue); // There should not be unmerged files when commiting!
|
QTC_ASSERT(false, continue); // There should not be unmerged files when committing!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -227,7 +227,7 @@ QString GitoriousRepositoryWizardPage::repositoryName() const
|
|||||||
|
|
||||||
QUrl GitoriousRepositoryWizardPage::repositoryURL() const
|
QUrl GitoriousRepositoryWizardPage::repositoryURL() const
|
||||||
{
|
{
|
||||||
// Find by name (as we sorted the the repositories)
|
// Find by name (as we sorted the repositories)
|
||||||
const QString repoName = repositoryName();
|
const QString repoName = repositoryName();
|
||||||
foreach (const GitoriousRepository &r, m_projectPage->project()->repositories)
|
foreach (const GitoriousRepository &r, m_projectPage->project()->repositories)
|
||||||
if (r.name == repoName)
|
if (r.name == repoName)
|
||||||
|
@@ -896,7 +896,7 @@ void MiniProjectTargetSelector::doLayout(bool keepSize)
|
|||||||
int heightWithoutKitArea = 0;
|
int heightWithoutKitArea = 0;
|
||||||
|
|
||||||
if (!onlySummary) {
|
if (!onlySummary) {
|
||||||
// list widget heigth
|
// list widget height
|
||||||
int maxItemCount = m_projectListWidget->maxCount();
|
int maxItemCount = m_projectListWidget->maxCount();
|
||||||
for (int i = TARGET; i < LAST; ++i)
|
for (int i = TARGET; i < LAST; ++i)
|
||||||
maxItemCount = qMax(maxItemCount, m_listWidgets[i]->maxCount());
|
maxItemCount = qMax(maxItemCount, m_listWidgets[i]->maxCount());
|
||||||
@@ -906,7 +906,7 @@ void MiniProjectTargetSelector::doLayout(bool keepSize)
|
|||||||
heightWithoutKitArea = height() - oldSummaryLabelY + 1;
|
heightWithoutKitArea = height() - oldSummaryLabelY + 1;
|
||||||
} else {
|
} else {
|
||||||
// Clamp the size of the listwidgets to be
|
// Clamp the size of the listwidgets to be
|
||||||
// at least as high as the the sidebar button
|
// at least as high as the sidebar button
|
||||||
// and at most twice as high
|
// and at most twice as high
|
||||||
heightWithoutKitArea = summaryLabelHeight
|
heightWithoutKitArea = summaryLabelHeight
|
||||||
+ qBound(alignedWithActionHeight,
|
+ qBound(alignedWithActionHeight,
|
||||||
|
@@ -319,7 +319,7 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
// everything
|
// everything
|
||||||
|
|
||||||
// Emited whenever the model needs to send a update signal.
|
// Emitted whenever the model needs to send a update signal.
|
||||||
void nodeUpdated(ProjectExplorer::Node *node);
|
void nodeUpdated(ProjectExplorer::Node *node);
|
||||||
|
|
||||||
// projects
|
// projects
|
||||||
|
@@ -95,7 +95,7 @@ static QString winExpandDelayedEnvReferences(QString in, const Utils::Environmen
|
|||||||
pos = nextPos;
|
pos = nextPos;
|
||||||
} else {
|
} else {
|
||||||
// Not sure about this, but we need to account for the case where
|
// Not sure about this, but we need to account for the case where
|
||||||
// the end of the replacement doesn't have the directory seperator and
|
// the end of the replacement doesn't have the directory separator and
|
||||||
// neither does the start of the insert. This solution assumes:
|
// neither does the start of the insert. This solution assumes:
|
||||||
// 1) Having \\ in a path is valid (it is on WinXP)
|
// 1) Having \\ in a path is valid (it is on WinXP)
|
||||||
// 2) We're only replacing in paths. This will cause problems if there's
|
// 2) We're only replacing in paths. This will cause problems if there's
|
||||||
|
@@ -182,7 +182,7 @@ void QmakeBuildConfiguration::qtVersionsChanged(const QList<int> &,const QList<i
|
|||||||
|
|
||||||
void QmakeBuildConfiguration::updateShadowBuild()
|
void QmakeBuildConfiguration::updateShadowBuild()
|
||||||
{
|
{
|
||||||
// We also emit buildDirectoryChanged if the the Qt version's supportShadowBuild changed
|
// We also emit buildDirectoryChanged if the Qt version's supportShadowBuild changed
|
||||||
bool currentShadowBuild = supportsShadowBuilds();
|
bool currentShadowBuild = supportsShadowBuilds();
|
||||||
if (currentShadowBuild != m_qtVersionSupportsShadowBuilds) {
|
if (currentShadowBuild != m_qtVersionSupportsShadowBuilds) {
|
||||||
if (!currentShadowBuild)
|
if (!currentShadowBuild)
|
||||||
|
@@ -617,7 +617,7 @@ void ModelNode::destroy()
|
|||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Returns if the the two nodes reference the same entity in the same model
|
\brief Returns if the two nodes reference the same entity in the same model
|
||||||
*/
|
*/
|
||||||
bool operator ==(const ModelNode &firstNode, const ModelNode &secondNode)
|
bool operator ==(const ModelNode &firstNode, const ModelNode &secondNode)
|
||||||
{
|
{
|
||||||
@@ -630,7 +630,7 @@ bool operator ==(const ModelNode &firstNode, const ModelNode &secondNode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Returns if the the two nodes do not reference the same entity in the same model
|
\brief Returns if the two nodes do not reference the same entity in the same model
|
||||||
*/
|
*/
|
||||||
bool operator !=(const ModelNode &firstNode, const ModelNode &secondNode)
|
bool operator !=(const ModelNode &firstNode, const ModelNode &secondNode)
|
||||||
{
|
{
|
||||||
|
@@ -119,7 +119,7 @@ static QString findQMakeLine(const QString &makefile, const QString &key)
|
|||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function trims the "#Command /path/to/qmake" from the the line
|
/// This function trims the "#Command /path/to/qmake" from the line
|
||||||
static QString trimLine(const QString line)
|
static QString trimLine(const QString line)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -131,7 +131,7 @@ BaseTextMark::BaseTextMark(const QString &fileName, int lineNumber)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// we need two phase initilization, since we are calling virtual functions
|
// we need two phase initialization, since we are calling virtual functions
|
||||||
// of BaseTextMark in add() and also accessing widthFactor
|
// of BaseTextMark in add() and also accessing widthFactor
|
||||||
// which might be set in the derived constructor
|
// which might be set in the derived constructor
|
||||||
void BaseTextMark::init()
|
void BaseTextMark::init()
|
||||||
|
@@ -114,7 +114,7 @@ static const char *belongingClassName(const CPlusPlus::Function *function)
|
|||||||
files from the list by pressing unchecking them or diff the selection
|
files from the list by pressing unchecking them or diff the selection
|
||||||
by doubleclicking.
|
by doubleclicking.
|
||||||
|
|
||||||
The action matching the the ids (unless 0) of the parameter struct will be
|
The action matching the ids (unless 0) of the parameter struct will be
|
||||||
registered with the EditorWidget and submit/diff actions will be added to
|
registered with the EditorWidget and submit/diff actions will be added to
|
||||||
a toolbar.
|
a toolbar.
|
||||||
|
|
||||||
|
@@ -311,7 +311,7 @@ def deleteAppFromWinFW(workingDir, projectName, isReleaseBuild=True):
|
|||||||
test.warning("Could not delete %s as allowed program from win firewall" % (projectName))
|
test.warning("Could not delete %s as allowed program from win firewall" % (projectName))
|
||||||
|
|
||||||
# helper that can modify the win firewall to allow a program to communicate through it or delete it
|
# helper that can modify the win firewall to allow a program to communicate through it or delete it
|
||||||
# param addToFW defines whether to add (True) or delete (False) this programm to/from the firewall
|
# param addToFW defines whether to add (True) or delete (False) this program to/from the firewall
|
||||||
def __configureFW__(workingDir, projectName, isReleaseBuild, addToFW=True):
|
def __configureFW__(workingDir, projectName, isReleaseBuild, addToFW=True):
|
||||||
if isReleaseBuild == None:
|
if isReleaseBuild == None:
|
||||||
if projectName[-4:] == ".exe":
|
if projectName[-4:] == ".exe":
|
||||||
|
@@ -322,7 +322,7 @@ def verifyOutput(string, substring, outputFrom, outputIn):
|
|||||||
else:
|
else:
|
||||||
test.passes("Output from " + outputFrom + " found at position " + str(index) + " of " + outputIn)
|
test.passes("Output from " + outputFrom + " found at position " + str(index) + " of " + outputIn)
|
||||||
|
|
||||||
# function that verifies the existance and the read permissions
|
# function that verifies the existence and the read permissions
|
||||||
# of the given file path
|
# of the given file path
|
||||||
# if the executing user hasn't the read permission it checks
|
# if the executing user hasn't the read permission it checks
|
||||||
# the parent folders for their execute permission
|
# the parent folders for their execute permission
|
||||||
@@ -461,7 +461,7 @@ def iterateQtVersions(keepOptionsOpen=False, alreadyOnOptionsDialog=False,
|
|||||||
t,v,tb = sys.exc_info()
|
t,v,tb = sys.exc_info()
|
||||||
currResult = None
|
currResult = None
|
||||||
test.fatal("Function to additionally execute on Options Dialog could not be found or "
|
test.fatal("Function to additionally execute on Options Dialog could not be found or "
|
||||||
"an exception occured while executing it.", "%s(%s)" % (str(t), str(v)))
|
"an exception occurred while executing it.", "%s(%s)" % (str(t), str(v)))
|
||||||
additionalResult.append(currResult)
|
additionalResult.append(currResult)
|
||||||
if not keepOptionsOpen:
|
if not keepOptionsOpen:
|
||||||
clickButton(waitForObject(":Options.Cancel_QPushButton"))
|
clickButton(waitForObject(":Options.Cancel_QPushButton"))
|
||||||
@@ -524,7 +524,7 @@ def iterateKits(keepOptionsOpen=False, alreadyOnOptionsDialog=False,
|
|||||||
t,v,tb = sys.exc_info()
|
t,v,tb = sys.exc_info()
|
||||||
currResult = None
|
currResult = None
|
||||||
test.fatal("Function to additionally execute on Options Dialog could not be "
|
test.fatal("Function to additionally execute on Options Dialog could not be "
|
||||||
"found or an exception occured while executing it.", "%s(%s)" %
|
"found or an exception occurred while executing it.", "%s(%s)" %
|
||||||
(str(t), str(v)))
|
(str(t), str(v)))
|
||||||
additionalResult.append(currResult)
|
additionalResult.append(currResult)
|
||||||
if not keepOptionsOpen:
|
if not keepOptionsOpen:
|
||||||
|
@@ -82,12 +82,12 @@ class JIRA:
|
|||||||
JIRA.__instance__._number = number
|
JIRA.__instance__._number = number
|
||||||
JIRA.__instance__.__fetchResolutionFromJira__()
|
JIRA.__instance__.__fetchResolutionFromJira__()
|
||||||
|
|
||||||
# overriden to make it possible to use JIRA just like the
|
# overridden to make it possible to use JIRA just like the
|
||||||
# underlying implementation (__impl)
|
# underlying implementation (__impl)
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
return getattr(self.__instance__, attr)
|
return getattr(self.__instance__, attr)
|
||||||
|
|
||||||
# overriden to make it possible to use JIRA just like the
|
# overridden to make it possible to use JIRA just like the
|
||||||
# underlying implementation (__impl)
|
# underlying implementation (__impl)
|
||||||
def __setattr__(self, attr, value):
|
def __setattr__(self, attr, value):
|
||||||
return setattr(self.__instance__, attr, value)
|
return setattr(self.__instance__, attr, value)
|
||||||
|
@@ -33,7 +33,7 @@ def main():
|
|||||||
startApplication("qtcreator" + SettingsPath)
|
startApplication("qtcreator" + SettingsPath)
|
||||||
if not startedWithoutPluginError():
|
if not startedWithoutPluginError():
|
||||||
return
|
return
|
||||||
# using a temporary directory won't mess up a potentially exisiting
|
# using a temporary directory won't mess up a potentially existing
|
||||||
createNewQtQuickApplication(tempDir(), "untitled")
|
createNewQtQuickApplication(tempDir(), "untitled")
|
||||||
if not prepareQmlFile():
|
if not prepareQmlFile():
|
||||||
invokeMenuItem("File", "Save All")
|
invokeMenuItem("File", "Save All")
|
||||||
|
Reference in New Issue
Block a user