Changeset View
Changeset View
Standalone View
Standalone View
src/ListTabbedSessionsPopup.h
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright 2007-2008 by Robert Knight <robertknight@gmail.com> | ||||
3 | Copyright 1997,1998 by Lars Doelle <lars.doelle@on-line.de> | ||||
4 | | ||||
5 | This program is free software; you can redistribute it and/or modify | ||||
6 | it under the terms of the GNU General Public License as published by | ||||
7 | the Free Software Foundation; either version 2 of the License, or | ||||
8 | (at your option) any later version. | ||||
9 | | ||||
10 | This program is distributed in the hope that it will be useful, | ||||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
13 | GNU General Public License for more details. | ||||
14 | | ||||
15 | You should have received a copy of the GNU General Public License | ||||
16 | along with this program; if not, write to the Free Software | ||||
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||||
18 | 02110-1301 USA. | ||||
19 | */ | ||||
20 | | ||||
21 | | ||||
22 | #ifndef LISTTABBEDSESSIONSPOPUP_H | ||||
23 | #define LISTTABBEDSESSIONSPOPUP_H | ||||
24 | | ||||
25 | #include <QListView> | ||||
26 | | ||||
27 | class QFocusEvent; | ||||
28 | class QShowEvent; | ||||
29 | class QKeyEvent; | ||||
30 | | ||||
31 | namespace Konsole { | ||||
32 | | ||||
33 | class ListTabbedSessionsPopup : public QListView | ||||
34 | { | ||||
35 | Q_OBJECT | ||||
36 | public: | ||||
37 | ListTabbedSessionsPopup(QWidget *parent); | ||||
38 | void focusNext(); | ||||
39 | | ||||
40 | protected: | ||||
41 | void showEvent(QShowEvent *event) override; | ||||
42 | void focusOutEvent(QFocusEvent *event) override; | ||||
43 | void keyPressEvent(QKeyEvent *event) override; | ||||
44 | }; | ||||
45 | | ||||
46 | } | ||||
47 | #endif |