equal
deleted
inserted
replaced
21 #include <QGraphicsView> |
21 #include <QGraphicsView> |
22 #include <hbglobal.h> |
22 #include <hbglobal.h> |
23 #include <hbnamespace.h> |
23 #include <hbnamespace.h> |
24 |
24 |
25 class QGraphicsWidget; |
25 class QGraphicsWidget; |
|
26 class QWindowSurface |
|
27 { |
|
28 }; |
26 class HbAction; |
29 class HbAction; |
27 class HbView; |
30 class HbView; |
28 |
31 |
29 |
32 |
30 class HbMainWindow : public QGraphicsView |
33 class HbMainWindow : public QGraphicsView |
42 void setOrientation(Qt::Orientation orientation, bool animate = true); |
45 void setOrientation(Qt::Orientation orientation, bool animate = true); |
43 Qt::Orientation orientation() const; |
46 Qt::Orientation orientation() const; |
44 void show(){}; |
47 void show(){}; |
45 QList<HbView *> views() const; |
48 QList<HbView *> views() const; |
46 QRectF sceneRect() const; |
49 QRectF sceneRect() const; |
|
50 |
|
51 //Overiding function for stub |
|
52 QWindowSurface *windowSurface() const; |
47 |
53 |
48 private: // Data added for the unit testing stub |
54 private: // Data added for the unit testing stub |
49 HbView* mCurrentView; // Not owned |
55 HbView* mCurrentView; // Not owned |
50 int mViewCount; |
56 int mViewCount; |
51 Qt::Orientation mOrientation; |
57 Qt::Orientation mOrientation; |
52 QList<HbView*> mTestViews; |
58 QList<HbView*> mTestViews; |
|
59 |
|
60 public : |
|
61 QWindowSurface *mSurface; |
53 }; |
62 }; |
54 |
63 |
55 #endif // HBMAINWINDOW_H |
64 #endif // HBMAINWINDOW_H |