summaryrefslogtreecommitdiffabout
path: root/korganizer/komonthview.h
authorzautrix <zautrix>2005-04-04 20:24:30 (UTC)
committer zautrix <zautrix>2005-04-04 20:24:30 (UTC)
commitc408fcb55de18d1e3e1d20803c3885e3074cfaa4 (patch) (unidiff)
tree092f6e385210a9fa7bd625c2e0cae3ceba68f513 /korganizer/komonthview.h
parent8e7f4812c4ad239b6a17cce8aa84c00274ced4df (diff)
downloadkdepimpi-c408fcb55de18d1e3e1d20803c3885e3074cfaa4.zip
kdepimpi-c408fcb55de18d1e3e1d20803c3885e3074cfaa4.tar.gz
kdepimpi-c408fcb55de18d1e3e1d20803c3885e3074cfaa4.tar.bz2
month view fixes
Diffstat (limited to 'korganizer/komonthview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/komonthview.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index e04cdf5..e962756 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -56,13 +56,14 @@ 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 );
62private: 62private:
63 void focusInEvent ( QFocusEvent * ){;}
63 int mNumber; 64 int mNumber;
64 void keyPressEvent ( QKeyEvent * e ) 65 void keyPressEvent ( QKeyEvent * e )
65 { 66 {
66 e->ignore(); 67 e->ignore();
67 } 68 }
68 69
@@ -119,12 +120,13 @@ class MonthViewItem: public QListBoxItem
119 protected: 120 protected:
120 virtual void paint(QPainter *); 121 virtual void paint(QPainter *);
121 virtual int height(const QListBox *) const; 122 virtual int height(const QListBox *) const;
122 virtual int width(const QListBox *) const; 123 virtual int width(const QListBox *) const;
123 124
124 private: 125 private:
126 bool isWeekItem;
125 bool mblockRepaint; 127 bool mblockRepaint;
126 int mMultiday; 128 int mMultiday;
127 bool mRecur; 129 bool mRecur;
128 bool mAlarm; 130 bool mAlarm;
129 bool mReply; 131 bool mReply;
130 bool mInfo; 132 bool mInfo;
@@ -192,13 +194,12 @@ public slots:
192 void contextMenu( QListBoxItem * ); 194 void contextMenu( QListBoxItem * );
193 void selection( QListBoxItem * ); 195 void selection( QListBoxItem * );
194 void cellClicked( QListBoxItem * ); 196 void cellClicked( QListBoxItem * );
195 void newEvent(); 197 void newEvent();
196 198
197 private: 199 private:
198 MonthViewItem* mCurrentAvailItem;
199 QPtrList <MonthViewItem> mAvailItemList; 200 QPtrList <MonthViewItem> mAvailItemList;
200 KOMonthView *mMonthView; 201 KOMonthView *mMonthView;
201 int currentPalette; 202 int currentPalette;
202 203
203 QDate mDate; 204 QDate mDate;
204 bool mPrimary; 205 bool mPrimary;