summaryrefslogtreecommitdiff
path: root/examples/opieui/okeyconfigwidget/testwidget.h
blob: 6ecb346eee47ab3a3a2332b33335213cdc94700e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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