summaryrefslogtreecommitdiff
path: root/examples/opieui/okeyconfigwidget/testwidget.h
Side-by-side diff
Diffstat (limited to 'examples/opieui/okeyconfigwidget/testwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--examples/opieui/okeyconfigwidget/testwidget.h40
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 @@
+#ifndef TEST_WIDGET_H
+#define TEST_WIDGET_H
+
+#include <qmainwindow.h>
+
+#include <opie2/olistview.h>
+
+namespace Opie{
+namespace Ui{
+ class OTabWidget;
+ class OListView;
+}
+namespace Core {
+ class OConfig;
+ class OKeyConfigManager;
+ class OKeyConfigItem;
+}
+}
+class QKeyEvent;
+
+
+class TestMainWindow : public Opie::Ui::OListView {
+ Q_OBJECT
+public:
+
+ TestMainWindow(QWidget* parent, const char*, WFlags fl );
+ ~TestMainWindow();
+
+ Opie::Core::OKeyConfigManager *manager();
+protected:
+ void keyPressEvent( QKeyEvent* );
+private slots:
+ void slotDelete( QWidget*, QKeyEvent* );
+ void slotAction( QWidget*, QKeyEvent*, const Opie::Core::OKeyConfigItem& );
+private:
+ Opie::Core::OConfig *m_config;
+ Opie::Core::OKeyConfigManager *m_manager;
+};
+
+#endif