[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.6/kdeplasma-addons/applets/plasmaboard
From: Björn Ruberg <bjoern () ruberg-wegener ! de>
Date: 2011-01-03 16:55:15
Message-ID: 20110103165515.F0DA9AC8AE () svn ! kde ! org
[Download RAW message or body]
SVN commit 1211317 by ruberg:
Backporting fix from trunk. Widget now automatically adjusts when the system keyboard \
layout is changed thanks to a new dbus signal
M +6 -2 widget.cpp
--- branches/KDE/4.6/kdeplasma-addons/applets/plasmaboard/widget.cpp #1211316:1211317
@@ -36,12 +36,13 @@
#include "SwitchKey.h"
#include "TabKey.h"
+#include <QDBusConnection>
#include <QFile>
-#include <QStyleOptionGraphicsItem>
#include <QGraphicsSceneResizeEvent>
-#include <QTimer>
#include <QPainter>
#include <QSignalMapper>
+#include <QStyleOptionGraphicsItem>
+#include <QTimer>
#include <plasma/containment.h>
#include <plasma/corona.h>
#include <plasma/theme.h>
@@ -94,6 +95,9 @@
m_repeatTimer = new QTimer(this);
connect(m_repeatTimer, SIGNAL(timeout()), this, SLOT(repeatKeys()));
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, \
SLOT(themeChanged())); +
+ QDBusConnection dbus = QDBusConnection::sessionBus();
+ dbus.connect("org.kde.keyboard", "/Layouts", "org.kde.KeyboardLayouts", \
"currentLayoutChanged", this, SLOT(relabelKeys())); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic