[mythtv] [PATCH] GetCurrentItem from UIListType
Kevin Kuphal
kuphal at dls.net
Sun Jul 25 11:23:05 EDT 2004
A simple patch that returns the current item from a UIListType so that
the code using it does not have to keep track of where they are in the list
Kevin
-------------- next part --------------
Index: mythtv/libs/libmyth/uitypes.h
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/uitypes.h,v
retrieving revision 1.52
diff -n -u -r1.52 uitypes.h
--- mythtv/libs/libmyth/uitypes.h 25 Jun 2004 21:26:02 -0000 1.52
+++ mythtv/libs/libmyth/uitypes.h 25 Jul 2004 15:19:58 -0000
@@ -372,6 +372,8 @@
m_fonts = fonts; m_fontfcns = fontfcn; }
void EnableForcedFont(int num, QString func) { forceFonts[num] = m_fonts[func]; }
+ int GetCurrentItem() { return m_current; }
int GetItems() { return m_count; }
QString GetItemText(int, int col = 1);
void ResetList() { listData.clear(); forceFonts.clear();
More information about the mythtv-dev
mailing list