Fix typos
Change-Id: Id625efea998f2b4dce9970b903830dc3b3efcd3d Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
parent
92fc338de0
commit
c6de55a0bb
@ -117,7 +117,7 @@ QVariant SpreadSheetItem::computeFormula(const QString &formula,
|
|||||||
const QTableWidget *widget,
|
const QTableWidget *widget,
|
||||||
const QTableWidgetItem *self)
|
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(' ');
|
QStringList list = formula.split(' ');
|
||||||
if (list.isEmpty() || !widget)
|
if (list.isEmpty() || !widget)
|
||||||
return formula; // it is a normal string
|
return formula; // it is a normal string
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
|
|
||||||
// With a QFileSystemModel, set on a view, you will see "Program Files" in the view
|
// 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.
|
// 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
|
// the display role. Note that the Qt::EditRole over which the QCompleter
|
||||||
// looks for matches is left unchanged
|
// looks for matches is left unchanged
|
||||||
//! [0]
|
//! [0]
|
||||||
|
@ -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
|
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.
|
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
|
QWinEventNotifier calls this method in it's constructor and there should never be a need to call this
|
||||||
method directly.
|
method directly.
|
||||||
|
@ -516,7 +516,7 @@ void QMetaCallEvent::placeMetaCall(QObject *object)
|
|||||||
|
|
||||||
\reentrant
|
\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
|
pair of calls to blockSignals(). It blocks signals in its
|
||||||
constructor and in the destructor it resets the state to what
|
constructor and in the destructor it resets the state to what
|
||||||
it was before the constructor ran.
|
it was before the constructor ran.
|
||||||
|
@ -108,7 +108,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
in many real-world situations.
|
in many real-world situations.
|
||||||
|
|
||||||
The accuracy also depends on the \l{Qt::TimerType}{timer type}. For
|
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.
|
Precise timers will also never time out earlier than expected.
|
||||||
|
|
||||||
For Qt::CoarseTimer and Qt::VeryCoarseTimer types, QTimer may wake up
|
For Qt::CoarseTimer and Qt::VeryCoarseTimer types, QTimer may wake up
|
||||||
|
@ -3459,7 +3459,7 @@ void QGuiApplication::setFallbackSessionManagementEnabled(bool enabled)
|
|||||||
|
|
||||||
You should never exit the application within this signal. Instead, the
|
You should never exit the application within this signal. Instead, the
|
||||||
session manager may or may not do this afterwards, depending on 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
|
state immediately after the application has been started. This permits the
|
||||||
session manager to learn about the application's restart policy.
|
session manager to learn about the application's restart policy.
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
When intermixing QPainter and OpenGL, it is important to notify
|
When intermixing QPainter and OpenGL, it is important to notify
|
||||||
QPainter that the OpenGL state may have been cluttered so it can
|
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
|
QPainter::beginNativePainting() before starting the OpenGL
|
||||||
rendering and calling \l QPainter::endNativePainting() after
|
rendering and calling \l QPainter::endNativePainting() after
|
||||||
finishing.
|
finishing.
|
||||||
|
@ -261,7 +261,7 @@ void QTriangulatingStroker::moveTo(const qreal *pts)
|
|||||||
normalVector(m_cx, m_cy, x2, y2, &m_nvx, &m_nvy);
|
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
|
// adding two identical points in both the end of previous strip
|
||||||
// and beginning of next strip
|
// and beginning of next strip
|
||||||
bool invisibleJump = m_vertices.size();
|
bool invisibleJump = m_vertices.size();
|
||||||
|
@ -646,8 +646,8 @@ QHttpNetworkReply* QHttpNetworkConnectionPrivate::queueRequest(const QHttpNetwor
|
|||||||
|
|
||||||
#ifndef Q_OS_WINRT
|
#ifndef Q_OS_WINRT
|
||||||
// For Happy Eyeballs the networkLayerState is set to Unknown
|
// For Happy Eyeballs the networkLayerState is set to Unknown
|
||||||
// untill we have started the first connection attempt. So no
|
// until we have started the first connection attempt. So no
|
||||||
// request will be started untill we know if IPv4 or IPv6
|
// request will be started until we know if IPv4 or IPv6
|
||||||
// should be used.
|
// should be used.
|
||||||
if (networkLayerState == Unknown || networkLayerState == HostLookupPending) {
|
if (networkLayerState == Unknown || networkLayerState == HostLookupPending) {
|
||||||
startHostInfoLookup();
|
startHostInfoLookup();
|
||||||
|
@ -148,7 +148,7 @@ public:
|
|||||||
mutable QPointer<QScreen> m_screen;
|
mutable QPointer<QScreen> m_screen;
|
||||||
|
|
||||||
// Touch filtering and prediction are part of the same thing. The default
|
// 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.
|
// to, for instance, 16ms.
|
||||||
// For filtering to work well, the QPA plugin should provide a dead-steady
|
// For filtering to work well, the QPA plugin should provide a dead-steady
|
||||||
// implementation of QPlatformWindow::requestUpdate().
|
// implementation of QPlatformWindow::requestUpdate().
|
||||||
|
@ -449,7 +449,7 @@
|
|||||||
\target QTDS
|
\target QTDS
|
||||||
\section2 QTDS for Sybase Adaptive Server
|
\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.
|
\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
|
It is not possible to set the port with QSqlDatabase::setPort() due to limitations in the
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
to catch an exception thrown from the \a expression. If the \a expression
|
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
|
throws an exception and its type is the same as \a exceptiontype
|
||||||
or \a exceptiontype is substitutable with the type of thrown exception
|
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
|
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
|
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
|
at all, then a failure will be recorded in the test log and
|
||||||
|
@ -1090,7 +1090,7 @@ QRect QItemDelegate::textRectangle(QPainter * /*painter*/, const QRect &rect,
|
|||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
In the case of \uicontrol Tab, \uicontrol Backtab, \uicontrol Enter and \uicontrol Return
|
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
|
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
|
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
|
view. Likewise, if the \a event is a \uicontrol Backtab key press the
|
||||||
|
@ -571,7 +571,7 @@ void QStyledItemDelegate::setItemEditorFactory(QItemEditorFactory *factory)
|
|||||||
\uicontrol Return keys are \e not handled.
|
\uicontrol Return keys are \e not handled.
|
||||||
|
|
||||||
In the case of \uicontrol Tab, \uicontrol Backtab, \uicontrol Enter and \uicontrol Return
|
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
|
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
|
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
|
view. Likewise, if the \a event is a \uicontrol Backtab key press the
|
||||||
|
@ -381,7 +381,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
QOpenGLContext. By connecting a slot, using direct connection, to this signal,
|
QOpenGLContext. By connecting a slot, using direct connection, to this signal,
|
||||||
it is possible to perform cleanup whenever the the underlying native context
|
it is possible to perform cleanup whenever the the underlying native context
|
||||||
handle, or the entire QOpenGLContext instance, is going to be released. The
|
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
|
\snippet code/doc_gui_widgets_qopenglwidget.cpp 5
|
||||||
|
|
||||||
|
@ -6291,7 +6291,7 @@ QPixmap QCommonStyle::generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &p
|
|||||||
|
|
||||||
// High intensity colors needs dark shifting in the color table, while
|
// High intensity colors needs dark shifting in the color table, while
|
||||||
// low intensity colors needs light shifting. This is to increase the
|
// low intensity colors needs light shifting. This is to increase the
|
||||||
// percieved contrast.
|
// perceived contrast.
|
||||||
if ((red - factor > green && red - factor > blue)
|
if ((red - factor > green && red - factor > blue)
|
||||||
|| (green - factor > red && green - factor > blue)
|
|| (green - factor > red && green - factor > blue)
|
||||||
|| (blue - factor > red && blue - factor > green))
|
|| (blue - factor > red && blue - factor > green))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user