From a08aff328d4393031d5ba7d622c2b05705a89d73 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 04 Jul 2007 11:23:42 +0000 Subject: initial public commit of qt4 port --- (limited to 'korganizer/komonthview.h') diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 1a9d16d..bca76e5 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h @@ -21,17 +21,24 @@ #define _KOMONTHVIEW_H #include -#include +#include #include -#include +#include #include -#include +#include #include #include -#include +#include #include -#include -#include +#include +#include +//Added by qt3to4: +#include +#include +#include +#include +#include +#include #include #include @@ -72,7 +79,7 @@ private slots : void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } }; -class KNoScrollListBox: public QListBox +class KNoScrollListBox: public Q3ListBox { Q_OBJECT public: @@ -103,7 +110,7 @@ class KNoScrollListBox: public QListBox }; -class MonthViewItem: public QListBoxItem +class MonthViewItem: public Q3ListBoxItem { public: MonthViewItem( Incidence *,const QString & title ); @@ -126,8 +133,8 @@ class MonthViewItem: public QListBoxItem protected: virtual void paint(QPainter *); - virtual int height(const QListBox *) const; - virtual int width(const QListBox *) const; + virtual int height(const Q3ListBox *) const; + virtual int width(const Q3ListBox *) const; private: int mdayPos; @@ -198,15 +205,15 @@ public slots: void deHighLight(); void repaintfinishUpdateCell(); protected slots: - void defaultAction( QListBoxItem * ); - void contextMenu( QListBoxItem * ); - void selection( QListBoxItem * ); - void cellClicked( QListBoxItem * ); + void defaultAction( Q3ListBoxItem * ); + void contextMenu( Q3ListBoxItem * ); + void selection( Q3ListBoxItem * ); + void cellClicked( Q3ListBoxItem * ); void newEvent(); private: int mdayCount; - QPtrList mAvailItemList; + Q3PtrList mAvailItemList; KOMonthView *mMonthView; int currentPalette; @@ -247,7 +254,7 @@ class KOMonthView: public KOEventView virtual int currentDateCount(); /** returns the currently selected events */ - virtual QPtrList selectedIncidences(); + virtual Q3PtrList selectedIncidences(); /** returns dates of the currently selected events */ virtual DateList selectedDates(); @@ -269,7 +276,7 @@ class KOMonthView: public KOEventView virtual void updateView(); virtual void updateConfig(); virtual void showDates(const QDate &start, const QDate &end); - virtual void showEvents(QPtrList eventList); + virtual void showEvents(Q3PtrList eventList); void changeEventDisplay(Event *, int); @@ -311,7 +318,7 @@ class KOMonthView: public KOEventView NavigatorBar* mNavigatorBar; int currentWeek(); bool clPending; - QWidgetStack * mWidStack; + Q3WidgetStack * mWidStack; QWidget* mMonthView; QWidget* mWeekView; bool mShowWeekView; @@ -325,12 +332,12 @@ class KOMonthView: public KOEventView void computeLayoutWeek(); void doComputeLayoutWeek(); - QPtrVector mCells; - QPtrVector mDayLabels; - QPtrVector mWeekLabels; - QPtrVector mCellsW; - QPtrVector mDayLabelsW; - QPtrVector mWeekLabelsW; + Q3PtrVector mCells; + Q3PtrVector mDayLabels; + Q3PtrVector mWeekLabels; + Q3PtrVector mCellsW; + Q3PtrVector mDayLabelsW; + Q3PtrVector mWeekLabelsW; bool mShortDayLabelsM; bool mShortDayLabelsW; @@ -342,7 +349,7 @@ class KOMonthView: public KOEventView MonthViewCell *mPopupCell; bool mFlagKeyPressed; KOEventPopupMenu *mContextMenu; - QPopupMenu *mNewItemMenu; + Q3PopupMenu *mNewItemMenu; void keyPressEvent ( QKeyEvent * ) ; void keyReleaseEvent ( QKeyEvent * ) ; -- cgit v0.9.0.2