From 5fb6ed213aa8b4b1101082671f57db45d7b10d01 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 16 Oct 2004 22:50:23 +0000 Subject: -Remove hardcoding of "/opt/QtPalmtop/" and use QPEApplication::qpeDir instead In future we need a OpieStandardDir with locateFile, locateUserSetting and such --- (limited to 'inputmethods/dasher') 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,6 +1,7 @@ #include "QtDasherPlugin.h" #include +#include #include #include @@ -8,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -19,7 +21,7 @@ QtDasherPlugin::QtDasherPlugin(QWidget* parent, const char* name, WFlags f) : QF { (new QHBoxLayout(this))->setAutoAdd(TRUE); interface = new CDasherInterface; - interface->SetSystemLocation("/opt/QtPalmtop/share/dasher/"); + interface->SetSystemLocation( QFile::encodeName(QPEApplication::qpeDir()+"share/dasher/").data() ); interface->Unpause(0); interface->Start(); d = new QtDasherScreen(240,100,interface,this,this); -- cgit v0.9.0.2