[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdenlive/next] src: jogshuttle: debug info added
From: Vincent PINON <vincent.pinon () laposte ! net>
Date: 2014-04-30 20:27:48
Message-ID: E1Wfb6a-0003AX-LE () scm ! kde ! org
[Download RAW message or body]
Git commit dde235d90f254ca9cc0bc3ff4f6177e41327044e by Vincent PINON, on behalf of Ed \
Rogalsky. Committed on 16/03/2014 at 09:15.
Pushed by vpinon into branch 'next'.
jogshuttle: debug info added
M +5 -2 src/jogaction.cpp
http://commits.kde.org/kdenlive/dde235d90f254ca9cc0bc3ff4f6177e41327044e
diff --git a/src/jogaction.cpp b/src/jogaction.cpp
index 0fb5862..42a273a 100644
--- a/src/jogaction.cpp
+++ b/src/jogaction.cpp
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <klocalizedstring.h>
+#include <KDebug>
// TODO(fleury): this should probably be a user configuration parameter (at least \
the max speed). //const double SPEEDS[] = {0.0, 0.5, 1.0, 2.0, 4.0, 8.0, 16.0, \
32.0}; @@ -66,8 +67,10 @@ void JogShuttleAction::slotShuttlePos(int shuttle_pos)
if (magnitude < SPEEDS_SIZE) {
if (shuttle_pos < 0)
emit rewind(-SPEEDS[magnitude]);
- if (shuttle_pos == 0)
+ if (shuttle_pos == 0) {
+ //kDebug() << "Shuttle pos0 action: " << m_actionMap[0];
emit action(m_actionMap[0]);
+ }
if (shuttle_pos > 0)
emit forward(SPEEDS[magnitude]);
}
@@ -80,7 +83,7 @@ void JogShuttleAction::slotButton(int button_id)
fprintf(stderr, "Button %d has no action\n", button_id);
return;
}
- //fprintf(stderr, "Button #%d maps to action '%s'\n", button_id, \
m_actionMap[button_id].toAscii().constData()); //DBG + //kDebug() << "Shuttle \
button =" << button_id << ": action=" << m_actionMap[button_id]; emit \
action(m_actionMap[button_id]); }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic