Warning: That file was not part of the compilation database. It may have many parsing errors.
1 | /* This file is part of the KDE libraries |
---|---|
2 | Copyright (C) 2001,2002 Ellis Whitehead <ellis@kde.org> |
3 | |
4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public |
6 | License as published by the Free Software Foundation; either |
7 | version 2 of the License, or (at your option) any later version. |
8 | |
9 | This library is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | Library General Public License for more details. |
13 | |
14 | You should have received a copy of the GNU Library General Public License |
15 | along with this library; see the file COPYING.LIB. If not, write to |
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #include "kglobalaccel_qws.h" |
21 | |
22 | #include <config.h> |
23 | |
24 | #include <QWidgetList> |
25 | #ifdef Q_WS_QWS |
26 | |
27 | #include "kglobalaccel.h" |
28 | |
29 | #include <kapplication.h> |
30 | #include <kdebug.h> |
31 | |
32 | KGlobalAccelImpl::KGlobalAccelImpl(GlobalShortcutsRegistry* owner) |
33 | : m_owner(owner) |
34 | { |
35 | } |
36 | |
37 | bool KGlobalAccelImpl::grabKey( int keyQt, bool grab ) |
38 | { |
39 | if( !keyQt ) { |
40 | kWarning(125) << "Tried to grab key with null code."; |
41 | return false; |
42 | } |
43 | |
44 | // TODO ... |
45 | |
46 | return false; |
47 | } |
48 | |
49 | void KGlobalAccelImpl::setEnabled( bool enable ) |
50 | { |
51 | #if 0 |
52 | if ( enable ) |
53 | kapp->installWinEventFilter( this ); |
54 | else |
55 | kapp->removeWinEventFilter( this ); |
56 | #endif |
57 | } |
58 | |
59 | #include "kglobalaccel_qws.moc" |
60 | |
61 | #endif // Q_WS_QWS |
62 |
Warning: That file was not part of the compilation database. It may have many parsing errors.