Commit cf3a418c authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix spelling in comments

Krazy was complaining about those.
parent af0413ec
......@@ -12,7 +12,7 @@ Core::NavigationView DirNavigationFactory::createWidget()
{
Core::NavigationView view;
// Create FileSystemModel and set the defauls path as home path
// Create FileSystemModel and set the default path as home path
FileSystemModel* model = new FileSystemModel;
model->setRootPath(QDir::homePath());
......
......@@ -262,7 +262,7 @@
IPlugin::SynchronousShutdown.
Returns IPlugin::AsynchronousShutdown if the plugin needs to perform
asynchonous actions before performing the shutdown.
asynchronous actions before performing the shutdown.
\sa asynchronousShutdownFinished()
*/
......
......@@ -871,7 +871,7 @@ public:
LibraryImport,
FileImport,
DirectoryImport,
UnknownFileImport // refers a file/directoy that wasn't found
UnknownFileImport // refers a file/directory that wasn't found
};
ImportInfo();
......
......@@ -422,7 +422,7 @@ QPacket::~QPacket()
/*!
Creates a copy of \a other. The initial stream positions are shared, but the
two packets are otherwise independant.
two packets are otherwise independent.
*/
QPacket::QPacket(const QPacket & other)
: QDataStream(), b(other.b), buf(0)
......
......@@ -146,7 +146,7 @@ void Manager::initialize()
// internal manager state is changed
connect(this, SIGNAL(stateChanged(bool)), SLOT(onStateChanged(bool)), Qt::QueuedConnection);
// connections to enable/disbale navi widget factory
// connections to enable/disable navi widget factory
ProjectExplorer::SessionManager *sessionManager =
ProjectExplorer::ProjectExplorerPlugin::instance()->session();
connect(sessionManager, SIGNAL(projectAdded(ProjectExplorer::Project*)),
......
......@@ -573,7 +573,7 @@ void Parser::resetDataToCurrentState()
void Parser::onResetDataDone()
{
// internal data is resetted, update a tree and send it back
// internal data is reset, update a tree and send it back
emitCurrentTree();
}
......
......@@ -58,7 +58,7 @@ struct ParserTreeItemPrivate
//! symbol locations
QSet<SymbolLocation> symbolLocations;
//! symbol informations
//! symbol information
QHash<SymbolInformation, ParserTreeItem::Ptr> symbolInformations;
//! An icon
......@@ -190,7 +190,7 @@ void ParserTreeItem::add(const ParserTreeItem::ConstPtr &target)
// add locations
d_ptr->symbolLocations = d_ptr->symbolLocations.unite(target->d_ptr->symbolLocations);
// add childs
// add children
// every target child
QHash<SymbolInformation, ParserTreeItem::Ptr>::const_iterator cur =
target->d_ptr->symbolInformations.constBegin();
......
......@@ -1284,7 +1284,7 @@ QStringList EditorManager::getOpenFileNames() const
void EditorManager::switchToPreferedMode()
{
QString preferedMode;
// Figure out prefered mode for editor
// Figure out preferred mode for editor
if (m_d->m_currentEditor)
preferedMode = m_d->m_currentEditor->preferredModeType();
......
......@@ -185,7 +185,7 @@
// `-+-+-+-+-+-+-+-+-+-+-+>-+
// +
// +
// #Interupt@InferiorRunOk# +
// #Interrupt@InferiorRunOk# +
// + +
// InferiorStopRequested +
// #SpontaneousStop + +
......@@ -2492,7 +2492,7 @@ void DebuggerPluginPrivate::sessionLoaded()
void DebuggerPluginPrivate::aboutToUnloadSession()
{
// Stop debugging the active project when switching sessions.
// Note that at startup, session switches may occur, which interfer
// Note that at startup, session switches may occur, which interfere
// with command-line debugging startup.
// FIXME ABC: Still wanted? Iterate?
//if (d->m_engine && state() != DebuggerNotReady
......
......@@ -4203,7 +4203,7 @@ void GdbEngine::handleGdbError(QProcess::ProcessError error)
{
const QString msg = errorMessage(error);
showMessage(_("HANDLE GDB ERROR: ") + msg);
// Show a message box for asynchroneously reported issues.
// Show a message box for asynchronously reported issues.
switch (error) {
case QProcess::FailedToStart:
// This should be handled by the code trying to start the process.
......
......@@ -167,7 +167,7 @@ void PdbEngine::setupEngine()
connect(this, SIGNAL(outputReady(QByteArray)),
SLOT(handleOutput2(QByteArray)), Qt::QueuedConnection);
// We will stop immediatly, so setup a proper callback.
// We will stop immediately, so setup a proper callback.
PdbCommand cmd;
cmd.callback = &PdbEngine::handleFirstCommand;
m_commands.enqueue(cmd);
......
......@@ -568,7 +568,7 @@ void QmlCppEngine::masterEngineStateChanged(const DebuggerState &newState)
break;
// here, we shut down the qml engine first.
// but due to everything being asyncronous, we cannot guarantee
// but due to everything being asynchronous, we cannot guarantee
// that it is shut down completely before gdb engine is shut down.
case InferiorShutdownRequested:
if (d->m_activeEngine == d->m_qmlEngine) {
......
......@@ -126,7 +126,7 @@ public:
quint64 address; // Displayed address
qint32 generation; // When updated?
bool hasChildren;
bool valueEnabled; // Value will be greyed out or not
bool valueEnabled; // Value will be enabled or not
bool valueEditable; // Value will be editable
bool error;
bool changed;
......
......@@ -3690,7 +3690,7 @@ void FakeVimHandler::Private::search(const SearchData &sd)
}
// Set Cursor. In contrast to the main editor we have the cursor
// position befor the anchor position.
// position before the anchor position.
setAnchorAndPosition(tc.position(), tc.anchor());
// Making this unconditional feels better, but is not "vim like".
......
......@@ -582,7 +582,7 @@ void MiniProjectTargetSelector::updateAction()
QIcon targetIcon = style()->standardIcon(QStyle::SP_ComputerIcon);
const int extrawidth = 110; // Size of margins + icon width
// Some fudge numbers to ensure the menu doesnt grow unbounded
// Some fudge numbers to ensure the menu does not grow unbounded
int maxLength = fontMetrics().averageCharWidth() * 140;
if (project) {
......
......@@ -390,7 +390,7 @@ void MetaInfoPrivate::parseQmlTypes()
if (m_q->hasNodeMetaInfo(qmlType->qmlTypeName(), qmlType->majorVersion(), qmlType->minorVersion()))
continue;
// we ignore the depricated Qt/ namespace
// we ignore the deprecated Qt/ namespace
if (isDepricatedQtType(qmlType->qmlTypeName()))
continue;
......
......@@ -391,7 +391,7 @@ void QmlModelView::activateState(const QmlModelState &state)
m_state = state; //This is hacky. m_state should be controlled by the instances
//### todo: If the state thumbnail code gets refactored.
// this is not neccessary anymore.
// this is not necessary anymore.
NodeInstance newStateInstance = instanceForModelNode(state.modelNode());
......
......@@ -51,7 +51,7 @@ public:
enum ItemTypes {
ElementType,
ElementBindingType, // might contain elements as childs
ElementBindingType, // might contain elements as children
NonElementBindingType // can be filtered out
};
......
......@@ -1476,7 +1476,7 @@ void Qt4ProFileNode::applyEvaluate(bool parseResult, bool async)
// probably all subfiles/projects have changed anyway ...
clear();
m_projectType = projectType;
// really emit here? or at the end? Noone is connected to this signal at the moment
// really emit here? or at the end? Nobody is connected to this signal at the moment
// so we kind of can ignore that question for now
foreach (NodesWatcher *watcher, watchers())
if (Qt4NodesWatcher *qt4Watcher = qobject_cast<Qt4NodesWatcher*>(watcher))
......@@ -1540,7 +1540,7 @@ void Qt4ProFileNode::applyEvaluate(bool parseResult, bool async)
if (existingAtEnd && newExactAtEnd && newCumlativeAtEnd)
break; // we are done, hurray!
// So this is one giant loop comparing 3 lists at once and sorting the comparision
// So this is one giant loop comparing 3 lists at once and sorting the comparison
// into mainly 2 buckets: toAdd and toRemove
// We need to distinguish between nodes that came from exact and cumalative
// parsing, since the update call is diffrent for them
......@@ -1851,7 +1851,7 @@ QStringList Qt4ProFileNode::includePaths(ProFileReader *reader) const
paths.append(reader->absolutePathValues(QLatin1String("INCLUDEPATH"), m_projectDir));
// paths already contains moc dir and ui dir, due to corrrectly parsing uic.prf and moc.prf
// except if those directories don't exist at the time of parsing
// thus we add those directories manually (without checking for existance)
// thus we add those directories manually (without checking for existence)
paths << mocDirPath(reader) << uiDirPath(reader);
paths.removeDuplicates();
return paths;
......
......@@ -770,7 +770,7 @@ void Qt4Project::decrementPendingEvaluateFutures()
qDebug()<<" Oh update is pending start the timer";
m_asyncUpdateTimer.start();
} else if (m_asyncUpdateState != ShuttingDown){
// After beeing done, we need to call:
// After being done, we need to call:
updateFileList();
updateCodeModels();
if (debug)
......
......@@ -210,7 +210,7 @@ void QtOutputFormatter::handleLink(const QString &href)
if (!fileName.isEmpty()) {
QFileInfo fi(fileName);
if (fi.isRelative()) {
// Yeah fileName is relative, no suprise
// Yeah fileName is relative, no surprise
ProjectExplorer::Project *pro = m_project.data();
if (pro) {
QString baseName = fi.fileName();
......
......@@ -456,9 +456,9 @@ void Thread::readStandardOutput()
return;
//qWarning() << "WAKE UP: " << m_output;
//qDebug() << "\n2 ABOUT TO AQUIRE FREE ";
//qDebug() << "\n2 ABOUT TO ACQUIRE FREE ";
freeBytes.acquire();
//qDebug() << "\n2 AQUIRED FREE ";
//qDebug() << "\n2 ACQUIRED FREE ";
buffer = m_output;
m_output.clear();
//m_waitCondition.wakeAll();
......@@ -571,9 +571,9 @@ void tst_Gdb::check(const QByteArray &label, const QByteArray &expected0,
options += ",fancy";
writeToGdb("bb " + options + " " + expanded);
//qDebug() << "\n1 ABOUT TO AQUIRE USED ";
//qDebug() << "\n1 ABOUT TO ACQUIRE USED ";
usedBytes.acquire();
//qDebug() << "\n1 AQUIRED USED ";
//qDebug() << "\n1 ACQUIRED USED ";
QByteArray ba = buffer;
buffer.clear();
//qDebug() << "\n1 ABOUT TO RELEASE FREE ";
......
......@@ -45,7 +45,7 @@
** chParseManager->parse(chFilelist);
**
** if(!chParseManager->checkAllMetadatas(iParseManager)){
** cout << "Folowing interface items are missing:" << endl;
** cout << "Following interface items are missing:" << endl;
** QStringList errorlist = chParseManager->getErrorMsg();
** foreach(QString msg, errorlist){
** cout << (const char *)msg.toLatin1() << endl;
......
......@@ -119,7 +119,7 @@ static bool compareTree(const ModelNode &node1, const ModelNode &node2)
return false;
}
// Compare list of childs
// Compare list of children
{
const QList<ModelNode> childList1 = node1.allDirectSubModelNodes();
const QList<ModelNode> childList2 = node2.allDirectSubModelNodes();
......
......@@ -10,7 +10,7 @@ int main()
0xFA0Bu;
// uppercase X
0X856A;
// negativ values
// negative values
-199;
-017;
// not integer, do nothing
......
......@@ -219,7 +219,7 @@ protected: // visiting methods:
}
virtual bool visit(UiPublicMember *ast) {
// TODO: place the paramters...
// TODO: place the parameters...
// UiParameterList *parameters;
terminal(ast->defaultToken);
......
......@@ -103,7 +103,7 @@ private:
/* TrkWriteQueueDevice: Extends TrkDevice by write message queue allowing
* for queueing messages with a notification callback. If the message receives
* an ACK, the callback is invoked.
* The special message TRK_WRITE_QUEUE_NOOP_CODE code can be used for synchronisation.
* The special message TRK_WRITE_QUEUE_NOOP_CODE code can be used for synchronization.
* The respective message will not be sent, the callback is just invoked. */
enum { TRK_WRITE_QUEUE_NOOP_CODE = 0x7f };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment