delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / kdedglobalaccel / kglobalaccel_qws.cpp
blobc8c5e8878fef5b88a5a9161f3c44c0eefe040466
1 /* This file is part of the KDE libraries
2 Copyright (C) 2001,2002 Ellis Whitehead <ellis@kde.org>
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.
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.
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.
20 #include "kglobalaccel_qws.h"
22 #include <config.h>
24 #include <QtGui/QWidgetList>
25 #ifdef Q_WS_QWS
27 #include "kglobalaccel.h"
29 #include <kapplication.h>
30 #include <kdebug.h>
32 KGlobalAccelImpl::KGlobalAccelImpl(GlobalShortcutsRegistry* owner)
33 : m_owner(owner)
37 bool KGlobalAccelImpl::grabKey( int keyQt, bool grab )
39 if( !keyQt ) {
40 kWarning(125) << "Tried to grab key with null code.";
41 return false;
44 // TODO ...
46 return false;
49 void KGlobalAccelImpl::setEnabled( bool enable )
51 #if 0
52 if ( enable )
53 kapp->installWinEventFilter( this );
54 else
55 kapp->removeWinEventFilter( this );
56 #endif
59 #include "kglobalaccel_qws.moc"
61 #endif // Q_WS_QWS