CMenueWidget: use native header as sub header

This commit is contained in:
2019-04-02 16:34:56 +02:00
parent 1c574e4a07
commit 3f84d53b05
2 changed files with 41 additions and 16 deletions

View File

@@ -230,7 +230,7 @@ class CMenuSeparator : public CMenuItem
ALIGN_CENTER = 4,
ALIGN_LEFT = 8,
ALIGN_RIGHT = 16,
SUB_HEAD = 32
SUB_HEAD = 0 //32 deprecated and invalid, only here for compatibility //TODO: remove global
};
@@ -552,8 +552,9 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
CComponentsDetailsLine *details_line;
CComponentsInfoBox *info_box;
int hint_height;
CComponentsHeader *header;
CComponentsHeader *header, *sub_header;
CComponentsFooter *footer;
std::string subhead_text;
unsigned int saveScreen_width ;
unsigned int saveScreen_height;
unsigned int saveScreen_y;
@@ -609,6 +610,7 @@ class CMenuWidget : public CMenuTarget, public CComponentsSignals
void restoreScreen();
void setMenuPos(const int& menu_width);
void initHeader();
void initSubHeader();
public:
CMenuWidget();