Reimplementing the event handler of the focus event, in order to avoid the update (redrawing) of the graphs every time when the OpenGL widget grabs / releases the focus of the keyboard. This is done because we do not need to redraw, while on the other hand on large data-sets, redrawing can take a lot of time. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx> --- kernel-shark/src/KsGLWidget.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/kernel-shark/src/KsGLWidget.hpp b/kernel-shark/src/KsGLWidget.hpp index 3d428b1..c6fd787 100644 --- a/kernel-shark/src/KsGLWidget.hpp +++ b/kernel-shark/src/KsGLWidget.hpp @@ -64,6 +64,24 @@ public: void loadColors(); + /** + * Reimplementing the event handler of the focus event, in order to + * avoid the update (redrawing) of the graphs every time when the + * widget grabs the focus of the keyboard. This is done because we do + * not need to redraw, while on the other hand on large data-sets, + * redrawing can take a lot of time. + */ + void focusInEvent(QFocusEvent* e) override {} + + /** + * Reimplementing the event handler of the focus event, in order to + * avoid the update (redrawing) of the graphs every time when the + * widget releases the focus of the keyboard. This is done because we + * do not need to redraw, while on the other hand on large data-sets, + * redrawing can take a lot of time. + */ + void focusOutEvent(QFocusEvent* e) override {} + /** * Provide the widget with a pointer to the Dual Marker state machine * object. -- 2.20.1
![]() |