diff options
author | Sergio Ahumada <sergio.ahumada@nokia.com> | 2012-07-11 14:44:38 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-11 14:52:37 +0200 |
commit | 59339941e0e6e2b8648c2e128284de188a65714b (patch) | |
tree | d2f19ebbac24dfc5872509cb74262375cd3e8962 /src | |
parent | 62e6608f6932c6d871d17b0ccce0c7b388866458 (diff) |
Fix some spelling errors
Change-Id: I19d3b2e9a5180b13deb828b55195404ef20be295
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src')
28 files changed, 41 insertions, 41 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 <int N> struct QAtomicOpsBySize; template <> struct QAtomicOpsBySize<4> : QGenericAtomicOps<QAtomicOpsBySize<4> > { - // 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<QGLContext *>(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 <xcb/render.h> #endif -#ifdef XCB_USE_EGL //dont pull in eglext prototypes +#ifdef XCB_USE_EGL //don't pull in eglext prototypes #include <EGL/egl.h> #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<SectionItem> 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<int> 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<const QString> 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(); |