Changeset 4383ab5 in confclerk_git


Ignore:
Timestamp:
12/12/11 23:04:03 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
c728494
Parents:
71c3eb6
Message:

Better calculation of the day navigator date position.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/daynavigatorwidget.cpp

    r71c3eb6 r4383ab5  
    106106
    107107
    108 void DayNavigatorWidget::paintEvent(QPaintEvent *aEvent)
    109 {
     108void DayNavigatorWidget::paintEvent(QPaintEvent *aEvent) {
    110109    Q_UNUSED(aEvent);
    111110
     
    115114
    116115    // rectangle only for the text
    117     int marginSize = 9;
    118     int buttonSize = 32;
    119 #ifdef MAEMO
    120     QRect q(y()-height()+1*marginSize+2.5*buttonSize, x(), height()-2*marginSize-2.5*buttonSize, width());
    121 #else
    122     QRect q(y()-height()+1*marginSize+2*buttonSize, x(), height()-2*marginSize-3*buttonSize, width());
    123 #endif
     116    QRect q(-selectedDate->height()-selectedDate->y(), selectedDate->x(), selectedDate->height(), selectedDate->width());
    124117    painter.rotate(270);
    125118
Note: See TracChangeset for help on using the changeset viewer.