summaryrefslogtreecommitdiffabout
path: root/korganizer/kotodoview.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/kotodoview.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/kotodoview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kotodoview.h58
1 files changed, 34 insertions, 24 deletions
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h
index 0cbc087..a9e7f30 100644
--- a/korganizer/kotodoview.h
+++ b/korganizer/kotodoview.h
@@ -26,15 +26,25 @@
#include <qfont.h>
#include <qfontmetrics.h>
#include <qlineedit.h>
-#include <qptrlist.h>
-#include <qstrlist.h>
-#include <qlistbox.h>
-#include <qpopupmenu.h>
+#include <q3ptrlist.h>
+#include <q3strlist.h>
+#include <q3listbox.h>
+#include <q3popupmenu.h>
#include <qlabel.h>
#include <qmap.h>
#include <qdialog.h>
#include <qlabel.h>
-#include <qlistview.h>
+#include <q3listview.h>
+//Added by qt3to4:
+#include <QDragMoveEvent>
+#include <QDropEvent>
+#include <QDragLeaveEvent>
+#include <QWheelEvent>
+#include <QPaintEvent>
+#include <QFocusEvent>
+#include <QMouseEvent>
+#include <QKeyEvent>
+#include <QDragEnterEvent>
#include <klistview.h>
#include <libkcal/calendar.h>
@@ -101,7 +111,7 @@ class KOTodoListView : public KListView
signals:
void paintNeeded();
void todoDropped(Todo *, int);
- void double_Clicked(QListViewItem *item);
+ void double_Clicked(Q3ListViewItem *item);
void reparentTodoSignal( Todo *,Todo * );
void unparentTodoSignal(Todo *);
void deleteTodo( Todo * );
@@ -124,7 +134,7 @@ class KOTodoListView : public KListView
Calendar *mCalendar;
QPoint mPressPos;
bool mMousePressed;
- QListViewItem *mOldCurrent;
+ Q3ListViewItem *mOldCurrent;
bool mFlagKeyPressed;
void keyPressEvent ( QKeyEvent * ) ;
void keyReleaseEvent ( QKeyEvent * ) ;
@@ -157,8 +167,8 @@ class KOTodoView : public KOrg::BaseView
KOTodoView(Calendar *, QWidget* parent=0, const char* name=0 );
~KOTodoView();
- QPtrList<Incidence> selectedIncidences();
- QPtrList<Todo> selectedTodos();
+ Q3PtrList<Incidence> selectedIncidences();
+ Q3PtrList<Todo> selectedTodos();
DateList selectedDates()
{DateList q;
@@ -184,14 +194,14 @@ class KOTodoView : public KOrg::BaseView
void changeEventDisplay(Event *, int);
void showDates(const QDate &start, const QDate &end);
- void showEvents(QPtrList<Event> eventList);
+ void showEvents(Q3PtrList<Event> eventList);
void clearSelection();
void jumpToDate ();
- void editItem(QListViewItem *item);
- void showItem(QListViewItem *item,const QPoint &,int);
- void popupMenu(QListViewItem *item,const QPoint &,int);
+ void editItem(Q3ListViewItem *item);
+ void showItem(Q3ListViewItem *item,const QPoint &,int);
+ void popupMenu(Q3ListViewItem *item,const QPoint &,int);
void newTodo();
void newSubTodo();
void unparentTodo();
@@ -219,10 +229,10 @@ class KOTodoView : public KOrg::BaseView
void toggleQuickTodo();
void updateTodo( Todo *, int );
- void itemClicked(QListViewItem *);
- void itemStateChanged(QListViewItem *);
+ void itemClicked(Q3ListViewItem *);
+ void itemStateChanged(Q3ListViewItem *);
void modified(bool);
- void itemDoubleClicked(QListViewItem *item);
+ void itemDoubleClicked(Q3ListViewItem *item);
void resetFocusToList();
void fillCategories ();
void fillCal ();
@@ -273,18 +283,18 @@ class KOTodoView : public KOrg::BaseView
bool mPendingUpdateBeforeRepaint;
friend class KOTodoViewItem;
QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo);
- void restoreItemState( QListViewItem * );
+ void restoreItemState( Q3ListViewItem * );
bool checkTodo( Todo * );
bool isFlatDisplay;
- void setOpen( QListViewItem*, bool setOpen);
+ void setOpen( Q3ListViewItem*, bool setOpen);
KOTodoListView *mTodoListView;
- QPopupMenu *mItemPopupMenu;
- QPopupMenu *mPopupMenu;
- QPopupMenu *mPriorityPopupMenu;
- QPopupMenu *mPercentageCompletedPopupMenu;
- QPopupMenu *mCategoryPopupMenu;
- QPopupMenu *mCalPopupMenu;
+ Q3PopupMenu *mItemPopupMenu;
+ Q3PopupMenu *mPopupMenu;
+ Q3PopupMenu *mPriorityPopupMenu;
+ Q3PopupMenu *mPercentageCompletedPopupMenu;
+ Q3PopupMenu *mCategoryPopupMenu;
+ Q3PopupMenu *mCalPopupMenu;
QMap<int, int> mPercentage;
QMap<int, int> mPriority;