Diffstat (limited to 'examples/inputmethod/exampleboardimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/inputmethod/exampleboardimpl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/inputmethod/exampleboardimpl.cpp b/examples/inputmethod/exampleboardimpl.cpp index 36989a2..6c7196b 100644 --- a/examples/inputmethod/exampleboardimpl.cpp +++ b/examples/inputmethod/exampleboardimpl.cpp | |||
@@ -1,18 +1,19 @@ | |||
1 | #include <qwidget.h> | 1 | #include <qwidget.h> |
2 | #include <qcheckbox.h> | 2 | #include <qcheckbox.h> |
3 | #include <qlabel.h> | 3 | #include <qlabel.h> |
4 | #include <qsignalmapper.h> | 4 | #include <qsignalmapper.h> |
5 | #include <qpushbutton.h> | 5 | #include <qpushbutton.h> |
6 | #include <qpe/resource.h> | 6 | |
7 | #include <opie2/oresource.h> | ||
7 | 8 | ||
8 | #include "exampleboardimpl.h" | 9 | #include "exampleboardimpl.h" |
9 | 10 | ||
10 | ExampleBoard::ExampleBoard(QWidget* par, WFlags fl ) | 11 | ExampleBoard::ExampleBoard(QWidget* par, WFlags fl ) |
11 | : QHBox(par, "name", fl ) | 12 | : QHBox(par, "name", fl ) |
12 | { | 13 | { |
13 | QCheckBox *box1 = new QCheckBox(tr("Alt"),this); | 14 | QCheckBox *box1 = new QCheckBox(tr("Alt"),this); |
14 | connect(box1,SIGNAL(toggled(bool)), | 15 | connect(box1,SIGNAL(toggled(bool)), |
15 | this,SLOT(slotAlt(bool))); | 16 | this,SLOT(slotAlt(bool))); |
16 | m_alt = box1; | 17 | m_alt = box1; |
17 | box1 = new QCheckBox(tr("Shift"),this ); | 18 | box1 = new QCheckBox(tr("Shift"),this ); |
18 | connect(box1,SIGNAL(toggled(bool)), | 19 | connect(box1,SIGNAL(toggled(bool)), |
@@ -109,25 +110,25 @@ QWidget *ExampleboardImpl::inputMethod( QWidget *parent, Qt::WFlags f ) | |||
109 | return m_pickboard; | 110 | return m_pickboard; |
110 | } | 111 | } |
111 | 112 | ||
112 | void ExampleboardImpl::resetState() | 113 | void ExampleboardImpl::resetState() |
113 | { | 114 | { |
114 | if ( m_pickboard ) | 115 | if ( m_pickboard ) |
115 | m_pickboard->resetState(); | 116 | m_pickboard->resetState(); |
116 | } | 117 | } |
117 | 118 | ||
118 | QPixmap *ExampleboardImpl::icon() | 119 | QPixmap *ExampleboardImpl::icon() |
119 | { | 120 | { |
120 | if ( !m_icn ) | 121 | if ( !m_icn ) |
121 | m_icn = new QPixmap(Resource::loadPixmap("Tux")); | 122 | m_icn = new QPixmap(Opie::Core::OResource::loadPixmap("Tux", Opie::Core::OResource::SmallIcon)); |
122 | return m_icn; | 123 | return m_icn; |
123 | } | 124 | } |
124 | 125 | ||
125 | QString ExampleboardImpl::name() | 126 | QString ExampleboardImpl::name() |
126 | { | 127 | { |
127 | return QObject::tr("Example Input"); | 128 | return QObject::tr("Example Input"); |
128 | } | 129 | } |
129 | 130 | ||
130 | void ExampleboardImpl::onKeyPress( QObject *receiver, const char *slot ) | 131 | void ExampleboardImpl::onKeyPress( QObject *receiver, const char *slot ) |
131 | { | 132 | { |
132 | if ( m_pickboard ) | 133 | if ( m_pickboard ) |
133 | QObject::connect( m_pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); | 134 | QObject::connect( m_pickboard, SIGNAL(key(ushort,ushort,ushort,bool,bool)), receiver, slot ); |