-rw-r--r-- | korganizer/komonthview.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 9e724c7..c1ca3d4 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -56,16 +56,21 @@ class KOWeekButton : public QPushButton | |||
56 | mNumber = -1; | 56 | mNumber = -1; |
57 | } | 57 | } |
58 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} | 58 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} |
59 | int getWeekNum() { return mNumber;} | 59 | int getWeekNum() { return mNumber;} |
60 | signals: | 60 | signals: |
61 | void selectWeekNum ( int ); | 61 | void selectWeekNum ( int ); |
62 | private: | 62 | private: |
63 | int mNumber; | 63 | int mNumber; |
64 | void keyPressEvent ( QKeyEvent * e ) | ||
65 | { | ||
66 | e->ignore(); | ||
67 | } | ||
68 | |||
64 | private slots : | 69 | private slots : |
65 | void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } | 70 | void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } |
66 | }; | 71 | }; |
67 | 72 | ||
68 | class KNoScrollListBox: public QListBox | 73 | class KNoScrollListBox: public QListBox |
69 | { | 74 | { |
70 | Q_OBJECT | 75 | Q_OBJECT |
71 | public: | 76 | public: |
@@ -158,17 +163,16 @@ class MonthViewCell : public KNoScrollListBox | |||
158 | void enableScrollBars( bool ); | 163 | void enableScrollBars( bool ); |
159 | 164 | ||
160 | Incidence *selectedIncidence(); | 165 | Incidence *selectedIncidence(); |
161 | QDate selectedIncidenceDate(); | 166 | QDate selectedIncidenceDate(); |
162 | QPushButton * dateLabel() { return mLabel; } | 167 | QPushButton * dateLabel() { return mLabel; } |
163 | 168 | ||
164 | void deselect(); | 169 | void deselect(); |
165 | void select(); | 170 | void select(); |
166 | |||
167 | #ifdef DESKTOP_VERSION | 171 | #ifdef DESKTOP_VERSION |
168 | static QToolTipGroup *toolTipGroup(); | 172 | static QToolTipGroup *toolTipGroup(); |
169 | #endif | 173 | #endif |
170 | signals: | 174 | signals: |
171 | void defaultAction( Incidence * ); | 175 | void defaultAction( Incidence * ); |
172 | void newEventSignal( QDateTime ); | 176 | void newEventSignal( QDateTime ); |
173 | void showDaySignal( QDate ); | 177 | void showDaySignal( QDate ); |
174 | 178 | ||
@@ -252,16 +256,18 @@ class KOMonthView: public KOEventView | |||
252 | void changeEventDisplay(Event *, int); | 256 | void changeEventDisplay(Event *, int); |
253 | 257 | ||
254 | void clearSelection(); | 258 | void clearSelection(); |
255 | 259 | ||
256 | void showContextMenu( Incidence * ); | 260 | void showContextMenu( Incidence * ); |
257 | 261 | ||
258 | void setSelectedCell( MonthViewCell * ); | 262 | void setSelectedCell( MonthViewCell * ); |
259 | void switchView(); | 263 | void switchView(); |
264 | void setKeyBoardFocus(); | ||
265 | void setKeyBFocus(); | ||
260 | 266 | ||
261 | protected slots: | 267 | protected slots: |
262 | void slotComputeLayout(); | 268 | void slotComputeLayout(); |
263 | void selectInternalWeekNum ( int ); | 269 | void selectInternalWeekNum ( int ); |
264 | void processSelectionChange(); | 270 | void processSelectionChange(); |
265 | signals: | 271 | signals: |
266 | void nextMonth(); | 272 | void nextMonth(); |
267 | void prevMonth(); | 273 | void prevMonth(); |