chore(color): remove unused LV_OBJ_FLAG_ENCODER_ACCEL define. (#7809)
This commit is contained in:
@@ -50,8 +50,6 @@ class ColorBar : public FormField
|
|||||||
uint32_t maxValue = 0) :
|
uint32_t maxValue = 0) :
|
||||||
FormField(parent, r)
|
FormField(parent, r)
|
||||||
{
|
{
|
||||||
lv_obj_add_flag(lvobj, LV_OBJ_FLAG_ENCODER_ACCEL);
|
|
||||||
|
|
||||||
lv_group_add_obj((lv_group_t*)lv_group_get_default(), lvobj);
|
lv_group_add_obj((lv_group_t*)lv_group_get_default(), lvobj);
|
||||||
|
|
||||||
lv_obj_add_event_cb(lvobj, ColorBar::pressing, LV_EVENT_PRESSING, nullptr);
|
lv_obj_add_event_cb(lvobj, ColorBar::pressing, LV_EVENT_PRESSING, nullptr);
|
||||||
|
|||||||
@@ -42,5 +42,3 @@
|
|||||||
|
|
||||||
/* telemetry flags */
|
/* telemetry flags */
|
||||||
#define NO_UNIT 0x40u
|
#define NO_UNIT 0x40u
|
||||||
|
|
||||||
#define LV_OBJ_FLAG_ENCODER_ACCEL LV_OBJ_FLAG_USER_1
|
|
||||||
|
|||||||
@@ -64,9 +64,6 @@ class MenuBody : public TableField
|
|||||||
MenuBody(Window* parent, const rect_t& rect) :
|
MenuBody(Window* parent, const rect_t& rect) :
|
||||||
TableField(parent, rect)
|
TableField(parent, rect)
|
||||||
{
|
{
|
||||||
// Allow encoder acceleration
|
|
||||||
lv_obj_add_flag(lvobj, LV_OBJ_FLAG_ENCODER_ACCEL);
|
|
||||||
|
|
||||||
setColumnWidth(0, rect.w);
|
setColumnWidth(0, rect.w);
|
||||||
|
|
||||||
setAutoEdit();
|
setAutoEdit();
|
||||||
|
|||||||
@@ -35,9 +35,6 @@ class NumberArea : public FormField
|
|||||||
{
|
{
|
||||||
setWindowFlag(NO_FOCUS);
|
setWindowFlag(NO_FOCUS);
|
||||||
|
|
||||||
// Allow encoder acceleration
|
|
||||||
lv_obj_add_flag(lvobj, LV_OBJ_FLAG_ENCODER_ACCEL);
|
|
||||||
|
|
||||||
lv_obj_add_event_cb(lvobj, NumberArea::numberedit_cb, LV_EVENT_KEY, this);
|
lv_obj_add_event_cb(lvobj, NumberArea::numberedit_cb, LV_EVENT_KEY, this);
|
||||||
|
|
||||||
setFocusHandler([=](bool focus) {
|
setFocusHandler([=](bool focus) {
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ class WaveformView : public FormField
|
|||||||
// No click focus either: LVGL clears the group's edit mode on every focus
|
// No click focus either: LVGL clears the group's edit mode on every focus
|
||||||
// call, so a touch would otherwise leave the encoder stuck in navigation.
|
// call, so a touch would otherwise leave the encoder stuck in navigation.
|
||||||
lv_obj_clear_flag(lvobj, LV_OBJ_FLAG_CLICK_FOCUSABLE);
|
lv_obj_clear_flag(lvobj, LV_OBJ_FLAG_CLICK_FOCUSABLE);
|
||||||
lv_obj_add_flag(lvobj, LV_OBJ_FLAG_ENCODER_ACCEL);
|
|
||||||
lv_obj_add_event_cb(lvobj, WaveformView::on_pressing, LV_EVENT_PRESSING, this);
|
lv_obj_add_event_cb(lvobj, WaveformView::on_pressing, LV_EVENT_PRESSING, this);
|
||||||
lv_obj_add_event_cb(lvobj, WaveformView::on_released, LV_EVENT_RELEASED, this);
|
lv_obj_add_event_cb(lvobj, WaveformView::on_released, LV_EVENT_RELEASED, this);
|
||||||
lv_obj_add_event_cb(lvobj, WaveformView::on_key, LV_EVENT_KEY, this);
|
lv_obj_add_event_cb(lvobj, WaveformView::on_key, LV_EVENT_KEY, this);
|
||||||
|
|||||||
Reference in New Issue
Block a user