diff options
author | Roopesh Chander <roop@forwardbias.in> | 2009-10-21 18:59:01 +0530 |
---|---|---|
committer | Roopesh Chander <roop@forwardbias.in> | 2009-10-21 18:59:01 +0530 |
commit | b48e0dfc854d9ecca4f2c3fdc33b617f6889829b (patch) | |
tree | 91aa241b0db095af601751859d60d7f60a5a0f42 /webview.h | |
parent | f12646679f58dc9d59c5180f0c8d64b862506df9 (diff) |
allow enabling disabling of the selection ui
Diffstat (limited to 'webview.h')
-rw-r--r-- | webview.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -11,6 +11,8 @@ class WebView : public QGraphicsWebView { public: WebView(QGraphicsItem * parent = 0); + void setScrapSelectionEnabled(bool enabled); + bool scrapSelectionEnabled() const; protected: void hoverMoveEvent(QGraphicsSceneHoverEvent* event); @@ -19,6 +21,7 @@ protected: void paint(QPainter* painter, const QStyleOptionGraphicsItem* options, QWidget* widget = 0); private: + bool m_scrapSelectionEnabled; QRect m_scrapRect; bool m_scrapSelected; }; |