summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel')
-rw-r--r--src/widgets/kernel/qaction.cpp14
-rw-r--r--src/widgets/kernel/qapplication.cpp8
-rw-r--r--src/widgets/kernel/qboxlayout.cpp10
-rw-r--r--src/widgets/kernel/qgesture.cpp8
-rw-r--r--src/widgets/kernel/qgridlayout.cpp4
-rw-r--r--src/widgets/kernel/qlayout.cpp8
-rw-r--r--src/widgets/kernel/qlayoutitem.cpp8
-rw-r--r--src/widgets/kernel/qshortcut.cpp4
-rw-r--r--src/widgets/kernel/qsizepolicy.qdoc16
-rw-r--r--src/widgets/kernel/qtooltip.cpp4
-rw-r--r--src/widgets/kernel/qwhatsthis.cpp4
-rw-r--r--src/widgets/kernel/qwidget.cpp80
-rw-r--r--src/widgets/kernel/qwidget_p.h2
13 files changed, 85 insertions, 85 deletions
diff --git a/src/widgets/kernel/qaction.cpp b/src/widgets/kernel/qaction.cpp
index 267d787116..3e76699aca 100644
--- a/src/widgets/kernel/qaction.cpp
+++ b/src/widgets/kernel/qaction.cpp
@@ -706,8 +706,8 @@ void QAction::setSeparator(bool b)
}
/*!
- Returns true if this action is a separator action; otherwise it
- returns false.
+ Returns \c true if this action is a separator action; otherwise it
+ returns \c false.
\sa QAction::setSeparator()
*/
@@ -931,7 +931,7 @@ QAction::Priority QAction::priority() const
in a word processor, a Bold toolbar button may be either on or
off. An action which is not a toggle action is a command action;
a command action is simply executed, e.g. file save.
- By default, this property is false.
+ By default, this property is \c false.
In some situations, the state of one toggle action should depend
on the state of others. For example, "Left Align", "Center" and
@@ -1024,7 +1024,7 @@ bool QAction::isChecked() const
action is disabled, it is not possible to trigger it through its
shortcut.
- By default, this property is true (actions are enabled).
+ By default, this property is \c true (actions are enabled).
\sa text
*/
@@ -1061,7 +1061,7 @@ bool QAction::isEnabled() const
Actions which are not visible are \e not grayed out; they do not
appear at all.
- By default, this property is true (actions are visible).
+ By default, this property is \c true (actions are visible).
*/
void QAction::setVisible(bool b)
{
@@ -1137,8 +1137,8 @@ QAction::setData(const QVariant &data)
/*!
Updates the relevant status bar for the \a widget specified by sending a
- QStatusTipEvent to its parent widget. Returns true if an event was sent;
- otherwise returns false.
+ QStatusTipEvent to its parent widget. Returns \c true if an event was sent;
+ otherwise returns \c false.
If a null widget is specified, the event is sent to the action's parent.
diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp
index 565960f8d5..70c63086a3 100644
--- a/src/widgets/kernel/qapplication.cpp
+++ b/src/widgets/kernel/qapplication.cpp
@@ -2238,7 +2238,7 @@ Q_WIDGETS_EXPORT bool qt_tryModalHelper(QWidget *widget, QWidget **rettop)
}
/*! \internal
- Returns true if \a widget is blocked by a modal window.
+ Returns \c true if \a widget is blocked by a modal window.
*/
bool QApplicationPrivate::isBlockedByModal(QWidget *widget)
{
@@ -2367,7 +2367,7 @@ bool QApplicationPrivate::isWindowBlocked(QWindow *window, QWindow **blockingWin
/*!\internal
- Called from qapplication_\e{platform}.cpp, returns true
+ Called from qapplication_\e{platform}.cpp, returns \c true
if the widget should accept the event.
*/
bool QApplicationPrivate::tryModalHelper(QWidget *widget, QWidget **rettop)
@@ -3539,7 +3539,7 @@ void QApplication::setKeypadNavigationEnabled(bool enable)
}
/*!
- Returns true if Qt is set to use keypad navigation; otherwise returns
+ Returns \c true if Qt is set to use keypad navigation; otherwise returns
false. The default value is false.
This feature is available in Qt for Embedded Linux, and Windows CE only.
@@ -3686,7 +3686,7 @@ int QApplication::keyboardInputInterval()
/*!
\fn bool QApplication::isEffectEnabled(Qt::UIEffect effect)
- Returns true if \a effect is enabled; otherwise returns false.
+ Returns \c true if \a effect is enabled; otherwise returns \c false.
By default, Qt will try to use the desktop settings. To prevent this, call
setDesktopSettingsAware(false).
diff --git a/src/widgets/kernel/qboxlayout.cpp b/src/widgets/kernel/qboxlayout.cpp
index 67621ade23..157fa55d2e 100644
--- a/src/widgets/kernel/qboxlayout.cpp
+++ b/src/widgets/kernel/qboxlayout.cpp
@@ -52,8 +52,8 @@
QT_BEGIN_NAMESPACE
/*
- Returns true if the \a widget can be added to the \a layout;
- otherwise returns false.
+ Returns \c true if the \a widget can be added to the \a layout;
+ otherwise returns \c false.
*/
static bool checkWidget(QLayout *layout, QWidget *widget)
{
@@ -1112,7 +1112,7 @@ void QBoxLayout::addStrut(int size)
/*!
Sets the stretch factor for \a widget to \a stretch and returns
true if \a widget is found in this layout (not including child
- layouts); otherwise returns false.
+ layouts); otherwise returns \c false.
\sa setAlignment()
*/
@@ -1136,8 +1136,8 @@ bool QBoxLayout::setStretchFactor(QWidget *widget, int stretch)
\overload
Sets the stretch factor for the layout \a layout to \a stretch and
- returns true if \a layout is found in this layout (not including
- child layouts); otherwise returns false.
+ returns \c true if \a layout is found in this layout (not including
+ child layouts); otherwise returns \c false.
*/
bool QBoxLayout::setStretchFactor(QLayout *layout, int stretch)
{
diff --git a/src/widgets/kernel/qgesture.cpp b/src/widgets/kernel/qgesture.cpp
index 4baeae9021..f475642f78 100644
--- a/src/widgets/kernel/qgesture.cpp
+++ b/src/widgets/kernel/qgesture.cpp
@@ -987,7 +987,7 @@ void QGestureEvent::ignore(QGesture *gesture)
}
/*!
- Returns true if the \a gesture is accepted; otherwise returns false.
+ Returns \c true if the \a gesture is accepted; otherwise returns \c false.
*/
bool QGestureEvent::isAccepted(QGesture *gesture) const
{
@@ -1044,8 +1044,8 @@ void QGestureEvent::ignore(Qt::GestureType gestureType)
}
/*!
- Returns true if the gesture of type \a gestureType is accepted; otherwise
- returns false.
+ Returns \c true if the gesture of type \a gestureType is accepted; otherwise
+ returns \c false.
*/
bool QGestureEvent::isAccepted(Qt::GestureType gestureType) const
{
@@ -1114,7 +1114,7 @@ QPointF QGestureEvent::mapToGraphicsScene(const QPointF &gesturePoint) const
/*!
\fn bool QGestureEvent::isAccepted() const
- Returns true is the event has been accepted; otherwise returns false.
+ Returns \c true is the event has been accepted; otherwise returns \c false.
\sa QEvent::accepted
*/
diff --git a/src/widgets/kernel/qgridlayout.cpp b/src/widgets/kernel/qgridlayout.cpp
index 7da2104971..5434c40f97 100644
--- a/src/widgets/kernel/qgridlayout.cpp
+++ b/src/widgets/kernel/qgridlayout.cpp
@@ -1431,8 +1431,8 @@ void QGridLayout::addItem(QLayoutItem *item, int row, int column, int rowSpan, i
}
/*
- Returns true if the widget \a w can be added to the layout \a l;
- otherwise returns false.
+ Returns \c true if the widget \a w can be added to the layout \a l;
+ otherwise returns \c false.
*/
static bool checkWidget(QLayout *l, QWidget *w)
{
diff --git a/src/widgets/kernel/qlayout.cpp b/src/widgets/kernel/qlayout.cpp
index b79a6fe6c7..cd2891d829 100644
--- a/src/widgets/kernel/qlayout.cpp
+++ b/src/widgets/kernel/qlayout.cpp
@@ -234,7 +234,7 @@ void QLayout::addWidget(QWidget *w)
/*!
Sets the alignment for widget \a w to \a alignment and returns
true if \a w is found in this layout (not including child
- layouts); otherwise returns false.
+ layouts); otherwise returns \c false.
*/
bool QLayout::setAlignment(QWidget *w, Qt::Alignment alignment)
{
@@ -256,8 +256,8 @@ bool QLayout::setAlignment(QWidget *w, Qt::Alignment alignment)
\overload
Sets the alignment for the layout \a l to \a alignment and
- returns true if \a l is found in this layout (not including child
- layouts); otherwise returns false.
+ returns \c true if \a l is found in this layout (not including child
+ layouts); otherwise returns \c false.
*/
bool QLayout::setAlignment(QLayout *l, Qt::Alignment alignment)
{
@@ -1386,7 +1386,7 @@ void QLayout::setEnabled(bool enable)
}
/*!
- Returns true if the layout is enabled; otherwise returns false.
+ Returns \c true if the layout is enabled; otherwise returns \c false.
\sa setEnabled()
*/
diff --git a/src/widgets/kernel/qlayoutitem.cpp b/src/widgets/kernel/qlayoutitem.cpp
index a99ea77ce2..259af8a5e8 100644
--- a/src/widgets/kernel/qlayoutitem.cpp
+++ b/src/widgets/kernel/qlayoutitem.cpp
@@ -366,8 +366,8 @@ QWidget *QWidgetItem::widget()
}
/*!
- Returns true if this layout's preferred height depends on its
- width; otherwise returns false. The default implementation returns
+ Returns \c true if this layout's preferred height depends on its
+ width; otherwise returns \c false. The default implementation returns
false.
Reimplement this function in layout managers that support height
@@ -668,7 +668,7 @@ QSize QWidgetItem::sizeHint() const
}
/*!
- Returns true.
+ Returns \c true.
*/
bool QSpacerItem::isEmpty() const
{
@@ -676,7 +676,7 @@ bool QSpacerItem::isEmpty() const
}
/*!
- Returns true if the widget is hidden; otherwise returns false.
+ Returns \c true if the widget is hidden; otherwise returns \c false.
\sa QWidget::isHidden()
*/
diff --git a/src/widgets/kernel/qshortcut.cpp b/src/widgets/kernel/qshortcut.cpp
index 678e6f25d1..f7f7cf1039 100644
--- a/src/widgets/kernel/qshortcut.cpp
+++ b/src/widgets/kernel/qshortcut.cpp
@@ -72,7 +72,7 @@ static bool correctActionContext(Qt::ShortcutContext context, QAction *a, QWidge
/*! \internal
- Returns true if the widget \a w is a logical sub window of the current
+ Returns \c true if the widget \a w is a logical sub window of the current
top-level widget.
*/
bool qWidgetShortcutContextMatcher(QObject *object, Qt::ShortcutContext context)
@@ -517,7 +517,7 @@ QKeySequence QShortcut::key() const
If the application is in \c WhatsThis mode the shortcut will not emit
the signals, but will show the "What's This?" text instead.
- By default, this property is true.
+ By default, this property is \c true.
\sa whatsThis
*/
diff --git a/src/widgets/kernel/qsizepolicy.qdoc b/src/widgets/kernel/qsizepolicy.qdoc
index 2c088113e1..1c99131bc4 100644
--- a/src/widgets/kernel/qsizepolicy.qdoc
+++ b/src/widgets/kernel/qsizepolicy.qdoc
@@ -243,8 +243,8 @@
/*!
\fn bool QSizePolicy::hasHeightForWidth() const
- Returns true if the widget's preferred height depends on its
- width; otherwise returns false.
+ Returns \c true if the widget's preferred height depends on its
+ width; otherwise returns \c false.
\sa setHeightForWidth()
*/
@@ -265,8 +265,8 @@
/*!
\fn bool QSizePolicy::hasWidthForHeight() const
- Returns true if the widget's width depends on its
- height; otherwise returns false.
+ Returns \c true if the widget's width depends on its
+ height; otherwise returns \c false.
\sa setWidthForHeight()
*/
@@ -274,8 +274,8 @@
/*!
\fn bool QSizePolicy::operator==(const QSizePolicy &other) const
- Returns true if this policy is equal to \a other; otherwise
- returns false.
+ Returns \c true if this policy is equal to \a other; otherwise
+ returns \c false.
\sa operator!=()
*/
@@ -283,8 +283,8 @@
/*!
\fn bool QSizePolicy::operator!=(const QSizePolicy &other) const
- Returns true if this policy is different from \a other; otherwise
- returns false.
+ Returns \c true if this policy is different from \a other; otherwise
+ returns \c false.
\sa operator==()
*/
diff --git a/src/widgets/kernel/qtooltip.cpp b/src/widgets/kernel/qtooltip.cpp
index 8399f94976..c898f56015 100644
--- a/src/widgets/kernel/qtooltip.cpp
+++ b/src/widgets/kernel/qtooltip.cpp
@@ -107,7 +107,7 @@ QT_BEGIN_NAMESPACE
The default tool tip color and font can be customized with
setPalette() and setFont(). When a tooltip is currently on
- display, isVisible() returns true and text() the currently visible
+ display, isVisible() returns \c true and text() the currently visible
text.
\note Tool tips use the inactive color group of QPalette, because tool
@@ -526,7 +526,7 @@ void QToolTip::showText(const QPoint &pos, const QString &text, QWidget *w)
/*!
\since 4.4
- Returns true if this tooltip is currently shown.
+ Returns \c true if this tooltip is currently shown.
\sa showText()
*/
diff --git a/src/widgets/kernel/qwhatsthis.cpp b/src/widgets/kernel/qwhatsthis.cpp
index 661317d21a..d5c249c074 100644
--- a/src/widgets/kernel/qwhatsthis.cpp
+++ b/src/widgets/kernel/qwhatsthis.cpp
@@ -542,8 +542,8 @@ void QWhatsThis::enterWhatsThisMode()
}
/*!
- Returns true if the user interface is in "What's This?" mode;
- otherwise returns false.
+ Returns \c true if the user interface is in "What's This?" mode;
+ otherwise returns \c false.
\sa enterWhatsThisMode()
*/
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
index 02d95d2fa5..f439edcf2e 100644
--- a/src/widgets/kernel/qwidget.cpp
+++ b/src/widgets/kernel/qwidget.cpp
@@ -369,7 +369,7 @@ void QWidgetPrivate::updateWidgetTransform()
QPointer<QWidget> QWidgetPrivate::editingWidget;
/*!
- Returns true if this widget currently has edit focus; otherwise false.
+ Returns \c true if this widget currently has edit focus; otherwise false.
This feature is only available in Qt for Embedded Linux.
@@ -445,7 +445,7 @@ void QWidget::setEditFocus(bool on)
\l{Qt Style Sheets}. When a widget has a style sheet with a valid
background or a border-image, this property is automatically disabled.
- By default, this property is false.
+ By default, this property is \c false.
\sa Qt::WA_OpaquePaintEvent, Qt::WA_NoSystemBackground,
{QWidget#Transparency and Double Buffering}{Transparency and Double Buffering}
@@ -1634,7 +1634,7 @@ void QWidgetPrivate::deleteExtra()
}
/*
- Returns true if there are widgets above this which overlap with
+ Returns \c true if there are widgets above this which overlap with
\a rect, which is in parent's coordinate system (same as crect).
*/
@@ -2583,8 +2583,8 @@ void QWidgetPrivate::inheritStyle()
/*!
\fn bool QWidget::isWindow() const
- Returns true if the widget is an independent window, otherwise
- returns false.
+ Returns \c true if the widget is an independent window, otherwise
+ returns \c false.
A window is a widget that isn't visually the child of any other
widget and that usually has a frame and a
@@ -2610,7 +2610,7 @@ void QWidgetPrivate::inheritStyle()
This property only makes sense for windows. A modal widget
prevents widgets in all other windows from getting any input.
- By default, this property is false.
+ By default, this property is \c false.
\sa isWindow(), windowModality, QDialog
*/
@@ -2647,8 +2647,8 @@ void QWidget::setWindowModality(Qt::WindowModality windowModality)
/*!
\fn bool QWidget::underMouse() const
- Returns true if the widget is under the mouse cursor; otherwise
- returns false.
+ Returns \c true if the widget is under the mouse cursor; otherwise
+ returns \c false.
This value is not updated properly during drag and drop
operations.
@@ -2662,7 +2662,7 @@ void QWidget::setWindowModality(Qt::WindowModality windowModality)
This property is only relevant for windows.
- By default, this property is false.
+ By default, this property is \c false.
\sa showMinimized(), visible, show(), hide(), showNormal(), maximized
*/
@@ -2702,7 +2702,7 @@ void QWidget::showMinimized()
from any other resize). This is expected to improve as window manager
protocols evolve.
- By default, this property is false.
+ By default, this property is \c false.
\sa windowState(), showMaximized(), visible, show(), hide(), showNormal(), minimized
*/
@@ -2744,7 +2744,7 @@ void QWidget::overrideWindowState(Qt::WindowStates newstate)
combination of Qt::WindowState: Qt::WindowMinimized,
Qt::WindowMaximized, Qt::WindowFullScreen, and Qt::WindowActive.
- If the window is not visible (i.e. isVisible() returns false), the
+ If the window is not visible (i.e. isVisible() returns \c false), the
window state will take effect when show() is called. For visible
windows, the change is immediate. For example, to toggle between
full-screen and normal mode, use the following code:
@@ -2775,7 +2775,7 @@ void QWidget::overrideWindowState(Qt::WindowStates newstate)
A widget in full screen mode occupies the whole screen area and does not
display window decorations, such as a title bar.
- By default, this property is false.
+ By default, this property is \c false.
\sa windowState(), minimized, maximized
*/
@@ -2891,8 +2891,8 @@ void QWidget::showNormal()
}
/*!
- Returns true if this widget would become enabled if \a ancestor is
- enabled; otherwise returns false.
+ Returns \c true if this widget would become enabled if \a ancestor is
+ enabled; otherwise returns \c false.
@@ -3052,7 +3052,7 @@ QList<QAction*> QWidget::actions() const
explicitly disabled. It it not possible to explicitly enable a child
widget which is not a window while its parent widget remains disabled.
- By default, this property is true.
+ By default, this property is \c true.
\sa isEnabledTo(), QKeyEvent, QMouseEvent, changeEvent()
*/
@@ -3135,7 +3135,7 @@ void QWidgetPrivate::setEnabled_helper(bool enable)
\warning Do not modify this property in a drag and drop event handler.
- By default, this property is false.
+ By default, this property is \c false.
\sa {Drag and Drop}
*/
@@ -5513,7 +5513,7 @@ void QWidget::unsetLocale()
contain a "[*]" placeholder, which indicates where the '*' should
appear. Normally, it should appear right after the file name
(e.g., "document1.txt[*] - Text Editor"). If the \l
- windowModified property is false (the default), the placeholder
+ windowModified property is \c false (the default), the placeholder
is simply removed.
On some desktop platforms (including Windows and Unix), the application name
@@ -5879,7 +5879,7 @@ QWidget * QWidget::focusProxy() const
\brief whether this widget (or its focus proxy) has the keyboard
input focus
- By default, this property is false.
+ By default, this property is \c false.
\note Obtaining the value of this property for a widget is effectively equivalent
to checking whether QApplication::focusWidget() refers to the widget.
@@ -6132,7 +6132,7 @@ void QWidget::clearFocus()
\fn bool QWidget::focusNextChild()
Finds a new widget to give the keyboard focus to, as appropriate
- for \uicontrol Tab, and returns true if it can find a new widget, or
+ for \uicontrol Tab, and returns \c true if it can find a new widget, or
false if it can't.
\sa focusPreviousChild()
@@ -6142,7 +6142,7 @@ void QWidget::clearFocus()
\fn bool QWidget::focusPreviousChild()
Finds a new widget to give the keyboard focus to, as appropriate
- for \uicontrol Shift+Tab, and returns true if it can find a new widget,
+ for \uicontrol Shift+Tab, and returns \c true if it can find a new widget,
or false if it can't.
\sa focusNextChild()
@@ -6150,7 +6150,7 @@ void QWidget::clearFocus()
/*!
Finds a new widget to give the keyboard focus to, as appropriate
- for Tab and Shift+Tab, and returns true if it can find a new
+ for Tab and Shift+Tab, and returns \c true if it can find a new
widget, or false if it can't.
If \a next is true, this function searches forward, if \a next
@@ -6257,10 +6257,10 @@ QWidget *QWidget::previousInFocusChain() const
keyboard focus (The window may still have focus if it has no
widgets or none of its widgets accepts keyboard focus).
- When popup windows are visible, this property is true for both the
+ When popup windows are visible, this property is \c true for both the
active window \e and for the popup.
- By default, this property is false.
+ By default, this property is \c false.
\sa activateWindow(), QApplication::activeWindow()
*/
@@ -6640,8 +6640,8 @@ QByteArray QWidget::saveGeometry() const
\since 4.2
Restores the geometry and state top-level widgets stored in the
- byte array \a geometry. Returns true on success; otherwise
- returns false.
+ byte array \a geometry. Returns \c true on success; otherwise
+ returns \c false.
If the restored geometry is off-screen, it will be modified to be
inside the available screen geometry.
@@ -6965,7 +6965,7 @@ void QWidget::setFocusPolicy(Qt::FocusPolicy policy)
calling update() and repaint() has no effect if updates are
disabled.
- By default, this property is true.
+ By default, this property is \c true.
setUpdatesEnabled() is normally used to disable updates for a
short period of time, for instance to avoid screen flicker during
@@ -7261,7 +7261,7 @@ void QWidgetPrivate::hide_helper()
/*!
\fn bool QWidget::isHidden() const
- Returns true if the widget is hidden, otherwise returns false.
+ Returns \c true if the widget is hidden, otherwise returns \c false.
A hidden widget will only become visible when show() is called on
it. It will not be automatically shown when the parent is shown.
@@ -7567,8 +7567,8 @@ bool QWidgetPrivate::close_helper(CloseMode mode)
/*!
- Closes this widget. Returns true if the widget was closed;
- otherwise returns false.
+ Closes this widget. Returns \c true if the widget was closed;
+ otherwise returns \c false.
First it sends the widget a QCloseEvent. The widget is
\l{hide()}{hidden} if it \l{QCloseEvent::accept()}{accepts}
@@ -7636,8 +7636,8 @@ bool QWidget::close()
/*!
- Returns true if this widget would become visible if \a ancestor is
- shown; otherwise returns false.
+ Returns \c true if this widget would become visible if \a ancestor is
+ shown; otherwise returns \c false.
The true case occurs if neither the widget itself nor any parent
up to but excluding \a ancestor has been explicitly hidden.
@@ -7827,9 +7827,9 @@ QSize QWidget::minimumSizeHint() const
/*!
- Returns true if this widget is a parent, (or grandparent and so on
+ Returns \c true if this widget is a parent, (or grandparent and so on
to any level), of the given \a child, and both widgets are within
- the same window; otherwise returns false.
+ the same window; otherwise returns \c false.
*/
bool QWidget::isAncestorOf(const QWidget *child) const
@@ -7884,8 +7884,8 @@ inline void setDisabledStyle(QWidget *w, bool setStyle)
handlers such as mousePressEvent(); otherwise it will discard the
event.
- This function returns true if the event was recognized, otherwise
- it returns false. If the recognized event was accepted (see \l
+ This function returns \c true if the event was recognized, otherwise
+ it returns \c false. If the recognized event was accepted (see \l
QEvent::accepted), any further processing such as event
propagation to the parent widget stops.
@@ -9349,7 +9349,7 @@ int QWidget::heightForWidth(int w) const
/*!
\since 5.0
- Returns true if the widget's preferred height depends on its width; otherwise returns false.
+ Returns \c true if the widget's preferred height depends on its width; otherwise returns \c false.
*/
bool QWidget::hasHeightForWidth() const
{
@@ -10324,8 +10324,8 @@ void QWidget::setAttribute(Qt::WidgetAttribute attribute, bool on)
/*! \fn bool QWidget::testAttribute(Qt::WidgetAttribute attribute) const
- Returns true if attribute \a attribute is set on this widget;
- otherwise returns false.
+ Returns \c true if attribute \a attribute is set on this widget;
+ otherwise returns \c false.
\sa setAttribute()
*/
@@ -10888,7 +10888,7 @@ QRect QWidgetPrivate::frameStrut() const
Changes the focus from the current focusWidget to a widget in
the \a direction.
- Returns true, if there was a widget in that direction
+ Returns \c true, if there was a widget in that direction
*/
bool QWidgetPrivate::navigateToDirection(Direction direction)
{
@@ -11249,7 +11249,7 @@ void QWidget::ungrabGesture(Qt::GestureType gesture)
button is released.
\note Only visible widgets can grab mouse input. If isVisible()
- returns false for a widget, that widget cannot call grabMouse().
+ returns \c false for a widget, that widget cannot call grabMouse().
\note \b{(Mac OS X developers)} For \e Cocoa, calling
grabMouse() on a widget only works when the mouse is inside the
diff --git a/src/widgets/kernel/qwidget_p.h b/src/widgets/kernel/qwidget_p.h
index 88aff2b65d..cc740034fc 100644
--- a/src/widgets/kernel/qwidget_p.h
+++ b/src/widgets/kernel/qwidget_p.h
@@ -274,7 +274,7 @@ struct QWExtra {
/*!
\internal
- Returns true if \a p or any of its parents enable the
+ Returns \c true if \a p or any of its parents enable the
Qt::BypassGraphicsProxyWidget window flag. Used in QWidget::show() and
QWidget::setParent() to determine whether it's necessary to embed the
widget into a QGraphicsProxyWidget or not.