summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-12-13 22:06:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-17 21:33:55 -0800
commitb72c32da7defdbc0ff3100f13d1688f06770674a (patch)
tree82d3f3ddb07aacd771bd83a3c515d3ce873968f4 /qt-ui/profile/profilewidget2.h
parent98085e25e55fb09ccaa5e9a934341895d5ffe5e6 (diff)
downloadsubsurface-b72c32da7defdbc0ff3100f13d1688f06770674a.tar.gz
Turn of replotting while the cylinder type combo box is active
Since replotting is expensive and it is triggered while scrolling through the list of cylinders, better not do it for improved user experience and replot only after the combo box loses focus. I hope this... Fixes #768 Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r--qt-ui/profile/profilewidget2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index a1f216e48..9808a964b 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -103,6 +103,7 @@ slots: // Necessary to call from QAction's signals.
void pointInserted(const QModelIndex &parent, int start, int end);
void pointsRemoved(const QModelIndex &, int start, int end);
void plotPictures();
+ void setReplot(bool state);
void replot();
/* this is called for every move on the handlers. maybe we can speed up this a bit? */
@@ -145,6 +146,7 @@ private:
QString backgroundFile;
ToolTipItem *toolTipItem;
bool isPlotZoomed;
+ bool replotEnabled;
// All those here should probably be merged into one structure,
// So it's esyer to replicate for more dives later.
// In the meantime, keep it here.