Skip to content

Commit ae9a8f4

Browse files
committed
Loads key configuration on load.
1 parent f0e64b7 commit ae9a8f4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

inputhandling.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ QString InputHandling::loadKeys()
5454
// The key in the configuration file was a QString very likely representing a Qt::Key
5555
QMetaEnum metaEnum = QMetaEnum::fromType<Qt::Key>();
5656

57-
key = static_cast<Qt::Key>(metaEnum.keyToValue("Key_Right", &ok));
58-
59-
qDebug() << "Key_Right";
60-
qDebug() << configurationKey;
61-
62-
6357
key = static_cast<Qt::Key>(metaEnum.keyToValue(configurationKey.toString().toUtf8().constData(), &ok));
6458

6559
if (ok)
@@ -96,6 +90,7 @@ bool InputHandling::eventFilter(QObject* object, QEvent* event)
9690
}
9791

9892
Qt::Key key = static_cast<Qt::Key>(keyEvent->key());
93+
qDebug() << "==== key:" << key;
9994
if (m_keyToSignal.contains(key))
10095
{
10196
SignalType signalName = m_keyToSignal.value(key);

volume.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Volume::Volume(QObject *parent)
44
:
55
QObject(parent)
66
{
7+
// TODO: check errors and report
8+
m_commands.loadCommands();
9+
710
m_currentVolume = m_settings.readInt(Settings::Volume);
811
changeVolume(m_currentVolume);
912
}

0 commit comments

Comments
 (0)