MythTV  master
mythuigroup.cpp
Go to the documentation of this file.
1 
2 #include "mythuigroup.h"
3 
5 {
7 }
8 
10 {
11  auto *group = dynamic_cast<MythUIGroup *>(base);
12  if (!group)
13  return;
14 
16 }
17 
19 {
20  auto *group = new MythUIGroup(parent, objectName());
21  group->CopyFrom(this);
22 }
MythUIGroup::Reset
void Reset(void) override
Reset the widget to it's original state, should not reset changes made by the theme.
Definition: mythuigroup.cpp:4
MythUIGroup
Create a group of widgets.
Definition: mythuigroup.h:11
MythUIGroup::CreateCopy
void CreateCopy(MythUIType *parent) override
Copy the state of this widget to the one given, it must be of the same type.
Definition: mythuigroup.cpp:18
MythUIType::CopyFrom
virtual void CopyFrom(MythUIType *base)
Copy this widgets state from another.
Definition: mythuitype.cpp:1176
MythUIType::Reset
virtual void Reset(void)
Reset the widget to it's original state, should not reset changes made by the theme.
Definition: mythuitype.cpp:72
mythuigroup.h
MythUIType
The base class on which all widgets and screens are based.
Definition: mythuitype.h:85
MythUIGroup::CopyFrom
void CopyFrom(MythUIType *base) override
Copy this widgets state from another.
Definition: mythuigroup.cpp:9
MythUIGroup::MythUIGroup
MythUIGroup(MythUIType *parent, const QString &name)
Definition: mythuigroup.h:15