[mythtv] [PATCH] small tweak to MythSpinBox

Joseph A. Caputo jcaputo1 at comcast.net
Thu Nov 6 21:23:11 EST 2003


Attached is a patch to add 2 keybindings to MythSpinBox.  This adds 
bindings for PgUp (Key_Prior) and PgDn (Key_Next) to increment/decrement 
the value by 1.  This allows finer control without removing the jump 
factor.  I added this primarily after frustration that I couldn't adjust 
the start time & duration of a manual recording in less than 5-minute 
increments, and I didn't want to be forced to only adjust in 1-minute 
increments (kind of annoying to change the default 120min duration down 
to 28 minutes in 1-minute steps!)

-JAC


-------------- next part --------------
Index: libs/libmyth/mythwidgets.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/mythwidgets.cpp,v
retrieving revision 1.64
diff -u -u -r1.64 mythwidgets.cpp
--- libs/libmyth/mythwidgets.cpp	8 Sep 2003 01:29:59 -0000	1.64
+++ libs/libmyth/mythwidgets.cpp	7 Nov 2003 02:01:58 -0000
@@ -123,6 +123,12 @@
     case Key_Right:
         stepUp();
         break;
+    case Key_Next:
+        setValue(value() + 1);
+	break;
+    case Key_Prior:
+       setValue(value() - 1);
+       break;
     case Key_Enter: case Key_Space: case Key_Return: case Key_Escape:
         return FALSE;
     default:


More information about the mythtv-dev mailing list