summaryrefslogtreecommitdiffstats
path: root/webview.h
diff options
context:
space:
mode:
authorRoopesh Chander <roop@forwardbias.in>2009-10-21 18:59:01 +0530
committerRoopesh Chander <roop@forwardbias.in>2009-10-21 18:59:01 +0530
commitb48e0dfc854d9ecca4f2c3fdc33b617f6889829b (patch)
tree91aa241b0db095af601751859d60d7f60a5a0f42 /webview.h
parentf12646679f58dc9d59c5180f0c8d64b862506df9 (diff)
allow enabling disabling of the selection ui
Diffstat (limited to 'webview.h')
-rw-r--r--webview.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/webview.h b/webview.h
index 29746f4..6928a9a 100644
--- a/webview.h
+++ b/webview.h
@@ -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;
};