Diffstat (limited to 'core/pim/datebook/datebookdayheaderimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookdayheaderimpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/datebook/datebookdayheaderimpl.cpp b/core/pim/datebook/datebookdayheaderimpl.cpp index 213c843..51b78ca 100644 --- a/core/pim/datebook/datebookdayheaderimpl.cpp +++ b/core/pim/datebook/datebookdayheaderimpl.cpp | |||
@@ -87,26 +87,26 @@ void DateBookDayHeader::setupNames() | |||
87 | } | 87 | } |
88 | } | 88 | } |
89 | 89 | ||
90 | 90 | ||
91 | void DateBookDayHeader::pickDate() | 91 | void DateBookDayHeader::pickDate() |
92 | { | 92 | { |
93 | static QPopupMenu *m1 = 0; | 93 | static QPopupMenu *m1 = 0; |
94 | static DateBookMonth *picker = 0; | 94 | static DateBookMonth *picker = 0; |
95 | if ( !m1 ) { | 95 | if ( !m1 ) { |
96 | m1 = new QPopupMenu( this ); | 96 | m1 = new QPopupMenu( this ); |
97 | picker = new DateBookMonth( m1, 0, TRUE ); | 97 | picker = new DateBookMonth( m1, 0, TRUE ); |
98 | m1->insertItem( picker ); | 98 | m1->insertItem( picker ); |
99 | connect( picker, SIGNAL( dateClicked( int, int, int ) ), | 99 | connect( picker, SIGNAL( dateClicked(int,int,int) ), |
100 | this, SLOT( setDate( int, int, int ) ) ); | 100 | this, SLOT( setDate(int,int,int) ) ); |
101 | connect( m1, SIGNAL( aboutToHide() ), | 101 | connect( m1, SIGNAL( aboutToHide() ), |
102 | this, SLOT( gotHide() ) ); | 102 | this, SLOT( gotHide() ) ); |
103 | } | 103 | } |
104 | picker->setDate( currDate.year(), currDate.month(), currDate.day() ); | 104 | picker->setDate( currDate.year(), currDate.month(), currDate.day() ); |
105 | m1->popup(mapToGlobal(date->pos()+QPoint(0,date->height()))); | 105 | m1->popup(mapToGlobal(date->pos()+QPoint(0,date->height()))); |
106 | picker->setFocus(); | 106 | picker->setFocus(); |
107 | } | 107 | } |
108 | 108 | ||
109 | void DateBookDayHeader::gotHide() | 109 | void DateBookDayHeader::gotHide() |
110 | { | 110 | { |
111 | // we have to redo the button... | 111 | // we have to redo the button... |
112 | date->setDown( false ); | 112 | date->setDown( false ); |