mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-02-02 13:52:55 +08:00
fix: on repeat mode, unable to auto update the mouse measure
This commit is contained in:
parent
0b52d25a5c
commit
9b143615c6
@ -86,6 +86,7 @@ public:
|
||||
#define DSV_MSG_DEVICE_CONFIG_UPDATED 6010
|
||||
#define DSV_MSG_DEMO_OPERATION_MODE_CHNAGED 6011
|
||||
#define DSV_MSG_COLLECT_MODE_CHANGED 6012
|
||||
#define DSV_MSG_DATA_POOL_CHANGED 6013
|
||||
|
||||
#define DSV_MSG_TRIG_NEXT_COLLECT 7001
|
||||
#define DSV_MSG_SAVE_COMPLETE 7002
|
||||
|
@ -2092,7 +2092,10 @@ namespace pv
|
||||
|
||||
case DSV_MSG_FONT_OPTIONS_CHANGED:
|
||||
AppControl::Instance()->update_font_forms();
|
||||
break;
|
||||
break;
|
||||
case DSV_MSG_DATA_POOL_CHANGED:
|
||||
_view->check_measure();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2193,6 +2193,8 @@ namespace pv
|
||||
_view_data = _capture_data;
|
||||
attach_data_to_signal(_view_data);
|
||||
set_session_time(_trig_time);
|
||||
|
||||
_callback->trigger_message(DSV_MSG_DATA_POOL_CHANGED);
|
||||
}
|
||||
|
||||
for (auto de : _decode_traces)
|
||||
|
@ -1349,5 +1349,11 @@ int View::get_body_height()
|
||||
headerWidth();
|
||||
}
|
||||
|
||||
void View::check_measure()
|
||||
{
|
||||
_time_viewport->measure();
|
||||
_time_viewport->update();
|
||||
}
|
||||
|
||||
} // namespace view
|
||||
} // namespace pv
|
||||
|
@ -323,6 +323,8 @@ public:
|
||||
//IFontForm
|
||||
void update_font() override;
|
||||
|
||||
void check_measure();
|
||||
|
||||
signals:
|
||||
void hover_point_changed();
|
||||
void cursor_update();
|
||||
|
@ -114,6 +114,8 @@ public:
|
||||
//IFontForm
|
||||
void update_font() override;
|
||||
|
||||
void measure();
|
||||
|
||||
protected:
|
||||
bool event(QEvent *event) override;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
@ -134,7 +136,6 @@ private:
|
||||
void paintMeasure(QPainter &p, QColor fore, QColor back);
|
||||
void paintCursors(QPainter &p);
|
||||
|
||||
void measure();
|
||||
void start_trigger_timer(int msec);
|
||||
|
||||
void get_captured_progress(double &progress, int &progress100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user