summaryrefslogtreecommitdiffstats
path: root/webscrap.h
diff options
context:
space:
mode:
authorRoopesh Chander <roop@forwardbias.in>2009-11-11 19:34:17 +0530
committerRoopesh Chander <roop@forwardbias.in>2009-11-11 19:34:54 +0530
commit739b38073991f9cb24220180c604f6be5f482afe (patch)
tree2867aaad08274f8a9363a2521c5d8e45cda5aa66 /webscrap.h
parent8084be771d14e4262335c2eba906bea58fe04abd (diff)
since QGraphicsWebView::setInteractive() is gone, we need an alternate way to
make links unclickable when you move/adjust the page with the mouse in the edit mode.
Diffstat (limited to 'webscrap.h')
-rw-r--r--webscrap.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/webscrap.h b/webscrap.h
index 0612198..4e1d2a1 100644
--- a/webscrap.h
+++ b/webscrap.h
@@ -35,6 +35,9 @@ public:
void setPageSize(QSize size);
QSize pageSize() const;
+ void setMouseClicksEnabled(bool enabled);
+ bool mouseClicksEnabled() const;
+
public slots:
void onLoadFinished();
void onLoadStarted();
@@ -45,6 +48,7 @@ public slots:
protected:
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
+ bool event(QEvent *e);
private:
QRect m_scrapRect;
@@ -56,7 +60,7 @@ private:
bool m_isDimensionsFixed;
QPixmap m_loadingPix, m_adjustablePix, m_arrowPix, m_scalePix;
QSize m_pageSize;
- bool m_isLoading;
+ bool m_isLoading, m_isMouseClicksEnabled;
};
class WebScrapContainer : public QGraphicsWidget {