equal
deleted
inserted
replaced
62 // Class declaration |
62 // Class declaration |
63 class ContentLayoutHandler: public QObject, public QGraphicsLinearLayout |
63 class ContentLayoutHandler: public QObject, public QGraphicsLinearLayout |
64 { |
64 { |
65 Q_OBJECT |
65 Q_OBJECT |
66 Q_PROPERTY(int testID READ testId WRITE setTestId) |
66 Q_PROPERTY(int testID READ testId WRITE setTestId) |
67 Q_PROPERTY(int testResult READ testResult WRITE setTestResult) |
|
68 |
67 |
69 public: |
68 public: |
70 /*! |
69 /*! |
71 \fn ContentLayoutHandler::ContentLayoutHandler() |
70 \fn ContentLayoutHandler::ContentLayoutHandler() |
72 |
71 |
92 \fn void ContentLayoutHandler::setTestId(int testID) |
91 \fn void ContentLayoutHandler::setTestId(int testID) |
93 |
92 |
94 Used to set which test it needs to run. |
93 Used to set which test it needs to run. |
95 */ |
94 */ |
96 void setTestId(int testID); |
95 void setTestId(int testID); |
97 /*! |
|
98 \fn int ContentLayoutHandler::testResult() |
|
99 |
|
100 Used to check whether the calendar has been launched correctly or not. |
|
101 */ |
|
102 int testResult(); |
|
103 /*! |
|
104 \fn void ContentLayoutHandler::setTestResult(int testResult) |
|
105 |
|
106 Used to set the test property. |
|
107 */ |
|
108 void setTestResult(int testResult); |
|
109 |
96 |
110 signals: |
97 signals: |
111 /*! |
98 /*! |
112 \fn void ContentLayoutHandler::requestComplete() |
99 \fn void ContentLayoutHandler::requestComplete() |
113 |
100 |
133 \fn void ContentLayoutHandler::dateChanged() |
120 \fn void ContentLayoutHandler::dateChanged() |
134 |
121 |
135 Emitted when the date has changed. |
122 Emitted when the date has changed. |
136 */ |
123 */ |
137 void dateChanged(); |
124 void dateChanged(); |
|
125 |
|
126 //test signals |
|
127 void calendarChanged(); |
|
128 void timerExpired(); |
|
129 void themeChanged(); |
138 |
130 |
139 public slots: |
131 public slots: |
140 /*! |
132 /*! |
141 \fn void ContentLayoutHandler::eventTimerExpired() |
133 \fn void ContentLayoutHandler::eventTimerExpired() |
142 |
134 |
173 |
165 |
174 Connected to CalendarWidget. Called when a theme change events occurs. Its purpose is to load the new |
166 Connected to CalendarWidget. Called when a theme change events occurs. Its purpose is to load the new |
175 theme graphics into the widget. |
167 theme graphics into the widget. |
176 */ |
168 */ |
177 void onThemeChange(); |
169 void onThemeChange(); |
178 /*! |
|
179 \fn void ContentLayoutHandler::handleOk(const QVariant& var) |
|
180 |
|
181 Connected to XQSettingsManager valueChanged signal. Called if the calendar has been launched correctly. |
|
182 @param var operation returning value |
|
183 */ |
|
184 void handleOk(const QVariant& var); |
|
185 /*! |
|
186 \fn void ContentLayoutHandler::handleError(int err, const QString& str) |
|
187 |
|
188 Connected to XQSettingsManager valueChanged signal. Called if the calendar has not been launched correctly. |
|
189 @param err Error code |
|
190 @param str Explanation of the error |
|
191 */ |
|
192 void handleError(int err, const QString& str); |
|
193 /*! |
170 /*! |
194 \fn void ContentLayoutHandler::highlightOn(QPointF& point) |
171 \fn void ContentLayoutHandler::highlightOn(QPointF& point) |
195 |
172 |
196 Highlights the layout, if the point is inside the correct area. |
173 Highlights the layout, if the point is inside the correct area. |
197 @param point The (scene) position of the highlighting event |
174 @param point The (scene) position of the highlighting event |