diff options
author | Jesus Fernandez <jesus.fernandez@qt.io> | 2016-11-18 17:39:01 +0100 |
---|---|---|
committer | Jesus Fernandez <jesus.fernandez@qt.io> | 2016-11-22 08:12:28 +0000 |
commit | e1f0e08e9a290689f2778ffcfafc133f8a1b99cf (patch) | |
tree | 9f62ff1f0644c98cd82837d70e60a9e33fbe1ce4 /src | |
parent | 3cd457bdad6eee4a703ef9773b80165a272fbdc7 (diff) |
Add more information for QKeySequence::toString on macOS
The previous documentation said:
"On OS X, the string returned resembles the sequence that is shown in
the menu bar."
That was not completely true because the string returned depends on the
format passed to the function.
Task-number: QTWEBSITE-744
Change-Id: I1b7d9367547326670d1b3a8cfe48f066910f5a10
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qkeysequence.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/kernel/qkeysequence.cpp b/src/gui/kernel/qkeysequence.cpp index ea71e34e4b..77c5ae7a02 100644 --- a/src/gui/kernel/qkeysequence.cpp +++ b/src/gui/kernel/qkeysequence.cpp @@ -1517,7 +1517,9 @@ bool QKeySequence::isDetached() const If the key sequence has no keys, an empty string is returned. On \macos, the string returned resembles the sequence that is - shown in the menu bar. + shown in the menu bar if \a format is + QKeySequence::NativeText; otherwise, the string uses the + "portable" format, suitable for writing to a file. \sa fromString() */ |