author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /libkcal/dndfactory.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | libkcal/dndfactory.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libkcal/dndfactory.cpp b/libkcal/dndfactory.cpp index cdcfae4..ca7e212 100644 --- a/libkcal/dndfactory.cpp +++ b/libkcal/dndfactory.cpp | |||
@@ -23,4 +23,7 @@ | |||
23 | #include <qapplication.h> | 23 | #include <qapplication.h> |
24 | #include <qclipboard.h> | 24 | #include <qclipboard.h> |
25 | //Added by qt3to4: | ||
26 | #include <QDropEvent> | ||
27 | #include <Q3PtrList> | ||
25 | 28 | ||
26 | #include <kiconloader.h> | 29 | #include <kiconloader.h> |
@@ -69,5 +72,5 @@ Event *DndFactory::createDrop(QDropEvent *de) | |||
69 | de->accept(); | 72 | de->accept(); |
70 | 73 | ||
71 | QPtrList<Event> events = cal.events(); | 74 | Q3PtrList<Event> events = cal.events(); |
72 | if ( !events.isEmpty() ) { | 75 | if ( !events.isEmpty() ) { |
73 | Event *event = new Event( *events.first() ); | 76 | Event *event = new Event( *events.first() ); |
@@ -88,5 +91,5 @@ Todo *DndFactory::createDropTodo(QDropEvent *de) | |||
88 | de->accept(); | 91 | de->accept(); |
89 | 92 | ||
90 | QPtrList<Todo> todos = cal.todos(); | 93 | Q3PtrList<Todo> todos = cal.todos(); |
91 | if ( !todos.isEmpty() ) { | 94 | if ( !todos.isEmpty() ) { |
92 | Todo *todo = new Todo( *todos.first() ); | 95 | Todo *todo = new Todo( *todos.first() ); |
@@ -134,5 +137,5 @@ Incidence *DndFactory::pasteIncidence(const QDate &newDate, const QTime *newTime | |||
134 | } | 137 | } |
135 | 138 | ||
136 | QPtrList<Incidence> incList = cal.incidences(); | 139 | Q3PtrList<Incidence> incList = cal.incidences(); |
137 | Incidence *inc = incList.first(); | 140 | Incidence *inc = incList.first(); |
138 | 141 | ||