From aba8de1bee8bbb9bc6b92e761a3dda0d829a211e Mon Sep 17 00:00:00 2001 From: aavit Date: Wed, 5 Sep 2012 11:34:16 +0200 Subject: Doc: Missing documentation added and doc errors fixed. Change-Id: I573bf9622e38b54f2cb8c32fd402d477a1deb5c2 Reviewed-by: Qt Doc Bot Reviewed-by: Kim M. Kalland --- src/gui/kernel/qkeysequence.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/gui/kernel/qkeysequence.cpp') 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 -- cgit v1.2.3