From 36eb5fb732b8c5327fe5e072f42a9e61e7bf2ab2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 12 Oct 2011 23:00:13 +0200 Subject: Make some more methods private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0644ee287201866596dccd96e443e7e62fd89360 Reviewed-by: Samuel Rødal --- src/gui/kernel/qshortcutmap_p.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/gui') diff --git a/src/gui/kernel/qshortcutmap_p.h b/src/gui/kernel/qshortcutmap_p.h index bfd3607e5e..28c37f9a2e 100644 --- a/src/gui/kernel/qshortcutmap_p.h +++ b/src/gui/kernel/qshortcutmap_p.h @@ -83,29 +83,27 @@ public: int setShortcutEnabled(bool enable, int id, QObject *owner, const QKeySequence &key = QKeySequence()); int setShortcutAutoRepeat(bool on, int id, QObject *owner, const QKeySequence &key = QKeySequence()); - void resetState(); - QKeySequence::SequenceMatch nextState(QKeyEvent *e); - QKeySequence::SequenceMatch state(); - void dispatchEvent(QKeyEvent *e); bool tryShortcutEvent(QObject *o, QKeyEvent *e); + bool hasShortcutForKeySequence(const QKeySequence &seq) const; #ifdef Dump_QShortcutMap void dumpMap() const; #endif - bool hasShortcutForKeySequence(const QKeySequence &seq) const; - - private: - QScopedPointer d_ptr; + void resetState(); + QKeySequence::SequenceMatch nextState(QKeyEvent *e); + QKeySequence::SequenceMatch state(); + void dispatchEvent(QKeyEvent *e); QKeySequence::SequenceMatch find(QKeyEvent *e); QKeySequence::SequenceMatch matches(const QKeySequence &seq1, const QKeySequence &seq2) const; QVector matches() const; void createNewSequences(QKeyEvent *e, QVector &ksl); void clearSequence(QVector &ksl); - bool correctContext(const QShortcutEntry &item) const; int translateModifiers(Qt::KeyboardModifiers modifiers); + + QScopedPointer d_ptr; }; #endif // QT_NO_SHORTCUT -- cgit v1.2.3