Merge pull request #152 from bobbycar-graz/menudisplaywithtime_refactoring
Remove m_ from method name
This commit is contained in:
@ -14,7 +14,7 @@ void MenuDisplayWithTime::start()
|
||||
void MenuDisplayWithTime::redraw()
|
||||
{
|
||||
Base::redraw();
|
||||
tft.setTextFont(m_use_big_font() ? 4 : 2);
|
||||
tft.setTextFont(use_big_font() ? 4 : 2);
|
||||
m_label_currentTime.redraw(fmt::format("&7Time: {}", local_clock_string()));
|
||||
}
|
||||
|
||||
|
@ -1,11 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include <menudisplay.h>
|
||||
// system includes
|
||||
#include <cstdint>
|
||||
|
||||
// 3rdparty lib includes
|
||||
#include <menudisplay.h>
|
||||
|
||||
namespace bobbygui {
|
||||
class MenuDisplayWithTime :
|
||||
public espgui::MenuDisplay
|
||||
public espgui::MenuDisplay
|
||||
{
|
||||
using Base = espgui::MenuDisplay;
|
||||
public:
|
||||
@ -13,7 +16,7 @@ public:
|
||||
void redraw() override;
|
||||
espgui::Label m_label_currentTime{145, 6};
|
||||
private:
|
||||
virtual bool m_use_big_font() const
|
||||
virtual bool use_big_font() const
|
||||
{
|
||||
#ifdef MENU_DISPLAY_USE_BIG_TIME
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user