diff options
author | Roopesh Chander <roop@forwardbias.in> | 2009-10-27 19:17:43 +0530 |
---|---|---|
committer | Roopesh Chander <roop@forwardbias.in> | 2009-10-27 19:17:43 +0530 |
commit | eea2e972312ba869cc0170bd42f75aa53eee6194 (patch) | |
tree | 5b8b481bbe3bf19a88b33dc20ffa1cc9f2d370ed /webscrap.h | |
parent | 7bf977a2e8ae516ba23bf34cd576d64fea1e524e (diff) |
clicking on a scrap frame brings it to front
Diffstat (limited to 'webscrap.h')
-rw-r--r-- | webscrap.h | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -38,11 +38,19 @@ private: class WebScrapContainer : public QGraphicsWidget { Q_OBJECT public: - WebScrapContainer(WebScrap *scrap, QGraphicsItem *item = 0); - QGraphicsPathItem *m_frame; - QGraphicsTextItem *m_titlebar; + WebScrapContainer(WebScrap *scrap, QGraphicsScene *scene); + public slots: void setTitle(const QString& title); -}; +protected: + bool sceneEventFilter(QGraphicsItem *watched, QEvent* event); + +signals: + void frameClicked(); + +public: + QGraphicsPathItem *m_frame; + QGraphicsTextItem *m_titlebar; +}; #endif // WEBSCRAP_H |