summaryrefslogtreecommitdiff
path: root/inputmethods
authorzecke <zecke>2004-10-16 22:50:23 (UTC)
committer zecke <zecke>2004-10-16 22:50:23 (UTC)
commit5fb6ed213aa8b4b1101082671f57db45d7b10d01 (patch) (unidiff)
treea38ed0cd40d0e3960226e724c52864b64f44d000 /inputmethods
parent79c4778d1dc6050975fceeee7aab0ac0c28462ca (diff)
downloadopie-5fb6ed213aa8b4b1101082671f57db45d7b10d01.zip
opie-5fb6ed213aa8b4b1101082671f57db45d7b10d01.tar.gz
opie-5fb6ed213aa8b4b1101082671f57db45d7b10d01.tar.bz2
-Remove hardcoding of "/opt/QtPalmtop/" and use QPEApplication::qpeDir instead
In future we need a OpieStandardDir with locateFile, locateUserSetting and such
Diffstat (limited to 'inputmethods') (more/less context) (ignore whitespace changes)
-rw-r--r--inputmethods/dasher/QtDasherPlugin.cc4
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
18QtDasherPlugin::QtDasherPlugin(QWidget* parent, const char* name, WFlags f) : QFrame(parent,name,f) 20QtDasherPlugin::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
31QSize QtDasherPlugin::sizeHint() const 33QSize QtDasherPlugin::sizeHint() const
32{ 34{
33 return QSize(240,100); 35 return QSize(240,100);
34} 36}