summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qkeysequence.cpp
diff options
context:
space:
mode:
authoraavit <qt_aavit@ovi.com>2012-09-05 11:34:16 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-05 21:06:05 +0200
commitaba8de1bee8bbb9bc6b92e761a3dda0d829a211e (patch)
tree729812214c932c677de1d08000799828924c6da6 /src/gui/kernel/qkeysequence.cpp
parent49112c891bb84eee4083fdad4376cba60b0c7818 (diff)
Doc: Missing documentation added and doc errors fixed.
Change-Id: I573bf9622e38b54f2cb8c32fd402d477a1deb5c2 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src/gui/kernel/qkeysequence.cpp')
-rw-r--r--src/gui/kernel/qkeysequence.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/kernel/qkeysequence.cpp b/src/gui/kernel/qkeysequence.cpp
index e7534c787b..4e972d439e 100644
--- a/src/gui/kernel/qkeysequence.cpp
+++ b/src/gui/kernel/qkeysequence.cpp
@@ -372,7 +372,6 @@ void Q_GUI_EXPORT qt_set_sequence_auto_mnemonic(bool b) { qt_sequence_no_mnemoni
\value PartialMatch The key sequences match partially, but are not
the same.
\value ExactMatch The key sequences are the same.
- \omitvalue Identical
*/
/*!
@@ -923,8 +922,9 @@ QKeySequence::QKeySequence()
}
/*!
- Creates a key sequence from the \a key string. For example
- "Ctrl+O" gives CTRL+'O'. The strings "Ctrl",
+ Creates a key sequence from the \a key string, based on \a format.
+
+ For example "Ctrl+O" gives CTRL+'O'. The strings "Ctrl",
"Shift", "Alt" and "Meta" are recognized, as well as their
translated equivalents in the "QShortcut" context (using
QObject::tr()).
@@ -932,10 +932,8 @@ QKeySequence::QKeySequence()
Up to four key codes may be entered by separating them with
commas, e.g. "Alt+X,Ctrl+S,Q".
- \a key should be in NativeText format.
-
- This constructor is typically used with \l{QObject::tr()}{tr}(), so that shortcut keys can be replaced in
- translations:
+ This constructor is typically used with \l{QObject::tr()}{tr}(), so
+ that shortcut keys can be replaced in translations:
\snippet code/src_gui_kernel_qkeysequence.cpp 2