chore: avoid shadowing Window::show() (#5441)
This commit is contained in:
@@ -155,7 +155,7 @@ NumberKeyboard::NumberKeyboard() : Keyboard(KEYBOARD_HEIGHT)
|
||||
|
||||
NumberKeyboard::~NumberKeyboard() { _instance = nullptr; }
|
||||
|
||||
void NumberKeyboard::show(FormField* field)
|
||||
void NumberKeyboard::open(FormField* field)
|
||||
{
|
||||
if (!_instance) _instance = new NumberKeyboard();
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ class NumberKeyboard : public Keyboard
|
||||
std::string getName() const override { return "NumberKeyboard"; }
|
||||
#endif
|
||||
|
||||
static void show(FormField* field);
|
||||
static void open(FormField* field);
|
||||
|
||||
void handleEvent(const char* btn);
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ void TextKeyboard::onLongPressPGDN() { deleteChar(); }
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void TextKeyboard::show(FormField* field)
|
||||
void TextKeyboard::open(FormField* field)
|
||||
{
|
||||
if (!_instance) _instance = new TextKeyboard();
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ class TextKeyboard : public Keyboard
|
||||
std::string getName() const override { return "TextKeyboard"; }
|
||||
#endif
|
||||
|
||||
static void show(FormField* field);
|
||||
static void open(FormField* field);
|
||||
|
||||
protected:
|
||||
#if defined(HARDWARE_KEYS)
|
||||
|
||||
@@ -158,7 +158,7 @@ class NumberArea : public FormField
|
||||
}
|
||||
}
|
||||
|
||||
void openKeyboard() { NumberKeyboard::show(this); }
|
||||
void openKeyboard() { NumberKeyboard::open(this); }
|
||||
void directEdit() { FormField::onClicked(); }
|
||||
|
||||
void update()
|
||||
|
||||
@@ -57,7 +57,7 @@ class TextArea : public FormField
|
||||
}
|
||||
|
||||
void openKeyboard() {
|
||||
TextKeyboard::show(this);
|
||||
TextKeyboard::open(this);
|
||||
}
|
||||
|
||||
void setCancelHandler(std::function<void(void)> handler)
|
||||
|
||||
Reference in New Issue
Block a user