diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-26 17:51:46 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 14:07:27 -0700 |
commit | addec6b69fe9022a79d83945b865a0b518f556e8 (patch) | |
tree | a5c4a34fc28026c1f94f8a0a3539e37520362a63 /qt-ui/profile/profilewidget2.h | |
parent | fe2eb1a9fc70e8aa2eae7c87cd8f16c753a6735d (diff) | |
download | subsurface-addec6b69fe9022a79d83945b865a0b518f556e8.tar.gz |
Do not set maxTime when the handler is moving.
Fixes massive cpu hog.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index 3c3d86d01..fbfd1947f 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -108,7 +108,8 @@ protected: virtual void mouseMoveEvent(QMouseEvent *event); virtual void contextMenuEvent(QContextMenuEvent *event); virtual void mouseDoubleClickEvent(QMouseEvent *event); - + virtual void mousePressEvent(QMouseEvent *event); + virtual void mouseReleaseEvent(QMouseEvent *event); private: /*methods*/ void fixBackgroundPos(); void scrollViewTo(const QPoint &pos); @@ -160,6 +161,8 @@ private: int fixHandlerIndex(DiveHandler *activeHandler); friend class DiveHandler; QHash<Qt::Key, QAction *> actionsForKeys; + bool shouldCalculateMaxTime; + int maxtime; }; #endif // PROFILEWIDGET2_H |