diff options
author | Roopesh Chander <roop@forwardbias.in> | 2009-11-11 19:34:17 +0530 |
---|---|---|
committer | Roopesh Chander <roop@forwardbias.in> | 2009-11-11 19:34:54 +0530 |
commit | 739b38073991f9cb24220180c604f6be5f482afe (patch) | |
tree | 2867aaad08274f8a9363a2521c5d8e45cda5aa66 /webscrap.h | |
parent | 8084be771d14e4262335c2eba906bea58fe04abd (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.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |