equal
deleted
inserted
replaced
18 #ifndef HELLOWORLDWIDGET_H |
18 #ifndef HELLOWORLDWIDGET_H |
19 #define HELLOWORLDWIDGET_H |
19 #define HELLOWORLDWIDGET_H |
20 |
20 |
21 #include <HbWidget> |
21 #include <HbWidget> |
22 |
22 |
|
23 // Start of snippet 1 |
23 class HelloWorldWidget : public HbWidget |
24 class HelloWorldWidget : public HbWidget |
|
25 // End of snippet 1 |
24 { |
26 { |
25 Q_OBJECT |
27 Q_OBJECT |
26 |
28 |
27 public: |
29 public: |
28 HelloWorldWidget(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0); |
30 HelloWorldWidget(QGraphicsItem *parent = 0, Qt::WindowFlags flags = 0); |
29 ~HelloWorldWidget(); |
31 ~HelloWorldWidget(); |
30 |
32 |
|
33 // Start of snippet 2 |
31 public slots: |
34 public slots: |
32 void onShow(); |
35 void onShow(); |
33 void onHide(); |
36 void onHide(); |
|
37 // End of snippet 2 |
34 |
38 |
35 private: |
39 private: |
36 Q_DISABLE_COPY(HelloWorldWidget) |
40 Q_DISABLE_COPY(HelloWorldWidget) |
37 }; |
41 }; |
38 |
42 |