From 59339941e0e6e2b8648c2e128284de188a65714b Mon Sep 17 00:00:00 2001 From: Sergio Ahumada Date: Wed, 11 Jul 2012 14:44:38 +0200 Subject: Fix some spelling errors Change-Id: I19d3b2e9a5180b13deb828b55195404ef20be295 Reviewed-by: Daniel Teske Reviewed-by: Giuseppe D'Angelo --- src/corelib/animation/qabstractanimation.cpp | 4 ++-- src/corelib/arch/qatomic_msvc.h | 2 +- src/corelib/global/qglobal.cpp | 2 +- src/corelib/io/qurlquery.cpp | 2 +- src/corelib/json/qjsonparser.cpp | 2 +- src/corelib/json/qjsonvalue.cpp | 2 +- src/corelib/plugin/qlibrary.cpp | 2 +- src/corelib/thread/qmutex.cpp | 8 ++++---- src/corelib/tools/qdatetime.cpp | 2 +- src/corelib/tools/qregularexpression.cpp | 8 ++++---- src/gui/accessible/qaccessible2.cpp | 2 +- src/gui/kernel/qopenglcontext.cpp | 2 +- src/gui/painting/qpaintengine_blitter.cpp | 2 +- src/network/access/qhttpnetworkconnection.cpp | 4 ++-- src/network/access/qhttpnetworkconnectionchannel.cpp | 4 ++-- src/network/access/qhttpnetworkreply.cpp | 2 +- src/network/socket/qabstractsocket.cpp | 4 ++-- src/network/socket/qsocks5socketengine.cpp | 2 +- src/opengl/qgl_qpa.cpp | 2 +- src/plugins/platforms/openwfd/qopenwfddevice.cpp | 2 +- src/plugins/platforms/openwfd/qopenwfdintegration.cpp | 2 +- src/plugins/platforms/xcb/qxcbconnection.cpp | 2 +- src/plugins/platforms/xcb/qxcbconnection_xi2.cpp | 2 +- src/tools/qdoc/node.cpp | 2 +- src/widgets/itemviews/qheaderview.cpp | 4 ++-- src/widgets/styles/qstylesheetstyle.cpp | 2 +- src/widgets/widgets/qdockwidget.cpp | 2 +- src/xml/dom/qdom.cpp | 6 +++--- tests/auto/corelib/json/tst_qtjson.cpp | 4 ++-- tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp | 2 +- .../kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp | 2 +- tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp | 2 +- tests/auto/widgets/itemviews/qitemdelegate/tst_qitemdelegate.cpp | 2 +- tests/benchmarks/corelib/tools/qregexp/main.cpp | 2 +- .../functional/GraphicsViewBenchmark/widgets/topbar.cpp | 2 +- .../benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp | 2 +- tests/benchmarks/network/kernel/qhostinfo/main.cpp | 2 +- tests/manual/bearerex/bearerex.cpp | 2 +- 38 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp index e56d1e26d3..296d583365 100644 --- a/src/corelib/animation/qabstractanimation.cpp +++ b/src/corelib/animation/qabstractanimation.cpp @@ -856,7 +856,7 @@ qint64 QAnimationDriver::elapsed() const \fn QAnimationDriver::started() This signal is emitted by the animation framework to notify the driver - that continous animation has started. + that continuous animation has started. \internal */ @@ -865,7 +865,7 @@ qint64 QAnimationDriver::elapsed() const \fn QAnimationDriver::stopped() This signal is emitted by the animation framework to notify the driver - that continous animation has stopped. + that continuous animation has stopped. \internal */ diff --git a/src/corelib/arch/qatomic_msvc.h b/src/corelib/arch/qatomic_msvc.h index 4f7f971ec8..3e0923b0be 100644 --- a/src/corelib/arch/qatomic_msvc.h +++ b/src/corelib/arch/qatomic_msvc.h @@ -273,7 +273,7 @@ template struct QAtomicOpsBySize; template <> struct QAtomicOpsBySize<4> : QGenericAtomicOps > { - // The 32-bit Interlocked*() API takes paramters as longs. + // The 32-bit Interlocked*() API takes parameters as longs. typedef long Type; static inline bool isReferenceCountingNative() { return true; } diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp index caf88be3ba..ada95fcaf5 100644 --- a/src/corelib/global/qglobal.cpp +++ b/src/corelib/global/qglobal.cpp @@ -1825,7 +1825,7 @@ const QSysInfo::WinVersion QSysInfo::WindowsVersion = QSysInfo::windowsVersion() \since 5.0 Tells the compiler that the current point cannot be reached by any - execution, so it may optimise any code paths leading here as dead code, as + execution, so it may optimize any code paths leading here as dead code, as well as code continuing from here. This macro is useful to mark impossible conditions. For example, given the diff --git a/src/corelib/io/qurlquery.cpp b/src/corelib/io/qurlquery.cpp index 24742e4390..3a23e9748d 100644 --- a/src/corelib/io/qurlquery.cpp +++ b/src/corelib/io/qurlquery.cpp @@ -442,7 +442,7 @@ static void recodeAndAppend(QString &to, const QString &input, Returns the reconstructed query string, formed from the key-value pairs currently stored in this QUrlQuery object and separated by the query delimiters chosen for this object. The keys and values are encoded using - the options given by the \a encoding paramter. + the options given by the \a encoding parameter. For this function, the only ambiguous delimiter is the hash ("#"), as in URLs it is used to separate the query string from the fragment that may diff --git a/src/corelib/json/qjsonparser.cpp b/src/corelib/json/qjsonparser.cpp index 5372bc0a7a..4bec3fdd82 100644 --- a/src/corelib/json/qjsonparser.cpp +++ b/src/corelib/json/qjsonparser.cpp @@ -91,7 +91,7 @@ QT_BEGIN_NAMESPACE This enum describes the type of error that occurred during the parsing of a JSON document. - \value NoError No error occured + \value NoError No error occurred \value UnterminatedObject An object is not correctly terminated with a closing curly bracket \value MissingNameSeparator A comma separating different items is missing \value UnterminatedArray The array is not correctly terminated with a closing square bracket diff --git a/src/corelib/json/qjsonvalue.cpp b/src/corelib/json/qjsonvalue.cpp index 409865155d..bde3323fa0 100644 --- a/src/corelib/json/qjsonvalue.cpp +++ b/src/corelib/json/qjsonvalue.cpp @@ -353,7 +353,7 @@ QVariant QJsonValue::toVariant() const \value Object An object. Use toObject() to convert to a QJsonObject. \value Undefined The value is undefined. This is usually returned as an error condition, when trying to read an out of bounds value - in an array or a non existant key in an object. + in an array or a non existent key in an object. */ /*! diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp index 160356f9cc..8e69960c93 100644 --- a/src/corelib/plugin/qlibrary.cpp +++ b/src/corelib/plugin/qlibrary.cpp @@ -652,7 +652,7 @@ bool QLibraryPrivate::isPlugin() // An exception was thrown when calling qt_plugin_query_verification_data(). // This usually happens when plugin is compiled with the /clr compiler flag, // & will only work if the dependencies are loaded & DLLMain() is called. - // LoadLibrary() will do this, try once with this & if it fails dont load. + // LoadLibrary() will do this, try once with this & if it fails don't load. retryLoadLibrary = !retryLoadLibrary; } #endif diff --git a/src/corelib/thread/qmutex.cpp b/src/corelib/thread/qmutex.cpp index d310f56798..f54d896b74 100644 --- a/src/corelib/thread/qmutex.cpp +++ b/src/corelib/thread/qmutex.cpp @@ -369,9 +369,9 @@ bool QBasicMutex::lockInternal(int timeout) old_waiters = d->waiters.load(); if (old_waiters == -QMutexPrivate::BigNumber) { // we are unlocking, and the thread that unlocks is about to change d to 0 - // we try to aquire the mutex by changing to dummyLocked() + // we try to acquire the mutex by changing to dummyLocked() if (d_ptr.testAndSetAcquire(d, dummyLocked())) { - // Mutex aquired + // Mutex acquired Q_ASSERT(d->waiters.load() == -QMutexPrivate::BigNumber || d->waiters.load() == 0); d->waiters.store(0); d->deref(); @@ -450,7 +450,7 @@ void QBasicMutex::unlockInternal() d->deref(); } -//The freelist managment +//The freelist management namespace { struct FreeListConstants : QFreeListDefaultConstants { enum { BlockCount = 4, MaxIndex=0xffff }; @@ -489,7 +489,7 @@ void QMutexPrivate::release() freelist()->release(id); } -// atomically substract "value" to the waiters, and remove the QMutexPrivate::BigNumber flag +// atomically subtract "value" to the waiters, and remove the QMutexPrivate::BigNumber flag void QMutexPrivate::derefWaiters(int value) { int old_waiters; diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index b76f4e3493..6c3836e0dc 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -1767,7 +1767,7 @@ int QTime::msecsTo(const QTime &t) const #ifndef QT_NO_DATESTRING // These anonymous functions tidy up QDateTime::fromString() -// and avoid confusion of reponsibility between it and QTime::fromString(). +// and avoid confusion of responsibility between it and QTime::fromString(). namespace { inline bool isMidnight(int hour, int minute, int second, int msec) { diff --git a/src/corelib/tools/qregularexpression.cpp b/src/corelib/tools/qregularexpression.cpp index 74349f62a5..e138fd543b 100644 --- a/src/corelib/tools/qregularexpression.cpp +++ b/src/corelib/tools/qregularexpression.cpp @@ -309,7 +309,7 @@ QT_BEGIN_NAMESPACE \li the input cannot possibly match the regular expression; \li the input does match the regular expression; \li the input does not match the regular expression right now, - but it will if more charaters will be added to it. + but it will if more characters will be added to it. \endlist Note that these three cases represent exactly the possible states of a @@ -461,7 +461,7 @@ QT_BEGIN_NAMESPACE string, but also at a newline character right before the end of the string; that is, the previous pattern matches against the string "this pattern must match exactly\\n". Also, the behaviour of both the \c{^} and the \c{$} - anchors changes if the MultiLineOption is set either explicitely (as a + anchors changes if the MultiLineOption is set either explicitly (as a pattern option) or implicitly (as a directive inside the pattern string). Therefore, in the most general case, you should wrap the pattern between @@ -688,7 +688,7 @@ QT_BEGIN_NAMESPACE \value UseUnicodePropertiesOption The meaning of the \c{\w}, \c{\d}, etc., character classes, as well as the meaning of their counterparts (\c{\W}, \c{\D}, etc.), is changed - from matching ASCII charaters only to matching any character with the + from matching ASCII characters only to matching any character with the corresponding Unicode property. For instance, \c{\d} is changed to match any character with the Unicode Nd (decimal digit) property; \c{\w} to match any character with either the Unicode L (letter) or N @@ -1950,7 +1950,7 @@ bool QRegularExpressionMatch::hasMatch() const Returns true if the regular expression partially matched against the subject string, or false otherwise. - \note Only a match that explicitely used the one of the partial match types + \note Only a match that explicitly used the one of the partial match types can yield a partial match. Still, if such a match succeeds totally, this function will return false, while hasMatch() will return true. diff --git a/src/gui/accessible/qaccessible2.cpp b/src/gui/accessible/qaccessible2.cpp index 4936846d6c..05dda337ac 100644 --- a/src/gui/accessible/qaccessible2.cpp +++ b/src/gui/accessible/qaccessible2.cpp @@ -171,7 +171,7 @@ QT_BEGIN_NAMESPACE /*! \fn int QAccessibleTextInterface::characterCount() const - Returns the lenght of the text (total size including spaces). + Returns the length of the text (total size including spaces). */ /*! diff --git a/src/gui/kernel/qopenglcontext.cpp b/src/gui/kernel/qopenglcontext.cpp index c8604462ab..ffb0726c35 100644 --- a/src/gui/kernel/qopenglcontext.cpp +++ b/src/gui/kernel/qopenglcontext.cpp @@ -131,7 +131,7 @@ QMutex QOpenGLContextPrivate::makeCurrentTrackerMutex; QOpenGLContext internally keeps track of a QOpenGLContextGroup object which can be accessed with shareGroup(), and which can be used to find all the contexts in a given share group. A share group consists of all contexts that - have been succesfully initialized and are sharing with an existing context in + have been successfully initialized and are sharing with an existing context in the share group. A non-sharing context has a share group consisting of a single context. diff --git a/src/gui/painting/qpaintengine_blitter.cpp b/src/gui/painting/qpaintengine_blitter.cpp index 55d46f3b63..d0b5fd77d9 100644 --- a/src/gui/painting/qpaintengine_blitter.cpp +++ b/src/gui/painting/qpaintengine_blitter.cpp @@ -591,7 +591,7 @@ void QBlitterPaintEngine::drawPixmap(const QRectF &r, const QPixmap &pm, const Q } } -// Overriden methods to lock the graphics memory +// Overridden methods to lock the graphics memory void QBlitterPaintEngine::drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode) { Q_D(QBlitterPaintEngine); diff --git a/src/network/access/qhttpnetworkconnection.cpp b/src/network/access/qhttpnetworkconnection.cpp index 6e56aa6126..b0c4deb2b9 100644 --- a/src/network/access/qhttpnetworkconnection.cpp +++ b/src/network/access/qhttpnetworkconnection.cpp @@ -551,7 +551,7 @@ QHttpNetworkReply* QHttpNetworkConnectionPrivate::queueRequest(const QHttpNetwor break; } - // For Happy Eyeballs the networkLayerState is set to Unkown + // For Happy Eyeballs the networkLayerState is set to Unknown // untill we have started the first connection attempt. So no // request will be started untill we know if IPv4 or IPv6 // should be used. @@ -975,7 +975,7 @@ void QHttpNetworkConnectionPrivate::startHostInfoLookup() { networkLayerState = InProgress; - // check if we already now can descide if this is IPv4 or IPv6 + // check if we already now can decide if this is IPv4 or IPv6 QString lookupHost = hostName; #ifndef QT_NO_NETWORKPROXY if (networkProxy.capabilities() & QNetworkProxy::HostNameLookupCapability) { diff --git a/src/network/access/qhttpnetworkconnectionchannel.cpp b/src/network/access/qhttpnetworkconnectionchannel.cpp index 2971854060..9cbdcd65bd 100644 --- a/src/network/access/qhttpnetworkconnectionchannel.cpp +++ b/src/network/access/qhttpnetworkconnectionchannel.cpp @@ -505,7 +505,7 @@ void QHttpNetworkConnectionChannel::_q_receiveReply() emit reply->dataReadProgress(replyPrivate->totalProgress, replyPrivate->bodyLength); } } else if (haveRead == -1) { - // Some error occured + // Some error occurred connection->d_func()->emitReplyError(socket, reply, QNetworkReply::ProtocolFailure); break; } @@ -1116,7 +1116,7 @@ void QHttpNetworkConnectionChannel::_q_error(QAbstractSocket::SocketError socket if (socket->bytesAvailable()) { // Read everything from the socket into the reply buffer. // we can ignore the readbuffersize as the data is already - // in memory and we will not recieve more data on the socket. + // in memory and we will not receive more data on the socket. reply->setReadBufferSize(0); _q_receiveReply(); #ifndef QT_NO_SSL diff --git a/src/network/access/qhttpnetworkreply.cpp b/src/network/access/qhttpnetworkreply.cpp index 6790e1b9ca..14205112df 100644 --- a/src/network/access/qhttpnetworkreply.cpp +++ b/src/network/access/qhttpnetworkreply.cpp @@ -719,7 +719,7 @@ qint64 QHttpNetworkReplyPrivate::uncompressBodyData(QByteDataBuffer *in, QByteDa int ret = inflate(inflateStrm, Z_NO_FLUSH); //All negative return codes are errors, in the context of HTTP compression, Z_NEED_DICT is also an error. - // in the case where we get Z_DATA_ERROR this could be because we recieved raw deflate compressed data. + // in the case where we get Z_DATA_ERROR this could be because we received raw deflate compressed data. if (ret == Z_DATA_ERROR && !triedRawDeflate) { inflateEnd(inflateStrm); triedRawDeflate = true; diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp index 8f290f6e2f..c9f9bd2b42 100644 --- a/src/network/socket/qabstractsocket.cpp +++ b/src/network/socket/qabstractsocket.cpp @@ -970,8 +970,8 @@ void QAbstractSocketPrivate::_q_startConnecting(const QHostInfo &hostInfo) qWarning("QAbstractSocketPrivate::_q_startConnecting() received hostInfo for wrong lookup ID %d expected %d", hostInfo.lookupId(), hostLookupId); } - // Only add the addresses for the prefered network layer. - // Or all if prefered network layer is not set. + // Only add the addresses for the preferred network layer. + // Or all if preferred network layer is not set. if (preferredNetworkLayerProtocol == QAbstractSocket::UnknownNetworkLayerProtocol || preferredNetworkLayerProtocol == QAbstractSocket::AnyIPProtocol) { addresses = hostInfo.addresses(); } else { diff --git a/src/network/socket/qsocks5socketengine.cpp b/src/network/socket/qsocks5socketengine.cpp index 48a866cc3a..75970523d1 100644 --- a/src/network/socket/qsocks5socketengine.cpp +++ b/src/network/socket/qsocks5socketengine.cpp @@ -1340,7 +1340,7 @@ bool QSocks5SocketEngine::bind(const QHostAddress &addr, quint16 port) QHostAddress address; if (addr.protocol() == QAbstractSocket::AnyIPProtocol) - address = QHostAddress::AnyIPv4; //SOCKS5 doesnt support dual stack, and there isn't any implementation of udp on ipv6 yet + address = QHostAddress::AnyIPv4; //SOCKS5 doesn't support dual stack, and there isn't any implementation of udp on ipv6 yet else address = addr; diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index 2b3aca7928..7e37fa19ea 100644 --- a/src/opengl/qgl_qpa.cpp +++ b/src/opengl/qgl_qpa.cpp @@ -409,7 +409,7 @@ QGLContext *QGLContext::fromOpenGLContext(QOpenGLContext *context) return reinterpret_cast(context->qGLContextHandle()); } QGLContext *glContext = new QGLContext(context); - //Dont call create on context. This can cause the platformFormat to be set on the widget, which + //Don't call create on context. This can cause the platformFormat to be set on the widget, which //will cause the platformWindow to be recreated. return glContext; } diff --git a/src/plugins/platforms/openwfd/qopenwfddevice.cpp b/src/plugins/platforms/openwfd/qopenwfddevice.cpp index 47064fe92c..de4db5fd98 100644 --- a/src/plugins/platforms/openwfd/qopenwfddevice.cpp +++ b/src/plugins/platforms/openwfd/qopenwfddevice.cpp @@ -303,7 +303,7 @@ void QOpenWFDDevice::handlePipelineBindSourceComplete() WFDint overflow = wfdGetEventAttribi(mDevice,mEvent, WFD_EVENT_PIPELINE_BIND_QUEUE_OVERFLOW); if (overflow == WFD_TRUE) { - qDebug() << "PIPELINE_BIND_QUEUE_OVERFLOW event occured"; + qDebug() << "PIPELINE_BIND_QUEUE_OVERFLOW event occurred"; } WFDint pipelineId = wfdGetEventAttribi(mDevice,mEvent,WFD_EVENT_PIPELINE_BIND_PIPELINE_ID); diff --git a/src/plugins/platforms/openwfd/qopenwfdintegration.cpp b/src/plugins/platforms/openwfd/qopenwfdintegration.cpp index 926ab07df2..68d295d1b3 100644 --- a/src/plugins/platforms/openwfd/qopenwfdintegration.cpp +++ b/src/plugins/platforms/openwfd/qopenwfdintegration.cpp @@ -82,7 +82,7 @@ QOpenWFDIntegration::QOpenWFDIntegration() QOpenWFDIntegration::~QOpenWFDIntegration() { - //dont delete screens since they are deleted by the devices + //don't delete screens since they are deleted by the devices qDebug() << "deleting platform integration"; for (int i = 0; i < mDevices.size(); i++) { delete mDevices[i]; diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp index 3b2e2bbf96..b808a74a83 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection.cpp @@ -72,7 +72,7 @@ #include #endif -#ifdef XCB_USE_EGL //dont pull in eglext prototypes +#ifdef XCB_USE_EGL //don't pull in eglext prototypes #include #endif diff --git a/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp b/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp index f9aaec84cb..ef4c0526a8 100644 --- a/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp @@ -216,7 +216,7 @@ void QXcbConnection::xi2HandleTabletEvent(void *event, TabletData *tabletData) break; case XI_Motion: // Report TabletMove only when the stylus is touching the tablet. - // No possiblity to report proximity motion (no suitable Qt event exists yet). + // No possibility to report proximity motion (no suitable Qt event exists yet). if (tabletData->down) xi2ReportTabletEvent(*tabletData, xiEvent); break; diff --git a/src/tools/qdoc/node.cpp b/src/tools/qdoc/node.cpp index 6cb72ca0a8..967c4c441a 100644 --- a/src/tools/qdoc/node.cpp +++ b/src/tools/qdoc/node.cpp @@ -2166,7 +2166,7 @@ bool Node::setQmlModule(const ArgLocPair& arg) name of some other QML class node. If so, then this node's parent will be a NameCollisionNode.This function sets the NameCollisionNode's current child to this node. This is - important when outputing the documentation for this node, + important when outputting the documentation for this node, when, for example, the documentation contains a link to the page being output. We don't want to generate a link to the disambiguation page if we can avoid it, and to be diff --git a/src/widgets/itemviews/qheaderview.cpp b/src/widgets/itemviews/qheaderview.cpp index 0cd80f2e0a..8ba5d74946 100644 --- a/src/widgets/itemviews/qheaderview.cpp +++ b/src/widgets/itemviews/qheaderview.cpp @@ -3527,7 +3527,7 @@ bool QHeaderViewPrivate::read(QDataStream &in) in >> hiddenSectionSize; in >> length; - int unusedSectionCount; // For compability + int unusedSectionCount; // For compatibility in >> unusedSectionCount; in >> movableSections; in >> clickableSections; @@ -3548,7 +3548,7 @@ bool QHeaderViewPrivate::read(QDataStream &in) in >> sectionItems; // In Qt4 we had a vector of spans where one span could hold information on more sections. // Now we have an itemvector where one items contains information about one section - // For backward compability with Qt4 we do the following + // For backward compatibility with Qt4 we do the following QVector newSectionItems; for (int u = 0; u < sectionItems.count(); ++u) { int count = sectionItems.at(u).tmpDataStreamSectionCount; diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index a82d2a57b8..78be5af604 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -2492,7 +2492,7 @@ void QStyleSheetStyle::setProperties(QWidget *w) QVector finals; // indices in reverse order of each property's final occurrence { - // scan decls for final occurence of each "qproperty" + // scan decls for final occurrence of each "qproperty" QSet propertySet; for (int i = decls.count() - 1; i >= 0; --i) { const QString property = decls.at(i).d->property; diff --git a/src/widgets/widgets/qdockwidget.cpp b/src/widgets/widgets/qdockwidget.cpp index c35b761a20..4a1ce17cff 100644 --- a/src/widgets/widgets/qdockwidget.cpp +++ b/src/widgets/widgets/qdockwidget.cpp @@ -306,7 +306,7 @@ QSize QDockWidgetLayout::sizeFromContent(const QSize &content, bool floating) co int left, top, right, bottom; w->getContentsMargins(&left, &top, &right, &bottom); - //we need to substract the contents margin (it will be added by the caller) + //we need to subtract the contents margin (it will be added by the caller) QSize min = w->minimumSize() - QSize(left + right, top + bottom); QSize max = w->maximumSize() - QSize(left + right, top + bottom); diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index b4fa808f20..4518db11c7 100644 --- a/src/xml/dom/qdom.cpp +++ b/src/xml/dom/qdom.cpp @@ -3463,10 +3463,10 @@ QDomDocumentTypePrivate::QDomDocumentTypePrivate(QDomDocumentTypePrivate* n, boo QDomNodePrivate* p = first; while (p) { if (p->isEntity()) - // Dont use normal insert function since we would create infinite recursion + // Don't use normal insert function since we would create infinite recursion entities->map.insertMulti(p->nodeName(), p); if (p->isNotation()) - // Dont use normal insert function since we would create infinite recursion + // Don't use normal insert function since we would create infinite recursion notations->map.insertMulti(p->nodeName(), p); p = p->next; } @@ -5708,7 +5708,7 @@ static QByteArray encodeEntity(const QByteArray& str) len += 4; i += 5; } else if (d[i] == '&' && i + 1 < len && d[i+1] == '#') { - // Dont encode < or " or &custom;. + // Don't encode < or " or &custom;. // Only encode character references tmp.replace(i, 1, "&"); d = tmp.constData(); diff --git a/tests/auto/corelib/json/tst_qtjson.cpp b/tests/auto/corelib/json/tst_qtjson.cpp index 5498c890fe..bdc3aeb9ed 100644 --- a/tests/auto/corelib/json/tst_qtjson.cpp +++ b/tests/auto/corelib/json/tst_qtjson.cpp @@ -291,7 +291,7 @@ void TestQtJson::testObjectSimple() QVERIFY2(keys.contains("string"), "key string not found"); QVERIFY2(keys.contains("boolean"), "key boolean not found"); - // if we put a JsonValue into the JsonObject and retreive + // if we put a JsonValue into the JsonObject and retrieve // it, it should be identical. QJsonValue value(QLatin1String("foo")); object.insert("value", value); @@ -340,7 +340,7 @@ void TestQtJson::testArraySimple() QCOMPARE(array.at(2).toBool(), true); QCOMPARE(array.size(), 3); - // if we put a JsonValue into the JsonArray and retreive + // if we put a JsonValue into the JsonArray and retrieve // it, it should be identical. QJsonValue value(QLatin1String("foo")); array.append(value); diff --git a/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp b/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp index ae3765df10..2b1284d81e 100644 --- a/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp +++ b/tests/auto/gui/text/qtextscriptengine/tst_qtextscriptengine.cpp @@ -1308,7 +1308,7 @@ void tst_QTextScriptEngine::thaiWithZWJ() // But make sure that we don't hide anything else QCOMPARE(e->layoutData->items.size(), 11); QCOMPARE(e->layoutData->items[0].num_glyphs, ushort(7)); // Thai: The ZWJ and ZWNJ characters are inherited, so should be part of the thai script - QCOMPARE(e->layoutData->items[1].num_glyphs, ushort(1)); // Common: The smart quotes cannot be handled by thai, so should be a seperate item + QCOMPARE(e->layoutData->items[1].num_glyphs, ushort(1)); // Common: The smart quotes cannot be handled by thai, so should be a separate item QCOMPARE(e->layoutData->items[2].num_glyphs, ushort(1)); // Thai: Thai character QCOMPARE(e->layoutData->items[3].num_glyphs, ushort(1)); // Common: Ellipsis QCOMPARE(e->layoutData->items[4].num_glyphs, ushort(1)); // Thai: Thai character diff --git a/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp b/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp index d8f5a0428f..c32699f224 100644 --- a/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp +++ b/tests/auto/network/kernel/qnetworkproxyfactory/tst_qnetworkproxyfactory.cpp @@ -146,7 +146,7 @@ void tst_QNetworkProxyFactory::systemProxyForQuery_data() QTest::newRow("ftp-tag") << (int)QNetworkProxyQuery::TcpSocket << QUrl() << QString("ftp") << QString("qt-project.org") << 21 << (int)QNetworkProxy::TunnelingCapability; QTest::newRow("https-tag") << (int)QNetworkProxyQuery::TcpSocket << QUrl() << QString("https") << QString("qt-project.org") << 443 << (int)QNetworkProxy::TunnelingCapability; #ifdef Q_OS_WIN - //in Qt 4.8, "socks" would get the socks proxy, but we dont want to enforce that for all platforms + //in Qt 4.8, "socks" would get the socks proxy, but we don't want to enforce that for all platforms QTest::newRow("socks-tag") << (int)QNetworkProxyQuery::TcpSocket << QUrl() << QString("socks") << QString("qt-project.org") << 21 << (int)(QNetworkProxy::TunnelingCapability | QNetworkProxy::ListeningCapability); #endif //windows: ssh is not a tag provided by the os, but any tunneling proxy is acceptable diff --git a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp index 223211eea1..e214107b28 100644 --- a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp +++ b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp @@ -504,7 +504,7 @@ void tst_QTcpSocket::bind_data() } // additionally, try bind to known-bad addresses, and make sure this doesn't work - // these ranges are guarenteed to be reserved for 'documentation purposes', + // these ranges are guaranteed to be reserved for 'documentation purposes', // and thus, should be unused in the real world. Not that I'm assuming the // world is full of competent administrators, or anything. QStringList knownBad; diff --git a/tests/auto/widgets/itemviews/qitemdelegate/tst_qitemdelegate.cpp b/tests/auto/widgets/itemviews/qitemdelegate/tst_qitemdelegate.cpp index dc44a026d2..9d27b7db08 100644 --- a/tests/auto/widgets/itemviews/qitemdelegate/tst_qitemdelegate.cpp +++ b/tests/auto/widgets/itemviews/qitemdelegate/tst_qitemdelegate.cpp @@ -837,7 +837,7 @@ public: virtual void destroyEditor(QWidget *editor, const QModelIndex &i) const { // This is a reimplementation of QAbstractItemDelegate::destroyEditor just set the variable m_editor to 0 - // The only reason we do this is to avoid the not recomended direct delete of editor (destroyEditor uses deleteLater) + // The only reason we do this is to avoid the not recommended direct delete of editor (destroyEditor uses deleteLater) QItemDelegate::destroyEditor(editor, i); // Allow destroy m_editor = 0; // but clear the variable } diff --git a/tests/benchmarks/corelib/tools/qregexp/main.cpp b/tests/benchmarks/corelib/tools/qregexp/main.cpp index d26731edba..518c230590 100644 --- a/tests/benchmarks/corelib/tools/qregexp/main.cpp +++ b/tests/benchmarks/corelib/tools/qregexp/main.cpp @@ -520,7 +520,7 @@ void tst_qregexp::horribleReplaceJSC() { QScriptValue r; QScriptEngine engine; - // the m flag doesnt actually work here; dunno + // the m flag doesn't actually work here; dunno engine.globalObject().setProperty("s", str2.replace('\n', ' ')); QScriptValue replaceFunc = engine.evaluate("(function() { return s.replace(/.*#""define ZLIB_VERSION \"([0-9]+)\\.([0-9]+)\\.([0-9]+).*/gm, '$1.$2.$3') } )"); QVERIFY(replaceFunc.isFunction()); diff --git a/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/topbar.cpp b/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/topbar.cpp index d3840ba1bc..bd089e9b75 100644 --- a/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/topbar.cpp +++ b/tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/topbar.cpp @@ -142,7 +142,7 @@ void TopBar::resizeEvent(QGraphicsSceneResizeEvent* /*event*/) QSize topBarStatusBarLeftSize = m_topBarStatusBarLeft.size(); QSize topBarStatusBarMiddleSize = m_topBarStatusBarMiddle.size(); - //Location for Title text 5% width, 35% heigth of the background pixmap + //Location for Title text 5% width, 35% height of the background pixmap m_topBarTitlePoint = QPoint(topBarPixmapSize.width()* 0.05, topBarPixmapSize.height() * 0.35); diff --git a/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp b/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp index 7736ce5481..42b96ef4cf 100644 --- a/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp +++ b/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp @@ -802,7 +802,7 @@ void tst_qnetworkreply::httpsRequestChain() for (int i = 0; i < count; i++) helper.requestList.append(request); - // Warm up DNS cache and then immediatly start HTTP + // Warm up DNS cache and then immediately start HTTP QHostInfo::lookupHost(QtNetworkSettings::serverName(), &helper, SLOT(doNextRequest())); //QHostInfo::lookupHost("www.nokia.com", &helper, SLOT(doNextRequest())); diff --git a/tests/benchmarks/network/kernel/qhostinfo/main.cpp b/tests/benchmarks/network/kernel/qhostinfo/main.cpp index 23b45f27e9..817ef82e2c 100644 --- a/tests/benchmarks/network/kernel/qhostinfo/main.cpp +++ b/tests/benchmarks/network/kernel/qhostinfo/main.cpp @@ -77,7 +77,7 @@ public slots: void tst_qhostinfo::init() { - // delete the cache so inidividual testcase results are independant from each other + // delete the cache so inidividual testcase results are independent from each other qt_qhostinfo_clear_cache(); } diff --git a/tests/manual/bearerex/bearerex.cpp b/tests/manual/bearerex/bearerex.cpp index c85fc439e9..14533638d8 100644 --- a/tests/manual/bearerex/bearerex.cpp +++ b/tests/manual/bearerex/bearerex.cpp @@ -568,7 +568,7 @@ void SessionTab::finished(quint32 errorCode, qint64 dataReceived, QString errorT msgBox.exec(); // Check if the networksession still exists - it may have gone after returning from // the modal dialog (in the case that app has been closed, and deleting QHttp will - // trigger the done() invokation). + // trigger the done() invocation). if (m_NetworkSession) { sentRecDataLineEdit->setText(QString::number(m_NetworkSession->bytesWritten())+ QString(" / ")+ -- cgit v1.2.3