equal
deleted
inserted
replaced
19 * |
19 * |
20 */ |
20 */ |
21 #include <QtGui> |
21 #include <QtGui> |
22 #include "ChromeItem.h" |
22 #include "ChromeItem.h" |
23 #include "ChromeSnippet.h" |
23 #include "ChromeSnippet.h" |
|
24 #include "ChromeWidget.h" |
24 |
25 |
25 namespace GVA { |
26 namespace GVA { |
26 class LinearFlowSnippet; |
27 class LinearFlowSnippet; |
27 } |
28 } |
28 |
29 |
32 class MostVisitedPagesWidget : public ChromeItem |
33 class MostVisitedPagesWidget : public ChromeItem |
33 { |
34 { |
34 Q_OBJECT |
35 Q_OBJECT |
35 public : |
36 public : |
36 //construction and destruction |
37 //construction and destruction |
37 MostVisitedPagesWidget(ChromeSnippet* snippet,QGraphicsWidget* parent); |
38 MostVisitedPagesWidget(ChromeSnippet* snippet, ChromeWidget* chrome); |
38 ~MostVisitedPagesWidget(); |
39 ~MostVisitedPagesWidget(); |
39 |
40 |
40 void open(); |
41 void open(); |
41 |
42 |
42 void updatePos(QPointF pos, qreal &toolBarHeight); |
43 void updatePos(QPointF pos, qreal &toolBarHeight); |
60 void onLoadFinished(const bool ok); |
61 void onLoadFinished(const bool ok); |
61 void clearMVStore(); |
62 void clearMVStore(); |
62 private : |
63 private : |
63 MostVisitedPageStore* m_mostVisitedPageStore; |
64 MostVisitedPageStore* m_mostVisitedPageStore; |
64 QGraphicsWidget* m_parent; |
65 QGraphicsWidget* m_parent; |
|
66 ChromeWidget * m_chrome; |
65 GVA::LinearFlowSnippet *m_flowInterface; |
67 GVA::LinearFlowSnippet *m_flowInterface; |
66 int m_selectIndex; |
68 int m_selectIndex; |
67 bool m_hideOnClose; |
69 bool m_hideOnClose; |
68 }; |
70 }; |
69 } |
71 } |