summaryrefslogtreecommitdiff
path: root/core/applets/multikeyapplet
authormickeyl <mickeyl>2004-10-29 12:38:37 (UTC)
committer mickeyl <mickeyl>2004-10-29 12:38:37 (UTC)
commitdca4423e3b0966fe26ba4183e5b6ad4666c61e86 (patch) (side-by-side diff)
tree8a06619edc609164f45b6a2d92ec3fe264fc3fb1 /core/applets/multikeyapplet
parente1ab37a7bc09619958037be7ecddc67fd334227d (diff)
downloadopie-dca4423e3b0966fe26ba4183e5b6ad4666c61e86.zip
opie-dca4423e3b0966fe26ba4183e5b6ad4666c61e86.tar.gz
opie-dca4423e3b0966fe26ba4183e5b6ad4666c61e86.tar.bz2
- no longer hardcode the font size
- add fixme for initial keyboard setting
Diffstat (limited to 'core/applets/multikeyapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/multikeyapplet/multikey.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/applets/multikeyapplet/multikey.cpp b/core/applets/multikeyapplet/multikey.cpp
index 8cb9083..f3d8375 100644
--- a/core/applets/multikeyapplet/multikey.cpp
+++ b/core/applets/multikeyapplet/multikey.cpp
@@ -18,18 +18,18 @@
#include <opie2/otaskbarapplet.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/qpeapplication.h>
+using namespace Opie::Ui;
/* QT */
#include <qdir.h>
-using namespace Opie::Ui;
+//FIXME: Better read appropriate initial setting from LOCALE, not hardcode it "EN"
Multikey::Multikey(QWidget *parent) : QLabel(parent), popupMenu(this), current("EN")
{
QCopChannel* swChannel = new QCopChannel("MultiKey/Switcher", this);
connect( swChannel, SIGNAL(received(const QCString&,const QByteArray&)),
this, SLOT(message(const QCString&,const QByteArray&)));
- setFont( QFont( "Helvetica", 10, QFont::Normal ) );
QPEApplication::setStylusOperation(this, QPEApplication::RightOnHold);
lang = 0;
QCopEnvelope e("MultiKey/Keyboard", "getmultikey()");
@@ -68,7 +68,7 @@ void Multikey::mouseReleaseEvent(QMouseEvent *ev)
lang = lang < sw_maps.count()-1 ? lang+1 : 0;
QCopEnvelope e("MultiKey/Keyboard", "setmultikey(QString)");
- //odebug << "Lang=" << lang << ", count=" << sw_maps.count() << ", lab=" << labels[lang].ascii() << "" << oendl;
+ //odebug << "Lang=" << lang << ", count=" << sw_maps.count() << ", lab=" << labels[lang].ascii() << "" << oendl;
e << sw_maps[lang];
setText(labels[lang]);
}