X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fjogaction.cpp;h=0fb5862296724148f25fb468d6d98f2d21a18c73;hb=d23c2b7a038c24dc4d2f2d979a06264c3ba1cdd8;hp=9453556ff78ce30a7403f6b223eaec7781a00723;hpb=60eb4b82541e1560403e52c2d078c0b4b100de7d;p=kdenlive diff --git a/src/jogaction.cpp b/src/jogaction.cpp index 9453556f..0fb58622 100644 --- a/src/jogaction.cpp +++ b/src/jogaction.cpp @@ -35,19 +35,19 @@ JogShuttleAction::JogShuttleAction (const JogShuttle* jogShuttle, const QStringL if (m_actionMap.size() == 0) m_actionMap.append("monitor_pause"); - connect(m_jogShuttle, SIGNAL( jogBack() ), this, SLOT( slotJogBack() )); - connect(m_jogShuttle, SIGNAL( jogForward() ), this, SLOT( slotJogForward() )); - connect(m_jogShuttle, SIGNAL( shuttlePos ( int ) ), this, SLOT( slotShuttlePos ( int ) )); - connect(m_jogShuttle, SIGNAL( button ( int ) ), this, SLOT( slotButton ( int ) )); - //for (int i = 0; i < actionMap.size(); i++) fprintf(stderr, "button #%d -> action '%s'\n", i, actionMap[i].toAscii().constData()); //DBG + connect(m_jogShuttle, SIGNAL(jogBack()), this, SLOT(slotJogBack())); + connect(m_jogShuttle, SIGNAL(jogForward()), this, SLOT(slotJogForward())); + connect(m_jogShuttle, SIGNAL(shuttlePos(int)), this, SLOT(slotShuttlePos(int))); + connect(m_jogShuttle, SIGNAL(button(int)), this, SLOT(slotButton(int))); + //for (int i = 0; i < actionMap.size(); ++i) fprintf(stderr, "button #%d -> action '%s'\n", i, actionMap[i].toAscii().constData()); //DBG } JogShuttleAction::~JogShuttleAction() { - disconnect(m_jogShuttle, SIGNAL( jogBack() ), this, SLOT( slotJogBack() )); - disconnect(m_jogShuttle, SIGNAL( jogForward() ), this, SLOT( slotJogForward() )); - disconnect(m_jogShuttle, SIGNAL( shuttlePos ( int ) ), this, SLOT( slotShuttlePos ( int ) )); - disconnect(m_jogShuttle, SIGNAL( button ( int ) ), this, SLOT( slotButton ( int ) )); + disconnect(m_jogShuttle, SIGNAL(jogBack()), this, SLOT(slotJogBack())); + disconnect(m_jogShuttle, SIGNAL(jogForward()), this, SLOT(slotJogForward())); + disconnect(m_jogShuttle, SIGNAL(shuttlePos(int)), this, SLOT(slotShuttlePos(int))); + disconnect(m_jogShuttle, SIGNAL(button(int)), this, SLOT(slotButton(int))); } void JogShuttleAction::slotJogBack() @@ -83,3 +83,5 @@ void JogShuttleAction::slotButton(int button_id) //fprintf(stderr, "Button #%d maps to action '%s'\n", button_id, m_actionMap[button_id].toAscii().constData()); //DBG emit action(m_actionMap[button_id]); } + +#include "jogaction.moc"