- Timestamp:
- 04/02/13 23:28:06 (10 years ago)
- Branches:
- master, qt5
- Children:
- b261e79
- Parents:
- cdf0332
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/delegate.cpp
rcdf0332 r54a377c 110 110 else 111 111 mControls[FavouriteControlOff]->paint(painter, option.rect); 112 #ifdef MAEMO 112 113 113 if(event->hasAlarm()) 114 114 mControls[AlarmControlOn]->paint(painter, option.rect); 115 115 else 116 116 mControls[AlarmControlOff]->paint(painter, option.rect); 117 #endif 117 118 118 if(event->hasTimeConflict()) 119 119 mControls[WarningControl]->paint(painter, option.rect); … … 164 164 { 165 165 int numFav = numberOfFavourities(index); 166 #ifdef MAEMO167 166 int numAlarm = numberOfAlarms(index); 168 #endif169 167 170 168 QStyleOptionButton styleOptionButton; … … 200 198 painter->drawText(drawPoint+QPoint(image->width()+2, image->height() - 2), 201 199 QString::number(numFav)); 202 #ifdef MAEMO 200 203 201 drawPoint.setX(drawPoint.x() - spacer - image->width()); 204 202 image = mControls[numAlarm ? AlarmControlOn : AlarmControlOff]->image(); … … 206 204 painter->drawText(drawPoint+QPoint(image->width()+2, image->height() - 2), 207 205 QString::number(numAlarm)); 208 #endif 206 209 207 // draw texts 210 208 QString numEvents = QString::number(index.model()->rowCount(index)).append("/"); … … 314 312 mControls.insert(FavouriteControlOff, new Control(FavouriteControlOff, QString(":icons/favourite-off.png"), NULL)); 315 313 316 #ifdef MAEMO317 314 // ALARM ICONs 318 315 // on … … 325 322 mControls.insert(WarningControl, 326 323 new Control(WarningControl, QString(":icons/dialog-warning.png"), mControls[AlarmControlOff])); 327 #else 328 // WARNING ICON 329 mControls.insert(WarningControl, 330 new Control(WarningControl, QString(":icons/dialog-warning.png"), mControls[FavouriteControlOn])); 331 #endif 332 333 } 324 } 334 325 335 326 bool Delegate::isPointFromRect(const QPoint &aPoint, const QRect &aRect) const
Note: See TracChangeset
for help on using the changeset viewer.