@@ -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.
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@gmail.com> --- kernel-shark/src/KsGLWidget.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)