1
/* BEGIN_COMMON_COPYRIGHT_HEADER
4
* Razor - a lightweight, Qt based, desktop toolset
7
* Copyright: 2010-2011 Razor team
9
* Alexander Sokoloff <sokoloff.a@gmail.com>
11
* This program or library is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU Lesser General Public
13
* License as published by the Free Software Foundation; either
14
* version 2.1 of the License, or (at your option) any later version.
16
* This library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Lesser General Public License for more details.
21
* You should have received a copy of the GNU Lesser General
22
* Public License along with this library; if not, write to the
23
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24
* Boston, MA 02110-1301 USA
26
* END_COMMON_COPYRIGHT_HEADER */
28
#ifndef RAZORSHORTCUTBUTTON_P_H
29
#define RAZORSHORTCUTBUTTON_P_H
31
#include "razorshortcutbutton.h"
37
class RazorShortcutButtonPrivate : public QObject
41
explicit RazorShortcutButtonPrivate(RazorShortcutButton *parent);
43
bool keyPressEvent(QKeyEvent *event);
44
bool keyReleaseEvent(QKeyEvent *event);
48
void activate(bool active);
51
RazorShortcutButton * const q_ptr;
52
Q_DECLARE_PUBLIC(RazorShortcutButton)
54
QKeySequence mSequence;
59
#endif // RAZORSHORTCUTBUTTON_P_H