-rw-r--r-- | inputmethods/dasher/QtDasherPlugin.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inputmethods/dasher/QtDasherPlugin.cc b/inputmethods/dasher/QtDasherPlugin.cc index 50d4539..91167c2 100644 --- a/inputmethods/dasher/QtDasherPlugin.cc +++ b/inputmethods/dasher/QtDasherPlugin.cc | |||
@@ -1,34 +1,36 @@ | |||
1 | #include "QtDasherPlugin.h" | 1 | #include "QtDasherPlugin.h" |
2 | 2 | ||
3 | #include <qpe/global.h> | 3 | #include <qpe/global.h> |
4 | #include <qpe/qpeapplication.h> | ||
4 | 5 | ||
5 | #include <qpainter.h> | 6 | #include <qpainter.h> |
6 | #include <qlist.h> | 7 | #include <qlist.h> |
7 | #include <qbitmap.h> | 8 | #include <qbitmap.h> |
8 | #include <qlayout.h> | 9 | #include <qlayout.h> |
9 | #include <qvbox.h> | 10 | #include <qvbox.h> |
10 | #include <qdialog.h> | 11 | #include <qdialog.h> |
12 | #include <qfile.h> | ||
11 | #include <qscrollview.h> | 13 | #include <qscrollview.h> |
12 | #include <qpopupmenu.h> | 14 | #include <qpopupmenu.h> |
13 | #include <qhbuttongroup.h> | 15 | #include <qhbuttongroup.h> |
14 | #include <qpushbutton.h> | 16 | #include <qpushbutton.h> |
15 | #include <qmessagebox.h> | 17 | #include <qmessagebox.h> |
16 | #include <qwindowsystem_qws.h> | 18 | #include <qwindowsystem_qws.h> |
17 | 19 | ||
18 | QtDasherPlugin::QtDasherPlugin(QWidget* parent, const char* name, WFlags f) : QFrame(parent,name,f) | 20 | QtDasherPlugin::QtDasherPlugin(QWidget* parent, const char* name, WFlags f) : QFrame(parent,name,f) |
19 | { | 21 | { |
20 | (new QHBoxLayout(this))->setAutoAdd(TRUE); | 22 | (new QHBoxLayout(this))->setAutoAdd(TRUE); |
21 | interface = new CDasherInterface; | 23 | interface = new CDasherInterface; |
22 | interface->SetSystemLocation("/opt/QtPalmtop/share/dasher/"); | 24 | interface->SetSystemLocation( QFile::encodeName(QPEApplication::qpeDir()+"share/dasher/").data() ); |
23 | interface->Unpause(0); | 25 | interface->Unpause(0); |
24 | interface->Start(); | 26 | interface->Start(); |
25 | d = new QtDasherScreen(240,100,interface,this,this); | 27 | d = new QtDasherScreen(240,100,interface,this,this); |
26 | interface->ChangeMaxBitRate(2.5); | 28 | interface->ChangeMaxBitRate(2.5); |
27 | d->show(); | 29 | d->show(); |
28 | utf8_codec = new QUtf8Codec; | 30 | utf8_codec = new QUtf8Codec; |
29 | } | 31 | } |
30 | 32 | ||
31 | QSize QtDasherPlugin::sizeHint() const | 33 | QSize QtDasherPlugin::sizeHint() const |
32 | { | 34 | { |
33 | return QSize(240,100); | 35 | return QSize(240,100); |
34 | } | 36 | } |