Commit 311fe315 authored by Martin Flöser's avatar Martin Flöser

Drop unused private field GlobalShortcut::m_axis

Thanks to Clang for reporting.
parent 95a6f1ac
......@@ -42,7 +42,6 @@ GlobalShortcut::GlobalShortcut(const QKeySequence &shortcut)
: m_shortcut(shortcut)
, m_pointerModifiers(Qt::NoModifier)
, m_pointerButtons(Qt::NoButton)
, m_axis(PointerAxisUp)
{
}
......@@ -50,15 +49,13 @@ GlobalShortcut::GlobalShortcut(Qt::KeyboardModifiers pointerButtonModifiers, Qt:
: m_shortcut(QKeySequence())
, m_pointerModifiers(pointerButtonModifiers)
, m_pointerButtons(pointerButtons)
, m_axis(PointerAxisUp)
{
}
GlobalShortcut::GlobalShortcut(Qt::KeyboardModifiers modifiers, PointerAxisDirection axis)
GlobalShortcut::GlobalShortcut(Qt::KeyboardModifiers modifiers)
: m_shortcut(QKeySequence())
, m_pointerModifiers(modifiers)
, m_pointerButtons(Qt::NoButton)
, m_axis(axis)
{
}
......@@ -66,7 +63,6 @@ GlobalShortcut::GlobalShortcut(SwipeDirection direction)
: m_shortcut(QKeySequence())
, m_pointerModifiers(Qt::NoModifier)
, m_pointerButtons(Qt::NoButton)
, m_axis(PointerAxisUp)
, m_swipeDirection(direction)
{
}
......@@ -89,9 +85,10 @@ InternalGlobalShortcut::InternalGlobalShortcut(Qt::KeyboardModifiers pointerButt
}
InternalGlobalShortcut::InternalGlobalShortcut(Qt::KeyboardModifiers axisModifiers, PointerAxisDirection axis, QAction *action)
: GlobalShortcut(axisModifiers, axis)
: GlobalShortcut(axisModifiers)
, m_action(action)
{
Q_UNUSED(axis)
}
static SwipeGesture::Direction toSwipeDirection(SwipeDirection direction)
......
......@@ -132,14 +132,13 @@ public:
protected:
GlobalShortcut(const QKeySequence &shortcut);
GlobalShortcut(Qt::KeyboardModifiers pointerButtonModifiers, Qt::MouseButtons pointerButtons);
GlobalShortcut(Qt::KeyboardModifiers axisModifiers, PointerAxisDirection axis);
GlobalShortcut(Qt::KeyboardModifiers axisModifiers);
GlobalShortcut(SwipeDirection direction);
private:
QKeySequence m_shortcut;
Qt::KeyboardModifiers m_pointerModifiers;
Qt::MouseButtons m_pointerButtons;
PointerAxisDirection m_axis;
SwipeDirection m_swipeDirection = SwipeDirection::Invalid;;
};
......
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