summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/multikeyapplet/config.in2
-rw-r--r--core/applets/multikeyapplet/multikey.cpp13
-rw-r--r--core/applets/multikeyapplet/multikey.h1
-rw-r--r--core/applets/multikeyapplet/multikeyapplet.pro6
4 files changed, 18 insertions, 4 deletions
diff --git a/core/applets/multikeyapplet/config.in b/core/applets/multikeyapplet/config.in
index fc7affe..2e1a9e2 100644
--- a/core/applets/multikeyapplet/config.in
+++ b/core/applets/multikeyapplet/config.in
@@ -1,4 +1,4 @@
config MULTIKEYAPPLET
boolean "opie-multikeyapplet (Applet to switch OnScreen keyboard layout)"
default "y"
- depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE && MULTIKEY
+ depends ( LIBQPE || LIBQPE-X11 ) && MULTIKEY
diff --git a/core/applets/multikeyapplet/multikey.cpp b/core/applets/multikeyapplet/multikey.cpp
index d304f54..b36ee12 100644
--- a/core/applets/multikeyapplet/multikey.cpp
+++ b/core/applets/multikeyapplet/multikey.cpp
@@ -14,11 +14,14 @@
#include "multikey.h"
+/* OPIE */
+#include <opie2/otaskbarapplet.h>
#include <qpe/global.h>
#include <qpe/config.h>
#include <qpe/qcopenvelope_qws.h>
#include <qpe/qpeapplication.h>
+/* QT */
#include <qlabel.h>
#include <qdir.h>
#include <qfileinfo.h>
@@ -134,3 +137,13 @@ void Multikey::message(const QCString &message, const QByteArray &data)
setText(current);
}
}
+
+int Multikey::position()
+{
+ return 10;
+}
+
+Q_EXPORT_INTERFACE()
+{
+ Q_CREATE_INSTANCE( OTaskbarAppletWrapper<Multikey> );
+}
diff --git a/core/applets/multikeyapplet/multikey.h b/core/applets/multikeyapplet/multikey.h
index 1c5aa0c..acddfc8 100644
--- a/core/applets/multikeyapplet/multikey.h
+++ b/core/applets/multikeyapplet/multikey.h
@@ -24,6 +24,7 @@ class Multikey: public QLabel
Q_OBJECT
public:
Multikey(QWidget *parent);
+ static int position();
protected:
void mousePressEvent(QMouseEvent *ev);
diff --git a/core/applets/multikeyapplet/multikeyapplet.pro b/core/applets/multikeyapplet/multikeyapplet.pro
index 4be1f74..86e41c0 100644
--- a/core/applets/multikeyapplet/multikeyapplet.pro
+++ b/core/applets/multikeyapplet/multikeyapplet.pro
@@ -1,12 +1,12 @@
TEMPLATE = lib
CONFIG += qt plugin warn_on release
-HEADERS = multikey.h multikeyappletimpl.h
-SOURCES = multikey.cpp multikeyappletimpl.cpp
+HEADERS = multikey.h
+SOURCES = multikey.cpp
TARGET = multikeyapplet
DESTDIR = $(OPIEDIR)/plugins/applets
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += ../$(OPIEDIR)/include ..
-LIBS += -lqpe -lopie
+LIBS += -lqpe
VERSION = 1.0.0
include ( $(OPIEDIR)/include.pro )