git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@156 b624d157-de02-0410-bad0-e51aec6abb33master
parent
2149d4cfe1
commit
619eaa1552
@ -0,0 +1,31 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2005-2008 by Felix Geyer * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; version 2 of the License. * |
||||
|
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#include "KpKApplication.h" |
||||
#include "Application_X11.h" |
||||
|
||||
KpKApplication::KpKApplication() : KApplication(){ |
||||
} |
||||
|
||||
bool KeepassApplication::x11EventFilter(XEvent* event){ |
||||
if (KeepassApplication::x11KeyEvent(event)) |
||||
return true; |
||||
else |
||||
return KApplication::x11EventFilter(event); |
||||
} |
@ -0,0 +1,34 @@ |
||||
/***************************************************************************
|
||||
* Copyright (C) 2005-2008 by Felix Geyer * |
||||
* * |
||||
* This program is free software; you can redistribute it and/or modify * |
||||
* it under the terms of the GNU General Public License as published by * |
||||
* the Free Software Foundation; version 2 of the License. * |
||||
|
||||
* * |
||||
* This program is distributed in the hope that it will be useful, * |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||||
* GNU General Public License for more details. * |
||||
* * |
||||
* You should have received a copy of the GNU General Public License * |
||||
* along with this program; if not, write to the * |
||||
* Free Software Foundation, Inc., * |
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
||||
***************************************************************************/ |
||||
|
||||
#ifndef KP_KAPPLICATION_H |
||||
#define KP_KAPPLICATION_H |
||||
|
||||
#include <kapplication.h> |
||||
|
||||
class KpKApplication : public KApplication |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
KpKApplication(); |
||||
bool x11EventFilter(XEvent* event); |
||||
}; |
||||
|
||||
#endif // KP_KAPPLICATION_H
|
Reference in new issue