Cosmetics
This commit is contained in:
+3
-2
@@ -21,7 +21,8 @@
|
|||||||
|
|
||||||
#include "form.h"
|
#include "form.h"
|
||||||
|
|
||||||
class BaseNumberEdit : public FormField {
|
class BaseNumberEdit : public FormField
|
||||||
|
{
|
||||||
public:
|
public:
|
||||||
BaseNumberEdit(Window * parent, const rect_t &rect, int32_t vmin, int32_t vmax,
|
BaseNumberEdit(Window * parent, const rect_t &rect, int32_t vmin, int32_t vmax,
|
||||||
std::function<int32_t()> getValue, std::function<void(int32_t)> setValue = nullptr, WindowFlags windowFlags = 0, LcdFlags textFlags = 0):
|
std::function<int32_t()> getValue, std::function<void(int32_t)> setValue = nullptr, WindowFlags windowFlags = 0, LcdFlags textFlags = 0):
|
||||||
@@ -79,7 +80,7 @@ class BaseNumberEdit : public FormField {
|
|||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
void setSetValueHandler(std::function<void(int32_t)> handler)
|
void setSetValueHandler(std::function<void(int)> handler)
|
||||||
{
|
{
|
||||||
_setValue = std::move(handler);
|
_setValue = std::move(handler);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -76,7 +76,7 @@ class Choice : public ChoiceBase {
|
|||||||
bool onTouchEnd(coord_t x, coord_t y) override;
|
bool onTouchEnd(coord_t x, coord_t y) override;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void setSetValueHandler(std::function<void(int16_t)> handler)
|
void setSetValueHandler(std::function<void(int)> handler)
|
||||||
{
|
{
|
||||||
setValue = std::move(handler);
|
setValue = std::move(handler);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user