Ticket #3343: draw_myth_horiz_items_without_arrrows.diff
File draw_myth_horiz_items_without_arrrows.diff, 1.3 KB (added by , 17 years ago) |
---|
-
libs/libmythui/mythlistbutton.cpp
872 872 m_itemsVisible = horizontalItems; 873 873 } 874 874 875 void MythHorizListButton::Init(void) 876 { 877 int dx = GetArea().width() - 1 - 2 * m_itemMargin - 878 (m_itemsVisible - 1) * m_itemSpacing; 879 m_itemWidth = dx / m_itemsVisible; 880 881 MythListButton::Init(); 882 } 883 875 884 const QRect MythHorizListButton::PlaceArrows(const QSize &arrowSize) 876 885 { 877 886 int x = GetArea().width() - arrowSize.width() - 1; -
libs/libmythui/mythlistbutton.h
59 59 60 60 protected: 61 61 void Const(); 62 v oid Init();62 virtual void Init(void); 63 63 void LoadPixmap(MythImage **pix, QDomElement &element); 64 64 65 65 void InsertItem(MythListButtonItem *item); … … 149 149 virtual bool ParseElement(QDomElement &element); 150 150 virtual void CopyFrom(MythUIType *base); 151 151 virtual void CreateCopy(MythUIType *parent); 152 void Init(void); 152 153 153 154 int m_itemWidth; 155 156 154 157 }; 155 158 156 159 class MythListButtonItem