diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-05 15:33:51 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-05 07:38:29 -0700 |
commit | f3b81ab54db63d7449180cabd4a3d875d7d76792 (patch) | |
tree | 8631d1ec5d12d57a3989c9fd8076dcf434ab2e58 /qt-ui/mainwindow.h | |
parent | 2e26de5ae6bd3300153be89de080d12f4c60cfcf (diff) | |
download | subsurface-f3b81ab54db63d7449180cabd4a3d875d7d76792.tar.gz |
Profile: prevent a bug when switching views
While in zoomed mode and when resizing the splitters or
switching views the profile tooltip can end up being at the
wrong location and also the zoom state becomes corrupt,
so perhaps the entire transformation needs to be reset.
To prevent the bug we listen for relevent to the profile
splitter resize event, view changes and clear()/plot() the
entire profile graphics.
This is an slow/expensive solution and perhaps there are
cheaper alternatives e.g. updating only the scene rectangle
and tooltip, somehow.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index a9f2ecaf0..2009740fe 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -92,6 +92,7 @@ private slots: void on_actionDivePlanner_triggered(); /* monitor resize of the info-profile splitter */ + void on_mainSplitter_splitterMoved(int pos, int idx); void on_infoProfileSplitter_splitterMoved(int pos, int idx); void current_dive_changed(int divenr); |