diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-02-17 19:15:40 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-17 14:50:14 -0800 |
commit | 31ee4dac65bd6e8b0c3583fc0245cc83a90542d5 (patch) | |
tree | 06f1574051bce9fc533a5d2c47d66b5c0d89e5e6 /qt-ui/profile/profilewidget2.h | |
parent | d81223b3f4031ec2f33db164351fb369aeed6b8c (diff) | |
download | subsurface-31ee4dac65bd6e8b0c3583fc0245cc83a90542d5.tar.gz |
Make part of the context menu work (gas change event)
The code of the context menu and the gas change event callback is mostly
the same as the old profile, with minimum modifications, as this changes
the order of the code on the callback to make it a bit saner (declare
variables first, call code later).
This also fixes a bug on the model that was not cleaning itself in the
correct way after a call to clear.
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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index b7cdbff4d..44f92f707 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -54,11 +54,13 @@ public slots: // Necessary to call from QAction's signals. void settingsChanged(); void setEmptyState(); void setProfileState(); - + void changeGas(); protected: virtual void resizeEvent(QResizeEvent* event); virtual void wheelEvent(QWheelEvent* event); virtual void mouseMoveEvent(QMouseEvent* event); + virtual void contextMenuEvent(QContextMenuEvent* event); + private: /*methods*/ void fixBackgroundPos(); void scrollViewTo(const QPoint& pos); |