equal
deleted
inserted
replaced
74 */ |
74 */ |
75 QGraphicsWidget* getView(); |
75 QGraphicsWidget* getView(); |
76 |
76 |
77 signals: |
77 signals: |
78 /** |
78 /** |
79 * Command signal, plugin user shoulf connect this in case it wants |
79 * Command signal, plugin user should connect this in case it wants |
80 * to receive commands emitted from the view. |
80 * to receive commands emitted from the view. |
81 * |
81 * |
82 * @param command id |
82 * @param command id |
83 */ |
83 */ |
84 void command(int); |
84 void command(int); |
91 |
91 |
92 public slots: // from QViewPlugin |
92 public slots: // from QViewPlugin |
93 |
93 |
94 /** |
94 /** |
95 * Plugin user can notify orientation changes by connecting into this slot |
95 * Plugin user can notify orientation changes by connecting into this slot |
96 * ti it's signal. In normal cases, view handles orientation chages itself. |
96 * to it's signal. In normal cases, view handles orientation chages itself. |
97 * |
97 * |
98 * @param orientation new orientation |
98 * @param orientation new orientation |
99 */ |
99 */ |
100 void orientationChange(Qt::Orientation orientation); |
100 void orientationChange(Qt::Orientation orientation); |
101 |
101 |
102 /** |
102 /** |
103 * Plugin user can notify oback button changes by connecting into this slot |
103 * Plugin user can notify oback button changes by connecting into this slot |
104 * |
104 * |
105 */ |
105 */ |
106 void back(); |
106 void back(); |
|
107 |
|
108 private slots: |
|
109 |
|
110 /** |
|
111 * Gets notified when view is ready. |
|
112 */ |
|
113 void viewReadySlot(); |
107 |
114 |
108 private: |
115 private: |
109 |
116 |
110 /** from QObject */ |
117 /** from QObject */ |
111 void timerEvent(QTimerEvent *event); |
118 void timerEvent(QTimerEvent *event); |
112 |
119 |
113 private: |
120 private: |
114 |
121 |
115 // async loading timeout |
122 // async loading timeout |
116 static const int DELAYED_LOAD_TIMEOUT = 4000; // ms |
123 static const int DELAYED_LOAD_TIMEOUT = 500; // ms |
117 |
124 |
118 /** timer id */ |
125 /** timer id */ |
119 int mTimerId; |
126 int mTimerId; |
120 |
127 |
121 /** |
128 /** |