MythTV  master
Public Member Functions | Public Attributes | Private Member Functions | List of all members
MythMenuItem Class Reference

#include <mythdialogbox.h>

Collaboration diagram for MythMenuItem:
Collaboration graph
[legend]

Public Member Functions

 MythMenuItem (QString text, QVariant data=0, bool checked=false, MythMenu *subMenu=nullptr)
 
 MythMenuItem (QString text, const char *slot, bool checked=false, MythMenu *subMenu=nullptr)
 
 MythMenuItem (QString text, const MythUIButtonCallback &slot, bool checked=false, MythMenu *subMenu=nullptr)
 

Public Attributes

QString m_text
 
QVariant m_data {0}
 
bool m_checked {false}
 
MythMenum_subMenu {nullptr}
 
bool m_useSlot {true}
 

Private Member Functions

void Init (void)
 

Detailed Description

Definition at line 69 of file mythdialogbox.h.

Constructor & Destructor Documentation

◆ MythMenuItem() [1/3]

MythMenuItem::MythMenuItem ( QString  text,
QVariant  data = 0,
bool  checked = false,
MythMenu subMenu = nullptr 
)
inlineexplicit

Definition at line 72 of file mythdialogbox.h.

◆ MythMenuItem() [2/3]

MythMenuItem::MythMenuItem ( QString  text,
const char *  slot,
bool  checked = false,
MythMenu subMenu = nullptr 
)
inline

Definition at line 75 of file mythdialogbox.h.

◆ MythMenuItem() [3/3]

MythMenuItem::MythMenuItem ( QString  text,
const MythUIButtonCallback slot,
bool  checked = false,
MythMenu subMenu = nullptr 
)
inline

Definition at line 78 of file mythdialogbox.h.

Member Function Documentation

◆ Init()

void MythMenuItem::Init ( void  )
inlineprivate

Definition at line 89 of file mythdialogbox.h.

Member Data Documentation

◆ m_text

QString MythMenuItem::m_text

Definition at line 82 of file mythdialogbox.h.

Referenced by MythDialogBox::updateMenu().

◆ m_data

QVariant MythMenuItem::m_data {0}

Definition at line 83 of file mythdialogbox.h.

◆ m_checked

bool MythMenuItem::m_checked {false}

Definition at line 84 of file mythdialogbox.h.

◆ m_subMenu

MythMenu* MythMenuItem::m_subMenu {nullptr}

Definition at line 85 of file mythdialogbox.h.

Referenced by MythDialogBox::updateMenu(), and MythMenu::~MythMenu().

◆ m_useSlot

bool MythMenuItem::m_useSlot {true}

Definition at line 86 of file mythdialogbox.h.


The documentation for this class was generated from the following file: