~lukas-kde/qtmir/defaultKeymap

« back to all changes in this revision

Viewing changes to src/platforms/mirserver/inputdeviceobserver.cpp

  • Committer: Lukáš Tinkl
  • Date: 2017-01-03 20:59:50 UTC
  • Revision ID: lukas.tinkl@canonical.com-20170103205950-gxj1bz1m1415rln9
fix connection with the singleton, drop unused stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
using namespace qtmir;
29
29
namespace mi = mir::input;
30
30
 
31
 
MirInputDeviceObserver::MirInputDeviceObserver(const std::shared_ptr<mi::InputDeviceHub> &hub):
32
 
    QObject(), m_hub(hub)
 
31
MirInputDeviceObserver::MirInputDeviceObserver(QObject *parent):
 
32
    QObject(parent)
33
33
{
34
 
    connect(Mir::instance(), &Mir::currentKeymapChanged, this, &MirInputDeviceObserver::setKeymap);
 
34
    connect(Mir::instance(), &Mir::currentKeymapChanged, this, &MirInputDeviceObserver::setKeymap, Qt::DirectConnection);
35
35
}
36
36
 
37
37
MirInputDeviceObserver::~MirInputDeviceObserver()