summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qkeysequence_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2013-11-09 16:58:52 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-14 18:59:38 +0100
commit6b745d6c6336445ec98cbed4dfa1fd3fb801b369 (patch)
tree681a03520aa32819661770fd62cf1a3da8ce99f7 /src/gui/kernel/qkeysequence_p.h
parentee53530a0e7a60828d74cf29a42bacb2828c9ded (diff)
Move MaxKeyCount from QKeySequenceEditPrivate to QKeySequencePrivate
Adjust users and add a static_cast that MaxKeyCount be 4. That is instead of adjusting all the code to use MaxKeyCount instead, some of which cannot be thus changed (e.g. where using the QKeySequence(int, int, int, int) constructor). This was requested in the original review, but never implemented. Change-Id: I3812340890f4d75257139f04e73e83083ca09760 Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/gui/kernel/qkeysequence_p.h')
-rw-r--r--src/gui/kernel/qkeysequence_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qkeysequence_p.h b/src/gui/kernel/qkeysequence_p.h
index eac0d4b0a6..3751660500 100644
--- a/src/gui/kernel/qkeysequence_p.h
+++ b/src/gui/kernel/qkeysequence_p.h
@@ -69,6 +69,7 @@ struct Q_AUTOTEST_EXPORT QKeyBinding
class Q_AUTOTEST_EXPORT QKeySequencePrivate
{
public:
+ enum { MaxKeyCount = 4 }; // used in QKeySequenceEdit
inline QKeySequencePrivate() : ref(1)
{
key[0] = key[1] = key[2] = key[3] = 0;