summaryrefslogtreecommitdiffhomepage
path: root/gui/mapping-window.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-15 06:42:02 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-18 18:48:42 +0200
commitab5cd03c9a50cef1dafa32c100e02ab36387db45 (patch)
treeafd2edcafe7a42e51a826be3de865ad9ff42337f /gui/mapping-window.hpp
parent7f68fc115abebd617d495a7d1a18b4fa0158c8e2 (diff)
gui: don't redraw whole mapping window layout
When we're tracking, we only want to redraw the splines in the mapping window while the mapping window is open. It was a major CPU hog to redraw in case the mapping window's open.
Diffstat (limited to 'gui/mapping-window.hpp')
-rw-r--r--gui/mapping-window.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/mapping-window.hpp b/gui/mapping-window.hpp
index 9403bfb5..ab0da2cc 100644
--- a/gui/mapping-window.hpp
+++ b/gui/mapping-window.hpp
@@ -14,11 +14,14 @@ class MapWidget final : public QDialog
Q_OBJECT
public:
MapWidget(Mappings& m);
+ void refresh_tab();
private:
Ui::mapping_window ui;
Mappings& m;
main_settings s;
+ spline_widget* widgets[6][2];
+
void closeEvent(QCloseEvent*) override;
void load();