author | mickeyl <mickeyl> | 2005-01-29 14:18:51 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-29 14:18:51 (UTC) |
commit | 555b999359a5aad999eaaf48632ce85f25125b85 (patch) (unidiff) | |
tree | 7414362241e49e06f49486e93a8f504113961b1c /examples/opieui/okeyconfigwidget/testwidget.h | |
parent | 7b06e36fe27adc6a4fde2004eac13aaf8c0f0f02 (diff) | |
download | opie-555b999359a5aad999eaaf48632ce85f25125b85.zip opie-555b999359a5aad999eaaf48632ce85f25125b85.tar.gz opie-555b999359a5aad999eaaf48632ce85f25125b85.tar.bz2 |
examples appear here
Diffstat (limited to 'examples/opieui/okeyconfigwidget/testwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/opieui/okeyconfigwidget/testwidget.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/examples/opieui/okeyconfigwidget/testwidget.h b/examples/opieui/okeyconfigwidget/testwidget.h new file mode 100644 index 0000000..6ecb346 --- a/dev/null +++ b/examples/opieui/okeyconfigwidget/testwidget.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef TEST_WIDGET_H | ||
2 | #define TEST_WIDGET_H | ||
3 | |||
4 | #include <qmainwindow.h> | ||
5 | |||
6 | #include <opie2/olistview.h> | ||
7 | |||
8 | namespace Opie{ | ||
9 | namespace Ui{ | ||
10 | class OTabWidget; | ||
11 | class OListView; | ||
12 | } | ||
13 | namespace Core { | ||
14 | class OConfig; | ||
15 | class OKeyConfigManager; | ||
16 | class OKeyConfigItem; | ||
17 | } | ||
18 | } | ||
19 | class QKeyEvent; | ||
20 | |||
21 | |||
22 | class TestMainWindow : public Opie::Ui::OListView { | ||
23 | Q_OBJECT | ||
24 | public: | ||
25 | |||
26 | TestMainWindow(QWidget* parent, const char*, WFlags fl ); | ||
27 | ~TestMainWindow(); | ||
28 | |||
29 | Opie::Core::OKeyConfigManager *manager(); | ||
30 | protected: | ||
31 | void keyPressEvent( QKeyEvent* ); | ||
32 | private slots: | ||
33 | void slotDelete( QWidget*, QKeyEvent* ); | ||
34 | void slotAction( QWidget*, QKeyEvent*, const Opie::Core::OKeyConfigItem& ); | ||
35 | private: | ||
36 | Opie::Core::OConfig *m_config; | ||
37 | Opie::Core::OKeyConfigManager *m_manager; | ||
38 | }; | ||
39 | |||
40 | #endif | ||