Commit b0a47292 authored by Stefan Majewsky's avatar Stefan Majewsky
Browse files

More fixes in Palapeli::Trigger construction, this time to make No-Button triggers work.

svn path=/trunk/KDE/kdegames/palapeli/; revision=1118509
parent d08fb184
......@@ -120,12 +120,16 @@ K_GLOBAL_STATIC(TriggerParserData, tParserData)
K_GLOBAL_STATIC(TriggerPrinterData, tPrinterData)
Palapeli::Trigger::Trigger()
: m_button((Qt::MouseButton) -1)
: m_modifiers(Qt::NoModifier)
, m_button((Qt::MouseButton) -1)
, m_wheelDirection((Qt::Orientation) 0)
{
}
Palapeli::Trigger::Trigger(const QByteArray& serialization)
: m_button((Qt::MouseButton) -1)
: m_modifiers(Qt::NoModifier)
, m_button((Qt::MouseButton) -1)
, m_wheelDirection((Qt::Orientation) 0)
{
//expect format "BUTTON_OR_WHEEL;MODIFIERLIST", i.e. two sections separated by semicolon
const QList<QByteArray> sections = serialization.split(';');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment