summaryrefslogtreecommitdiffstats
path: root/src/widgets/widgets/qcheckbox.cpp
diff options
context:
space:
mode:
authorDavid Gil <davidgiloliva@gmail.com>2012-10-15 18:34:31 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-21 16:36:50 +0100
commit23e44afe7a27a385f430fbae9ce4948a44b93bce (patch)
treec368d204976f5de17b598dee41997fcba7ae5a96 /src/widgets/widgets/qcheckbox.cpp
parent49f17c815399697769a47f88d3f31460abf32f6d (diff)
[Doc cleanup] Fix typos and style of QAbstractButton, QButtonGroup, QCheckBox and QRadioButton
Change-Id: Ie557f865f5bdec7241abced91bf10cee8feaf9d9 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/widgets/widgets/qcheckbox.cpp')
-rw-r--r--src/widgets/widgets/qcheckbox.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/widgets/widgets/qcheckbox.cpp b/src/widgets/widgets/qcheckbox.cpp
index bf6593d976..bbad976c4b 100644
--- a/src/widgets/widgets/qcheckbox.cpp
+++ b/src/widgets/widgets/qcheckbox.cpp
@@ -77,8 +77,8 @@ public:
A QCheckBox is an option button that can be switched on (checked) or off
(unchecked). Checkboxes are typically used to represent features in an
- application that can be enabled or disabled without affecting others, but
- different types of behavior can be implemented. For example, a
+ application that can be enabled or disabled without affecting others.
+ Different types of behavior can be implemented. For example, a
QButtonGroup can be used to group check buttons logically, allowing
exclusive checkboxes. However, QButtonGroup does not provide any visual
representation.
@@ -91,7 +91,7 @@ public:
\li \inlineimage checkboxes-non-exclusive.png
\endtable
- Whenever a checkbox is checked or cleared it emits the signal
+ Whenever a checkbox is checked or cleared, it emits the signal
stateChanged(). Connect to this signal if you want to trigger an action
each time the checkbox changes state. You can use isChecked() to query
whether or not a checkbox is checked.
@@ -109,9 +109,9 @@ public:
\snippet code/src_gui_widgets_qcheckbox.cpp 0
- In this example the shortcut is \e{Alt+A}. See the \l{QShortcut#mnemonic}
- {QShortcut} documentation for details (to display an actual ampersand,
- use '&&').
+ In this example, the shortcut is \e{Alt+A}. See the \l{QShortcut#mnemonic}
+ {QShortcut} documentation for details. To display an actual ampersand,
+ use '&&'.
Important inherited functions: text(), setText(), text(), pixmap(),
setPixmap(), accel(), setAccel(), isToggleButton(), setDown(), isDown(),
@@ -137,17 +137,17 @@ public:
/*!
\fn void QCheckBox::stateChanged(int state)
- This signal is emitted whenever the check box's state changes, i.e.
+ This signal is emitted whenever the checkbox's state changes, i.e.,
whenever the user checks or unchecks it.
- \a state contains the check box's new Qt::CheckState.
+ \a state contains the checkbox's new Qt::CheckState.
*/
/*!
\property QCheckBox::tristate
\brief whether the checkbox is a tri-state checkbox
- The default is false; i.e. the checkbox has only two states.
+ The default is false, i.e., the checkbox has only two states.
*/
void QCheckBoxPrivate::init()
@@ -237,8 +237,8 @@ bool QCheckBox::isTristate() const
/*!
- Returns the check box's check state. If you do not need tristate support,
- you can also use \l QAbstractButton::isChecked() which returns a boolean.
+ Returns the checkbox's check state. If you do not need tristate support,
+ you can also use \l QAbstractButton::isChecked(), which returns a boolean.
\sa setCheckState(), Qt::CheckState
*/
@@ -251,8 +251,8 @@ Qt::CheckState QCheckBox::checkState() const
}
/*!
- Sets the check box's check state to \a state. If you do not need tristate
- support, you can also use \l QAbstractButton::setChecked() which takes a
+ Sets the checkbox's check state to \a state. If you do not need tristate
+ support, you can also use \l QAbstractButton::setChecked(), which takes a
boolean.
\sa checkState(), Qt::CheckState