Ignore:
Timestamp:
01/14/10 14:54:09 (12 years ago)
Author:
fortefr <fortefr@…>
Branches:
master, qt5
Children:
8860ff4
Parents:
f3f6162
Message:

Map button/compass icon added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/delegate.cpp

    rf3f6162 r03ff157  
    8686        painter->drawImage(mControls[FavouriteControl]->drawPoint(option.rect),*mControls[FavouriteControl]->image());
    8787        painter->drawImage(mControls[AlarmControl]->drawPoint(option.rect),*mControls[AlarmControl]->image());
     88        painter->drawImage(mControls[MapControl]->drawPoint(option.rect),*mControls[MapControl]->image());
    8889    }
    8990    else // doesn't have parent - time-groups' elements (top items)
     
    209210    control->setDrawPoint(QPoint(-mControls[FavouriteControl]->image()->width()-control->image()->width()-2*SPACER,SPACER));
    210211    mControls.insert(AlarmControl,control);
     212
     213    // MAP ICON
     214    control = new Control(MapControl,QString(":icons/compass.png"));
     215    control->setDrawPoint(QPoint(-mControls[AlarmControl]->image()->width()-control->image()->width()
     216                                 -mControls[FavouriteControl]->image()->width()-3*SPACER,SPACER));
     217    mControls.insert(MapControl,control);
    211218}
    212219
Note: See TracChangeset for help on using the changeset viewer.