Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Change-Id: Id625efea998f2b4dce9970b903830dc3b3efcd3d
Reviewed-by: Leena Miettinen <[email protected]>
  • Loading branch information
JarekKobus committed Feb 13, 2018
1 parent 92fc338 commit c6de55a
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion examples/widgets/itemviews/spreadsheet/spreadsheetitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ QVariant SpreadSheetItem::computeFormula(const QString &formula,
const QTableWidget *widget,
const QTableWidgetItem *self)
{
// check if the s tring is actually a formula or not
// check if the string is actually a formula or not
QStringList list = formula.split(' ');
if (list.isEmpty() || !widget)
return formula; // it is a normal string
Expand Down
2 changes: 1 addition & 1 deletion examples/widgets/tools/completer/fsmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

// With a QFileSystemModel, set on a view, you will see "Program Files" in the view
// But with this model, you will see "C:\Program Files" in the view.
// We acheive this, by having the data() return the entire file path for
// We achieve this, by having the data() return the entire file path for
// the display role. Note that the Qt::EditRole over which the QCompleter
// looks for matches is left unchanged
//! [0]
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/kernel/qabstracteventdispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ bool QAbstractEventDispatcher::filterNativeEvent(const QByteArray &eventType, vo
This pure virtual method exists on windows only and has to be reimplemented by a Windows specific
event dispatcher implementation. \a notifier is the QWinEventNotifier instance to be registered.
The method should return true if the registration of \a notifier was sucessful, otherwise false.
The method should return true if the registration of \a notifier was successful, otherwise false.
QWinEventNotifier calls this method in it's constructor and there should never be a need to call this
method directly.
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/kernel/qobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ void QMetaCallEvent::placeMetaCall(QObject *object)
\reentrant
QSignalBlocker can be used whereever you would otherwise use a
QSignalBlocker can be used wherever you would otherwise use a
pair of calls to blockSignals(). It blocks signals in its
constructor and in the destructor it resets the state to what
it was before the constructor ran.
Expand Down
2 changes: 1 addition & 1 deletion src/corelib/kernel/qtimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ QT_BEGIN_NAMESPACE
in many real-world situations.
The accuracy also depends on the \l{Qt::TimerType}{timer type}. For
Qt::PreciseTimer, QTimer will try to keep the accurance at 1 millisecond.
Qt::PreciseTimer, QTimer will try to keep the accuracy at 1 millisecond.
Precise timers will also never time out earlier than expected.
For Qt::CoarseTimer and Qt::VeryCoarseTimer types, QTimer may wake up
Expand Down
2 changes: 1 addition & 1 deletion src/gui/kernel/qguiapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3459,7 +3459,7 @@ void QGuiApplication::setFallbackSessionManagementEnabled(bool enabled)
You should never exit the application within this signal. Instead, the
session manager may or may not do this afterwards, depending on the
context. Futhermore, most session managers will very likely request a saved
context. Furthermore, most session managers will very likely request a saved
state immediately after the application has been started. This permits the
session manager to learn about the application's restart policy.
Expand Down
2 changes: 1 addition & 1 deletion src/gui/opengl/qopenglpaintdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ QT_BEGIN_NAMESPACE
When intermixing QPainter and OpenGL, it is important to notify
QPainter that the OpenGL state may have been cluttered so it can
restore its internal state. This is acheived by calling \l
restore its internal state. This is achieved by calling \l
QPainter::beginNativePainting() before starting the OpenGL
rendering and calling \l QPainter::endNativePainting() after
finishing.
Expand Down
2 changes: 1 addition & 1 deletion src/gui/painting/qtriangulatingstroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void QTriangulatingStroker::moveTo(const qreal *pts)
normalVector(m_cx, m_cy, x2, y2, &m_nvx, &m_nvy);


// To acheive jumps we insert zero-area tringles. This is done by
// To achieve jumps we insert zero-area tringles. This is done by
// adding two identical points in both the end of previous strip
// and beginning of next strip
bool invisibleJump = m_vertices.size();
Expand Down
4 changes: 2 additions & 2 deletions src/network/access/qhttpnetworkconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,8 @@ QHttpNetworkReply* QHttpNetworkConnectionPrivate::queueRequest(const QHttpNetwor

#ifndef Q_OS_WINRT
// 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
// until we have started the first connection attempt. So no
// request will be started until we know if IPv4 or IPv6
// should be used.
if (networkLayerState == Unknown || networkLayerState == HostLookupPending) {
startHostInfoLookup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class QEvdevTouchScreenData
mutable QPointer<QScreen> m_screen;

// Touch filtering and prediction are part of the same thing. The default
// prediction is 0ms, but sensible results can be acheived by setting it
// prediction is 0ms, but sensible results can be achieved by setting it
// to, for instance, 16ms.
// For filtering to work well, the QPA plugin should provide a dead-steady
// implementation of QPlatformWindow::requestUpdate().
Expand Down
2 changes: 1 addition & 1 deletion src/sql/doc/src/sql-driver.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
\target QTDS
\section2 QTDS for Sybase Adaptive Server

\note TDS is no longer used by MS Sql Server, and is superceded by
\note TDS is no longer used by MS Sql Server, and is superseded by
\l{QODBC}{ODBC}. QTDS is obsolete from Qt 4.7.

It is not possible to set the port with QSqlDatabase::setPort() due to limitations in the
Expand Down
2 changes: 1 addition & 1 deletion src/testlib/qtestcase.qdoc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
to catch an exception thrown from the \a expression. If the \a expression
throws an exception and its type is the same as \a exceptiontype
or \a exceptiontype is substitutable with the type of thrown exception
(i.e. usually the type of thrown exception is publically derived
(i.e. usually the type of thrown exception is publicly derived
from \a exceptiontype) then execution will be continued. If not-substitutable
type of exception is thrown or the \a expression doesn't throw an exception
at all, then a failure will be recorded in the test log and
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/itemviews/qitemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ QRect QItemDelegate::textRectangle(QPainter * /*painter*/, const QRect &rect,
\endlist

In the case of \uicontrol Tab, \uicontrol Backtab, \uicontrol Enter and \uicontrol Return
key press events, the \a editor's data is comitted to the model
key press events, the \a editor's data is committed to the model
and the editor is closed. If the \a event is a \uicontrol Tab key press
the view will open an editor on the next item in the
view. Likewise, if the \a event is a \uicontrol Backtab key press the
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/itemviews/qstyleditemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ void QStyledItemDelegate::setItemEditorFactory(QItemEditorFactory *factory)
\uicontrol Return keys are \e not handled.

In the case of \uicontrol Tab, \uicontrol Backtab, \uicontrol Enter and \uicontrol Return
key press events, the \a editor's data is comitted to the model
key press events, the \a editor's data is committed to the model
and the editor is closed. If the \a event is a \uicontrol Tab key press
the view will open an editor on the next item in the
view. Likewise, if the \a event is a \uicontrol Backtab key press the
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/kernel/qopenglwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ QT_BEGIN_NAMESPACE
QOpenGLContext. By connecting a slot, using direct connection, to this signal,
it is possible to perform cleanup whenever the the underlying native context
handle, or the entire QOpenGLContext instance, is going to be released. The
following snippet is in principal equivalent to the previous one:
following snippet is in principle equivalent to the previous one:

\snippet code/doc_gui_widgets_qopenglwidget.cpp 5

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/styles/qcommonstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6291,7 +6291,7 @@ QPixmap QCommonStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &p

// High intensity colors needs dark shifting in the color table, while
// low intensity colors needs light shifting. This is to increase the
// percieved contrast.
// perceived contrast.
if ((red - factor > green && red - factor > blue)
|| (green - factor > red && green - factor > blue)
|| (blue - factor > red && blue - factor > green))
Expand Down

0 comments on commit c6de55a

Please sign in to comment.