2 Copyright 2008 by Robert Knight <robertknight@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program 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
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 #include <QtCore/QEventLoop>
26 #include <kde_terminal_interface.h>
27 #include <KParts/Part>
35 class PartTest
: public QObject
40 void testShortcutOverride();
43 // marked as protected so they are not treated as test cases
45 void overrideShortcut(QKeyEvent
* event
, bool& override
);
46 void shortcutTriggered();
49 KParts::Part
* createPart();
51 // variables for testShortcutOverride()
52 bool _shortcutTriggered
;
55 QEventLoop
* _shortcutEventLoop
;