MythTV  master
playbackboxlistitem.cpp
Go to the documentation of this file.
1 // MythTV
4 
5 // MythFrontend
6 #include "playbackbox.h"
7 #include "playbackboxlistitem.h"
8 
9 #ifdef INCLUDE_UNFINISHED
11  PlaybackBox *parent, MythUIButtonList *lbtype, ProgramInfo *pi) :
12  MythUIButtonListItem(lbtype, "", QVariant::fromValue(pi)),
13  m_pbbox(parent)
14 {
15 }
16 
18  MythUIStateType *button, bool selected)
19 {
20  if (m_needs_update)
21  {
22  m_pbbox->UpdateUIListItem(this, selected);
23  m_needs_update = false;
24  }
25  MythUIButtonListItem::SetToRealButton(button, selected);
26 }
27 #else
29  [[maybe_unused]] PlaybackBox *parent,
30  MythUIButtonList *lbtype, ProgramInfo *pi) :
31  MythUIButtonListItem(lbtype, "", QVariant::fromValue(pi))
32 {
33 }
34 #endif
PlaybackBoxListItem::PlaybackBoxListItem
PlaybackBoxListItem(PlaybackBox *parent, MythUIButtonList *lbtype, ProgramInfo *pi)
Definition: playbackboxlistitem.cpp:28
MythUIButtonListItem
Definition: mythuibuttonlist.h:41
playbackbox.h
programinfo.h
mythlogging.h
playbackboxlistitem.h
MythUIButtonListItem::SetToRealButton
virtual void SetToRealButton(MythUIStateType *button, bool selected)
Definition: mythuibuttonlist.cpp:3878
PlaybackBox
Definition: playbackbox.h:61
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:191
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called....
Definition: mythuistatetype.h:22