-rw-r--r-- | gammu/emb/gammu/gammu.pro | 5 | ||||
-rw-r--r-- | kaddressbook/kaddressbook.pro | 6 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 6 | ||||
-rw-r--r-- | korganizer/korganizer.pro | 10 | ||||
-rw-r--r-- | korganizer/kotodoview.h | 1 | ||||
-rw-r--r-- | korganizer/koviewmanager.cpp | 5 |
6 files changed, 25 insertions, 8 deletions
diff --git a/gammu/emb/gammu/gammu.pro b/gammu/emb/gammu/gammu.pro index 55bfdec..c8aa3f0 100644 --- a/gammu/emb/gammu/gammu.pro +++ b/gammu/emb/gammu/gammu.pro | |||
@@ -1,64 +1,65 @@ | |||
1 | ###################################################################### | 1 | ###################################################################### |
2 | # Automatically generated by qmake (1.07a) Fri Jul 30 22:22:02 2004 | 2 | # Automatically generated by qmake (1.07a) Fri Jul 30 22:22:02 2004 |
3 | ###################################################################### | 3 | ###################################################################### |
4 | 4 | ||
5 | TEMPLATE = app | 5 | TEMPLATE = app |
6 | DEPENDPATH += msvc06.mak \ | 6 | DEPENDPATH += msvc06.mak \ |
7 | msvc2003.mak \ | 7 | msvc2003.mak \ |
8 | smsd \ | 8 | smsd \ |
9 | depend/nokia \ | 9 | depend/nokia \ |
10 | depend/siemens \ | 10 | depend/siemens \ |
11 | depend/nokia/dct3trac | 11 | depend/nokia/dct3trac |
12 | INCLUDEPATH += . smsd depend/nokia depend/nokia/dct3trac depend/siemens | 12 | INCLUDEPATH += . smsd depend/nokia depend/nokia/dct3trac depend/siemens |
13 | CONFIG = warn_off release console | 13 | CONFIG += warn_off console |
14 | # Input | 14 | # Input |
15 | 15 | ||
16 | include( ../../../variables.pri ) | ||
16 | HEADERS += gammu.h \ | 17 | HEADERS += gammu.h \ |
17 | sniff.h \ | 18 | sniff.h \ |
18 | smsd/s_files.h \ | 19 | smsd/s_files.h \ |
19 | smsd/s_mysql.h \ | 20 | smsd/s_mysql.h \ |
20 | smsd/smsdcore.h \ | 21 | smsd/smsdcore.h \ |
21 | depend/nokia/dct3.h \ | 22 | depend/nokia/dct3.h \ |
22 | depend/nokia/dct4.h \ | 23 | depend/nokia/dct4.h \ |
23 | depend/siemens/chiffre.h \ | 24 | depend/siemens/chiffre.h \ |
24 | depend/siemens/dsiemens.h \ | 25 | depend/siemens/dsiemens.h \ |
25 | depend/nokia/dct3trac/type-cc.h \ | 26 | depend/nokia/dct3trac/type-cc.h \ |
26 | depend/nokia/dct3trac/type-mm.h \ | 27 | depend/nokia/dct3trac/type-mm.h \ |
27 | depend/nokia/dct3trac/type-rr.h \ | 28 | depend/nokia/dct3trac/type-rr.h \ |
28 | depend/nokia/dct3trac/type-sms.h \ | 29 | depend/nokia/dct3trac/type-sms.h \ |
29 | depend/nokia/dct3trac/type-ss.h \ | 30 | depend/nokia/dct3trac/type-ss.h \ |
30 | depend/nokia/dct3trac/wmx-gsm.h \ | 31 | depend/nokia/dct3trac/wmx-gsm.h \ |
31 | depend/nokia/dct3trac/wmx-list.h \ | 32 | depend/nokia/dct3trac/wmx-list.h \ |
32 | depend/nokia/dct3trac/wmx-sim.h \ | 33 | depend/nokia/dct3trac/wmx-sim.h \ |
33 | depend/nokia/dct3trac/wmx-util.h \ | 34 | depend/nokia/dct3trac/wmx-util.h \ |
34 | depend/nokia/dct3trac/wmx.h | 35 | depend/nokia/dct3trac/wmx.h |
35 | SOURCES += gammu.c \ | 36 | SOURCES += gammu.c \ |
36 | sniff.c \ | 37 | sniff.c \ |
37 | smsd/s_files.c \ | 38 | smsd/s_files.c \ |
38 | smsd/smsdcore.c \ | 39 | smsd/smsdcore.c \ |
39 | depend/nokia/dct3.c \ | 40 | depend/nokia/dct3.c \ |
40 | depend/nokia/dct4.c \ | 41 | depend/nokia/dct4.c \ |
41 | depend/siemens/chiffre.c \ | 42 | depend/siemens/chiffre.c \ |
42 | depend/siemens/dsiemens.c \ | 43 | depend/siemens/dsiemens.c \ |
43 | depend/nokia/dct3trac/wmx-gsm.c \ | 44 | depend/nokia/dct3trac/wmx-gsm.c \ |
44 | depend/nokia/dct3trac/wmx-list.c \ | 45 | depend/nokia/dct3trac/wmx-list.c \ |
45 | depend/nokia/dct3trac/wmx-sim.c \ | 46 | depend/nokia/dct3trac/wmx-sim.c \ |
46 | depend/nokia/dct3trac/wmx-util.c \ | 47 | depend/nokia/dct3trac/wmx-util.c \ |
47 | depend/nokia/dct3trac/wmx.c | 48 | depend/nokia/dct3trac/wmx.c |
48 | unix : { | 49 | unix : { |
49 | LIBS += ../../../bin/libmicrogammu.so /usr/lib/libpthread.so | 50 | LIBS += ../../../bin/libmicrogammu.so /usr/lib/libpthread.so |
50 | # bluetooth disabled for now | 51 | # bluetooth disabled for now |
51 | #/usr/lib/libbluetooth.so /usr/lib/libsdp.so | 52 | #/usr/lib/libbluetooth.so /usr/lib/libsdp.so |
52 | OBJECTS_DIR = obj/unix | 53 | OBJECTS_DIR = obj/unix |
53 | } | 54 | } |
54 | win32 : { | 55 | win32 : { |
55 | CONFIG = qt warn_on | 56 | CONFIG += qt warn_on |
56 | #LIBS += mfc71u.lib | 57 | #LIBS += mfc71u.lib |
57 | LIBS += libc.lib | 58 | LIBS += libc.lib |
58 | #LIBS += msvcrt.lib | 59 | #LIBS += msvcrt.lib |
59 | QMAKE_LINK += /NODEFAULTLIB:msvcrt | 60 | QMAKE_LINK += /NODEFAULTLIB:msvcrt |
60 | LIBS += ../../../bin/microgammu.lib | 61 | LIBS += ../../../bin/microgammu.lib |
61 | OBJECTS_DIR = obj/win | 62 | OBJECTS_DIR = obj/win |
62 | } | 63 | } |
63 | DESTDIR = ../../../bin | 64 | DESTDIR = ../../../bin |
64 | TARGET = kammu | 65 | TARGET = kammu |
diff --git a/kaddressbook/kaddressbook.pro b/kaddressbook/kaddressbook.pro index 7203eb3..f9d22d5 100644 --- a/kaddressbook/kaddressbook.pro +++ b/kaddressbook/kaddressbook.pro | |||
@@ -30,50 +30,54 @@ LIBS += ../libical/lib/libical.a | |||
30 | LIBS += ../libical/lib/libicalss.a | 30 | LIBS += ../libical/lib/libicalss.a |
31 | 31 | ||
32 | } else { | 32 | } else { |
33 | LIBS += ../bin/libmicrokdepim.so | 33 | LIBS += ../bin/libmicrokdepim.so |
34 | LIBS += ../bin/libmicrokde.so | 34 | LIBS += ../bin/libmicrokde.so |
35 | LIBS += ../bin/libmicrokabc.so | 35 | LIBS += ../bin/libmicrokabc.so |
36 | LIBS += ../bin/libmicrokcal.so | 36 | LIBS += ../bin/libmicrokcal.so |
37 | #LIBS += -lldap | 37 | #LIBS += -lldap |
38 | } | 38 | } |
39 | OBJECTS_DIR = obj/unix | 39 | OBJECTS_DIR = obj/unix |
40 | MOC_DIR = moc/unix | 40 | MOC_DIR = moc/unix |
41 | } | 41 | } |
42 | win32: { | 42 | win32: { |
43 | RC_FILE = winicons.rc | 43 | RC_FILE = winicons.rc |
44 | DEFINES += _WIN32_ | 44 | DEFINES += _WIN32_ |
45 | LIBS += ../bin/microkdepim.lib | 45 | LIBS += ../bin/microkdepim.lib |
46 | LIBS += ../bin/microkcal.lib | 46 | LIBS += ../bin/microkcal.lib |
47 | LIBS += ../bin/microkde.lib | 47 | LIBS += ../bin/microkde.lib |
48 | LIBS += ../bin/microkabc.lib | 48 | LIBS += ../bin/microkabc.lib |
49 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 49 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
50 | OBJECTS_DIR = obj/win | 50 | OBJECTS_DIR = obj/win |
51 | MOC_DIR = moc/win | 51 | MOC_DIR = moc/win |
52 | #olimport section | 52 | #olimport section |
53 | #blabla: { | 53 | #blabla: { |
54 | 54 | debug: { | |
55 | LIBS += mfc71ud.lib | ||
56 | } | ||
57 | release: { | ||
55 | LIBS += mfc71u.lib | 58 | LIBS += mfc71u.lib |
59 | } | ||
56 | DEFINES += _OL_IMPORT_ | 60 | DEFINES += _OL_IMPORT_ |
57 | HEADERS = ../outport/msoutl9.h \ | 61 | HEADERS = ../outport/msoutl9.h \ |
58 | kaimportoldialog.h | 62 | kaimportoldialog.h |
59 | SOURCES = ../outport/msoutl9.cpp \ | 63 | SOURCES = ../outport/msoutl9.cpp \ |
60 | kaimportoldialog.cpp | 64 | kaimportoldialog.cpp |
61 | #} | 65 | #} |
62 | #olimport section end | 66 | #olimport section end |
63 | } | 67 | } |
64 | 68 | ||
65 | INTERFACES = \ | 69 | INTERFACES = \ |
66 | # filteredit_base.ui \ | 70 | # filteredit_base.ui \ |
67 | # kofilterview_base.ui \ | 71 | # kofilterview_base.ui \ |
68 | 72 | ||
69 | HEADERS += \ | 73 | HEADERS += \ |
70 | features/mergewidget.h \ | 74 | features/mergewidget.h \ |
71 | features/distributionlistwidget.h \ | 75 | features/distributionlistwidget.h \ |
72 | kcmconfigs/addresseewidget.h \ | 76 | kcmconfigs/addresseewidget.h \ |
73 | kcmconfigs/extensionconfigdialog.h \ | 77 | kcmconfigs/extensionconfigdialog.h \ |
74 | kcmconfigs/kcmkabconfig.h \ | 78 | kcmconfigs/kcmkabconfig.h \ |
75 | kcmconfigs/kabconfigwidget.h \ | 79 | kcmconfigs/kabconfigwidget.h \ |
76 | addresseeeditordialog.h \ | 80 | addresseeeditordialog.h \ |
77 | addresseeeditorwidget.h \ | 81 | addresseeeditorwidget.h \ |
78 | addresseditwidget.h \ | 82 | addresseditwidget.h \ |
79 | addresseeconfig.h \ | 83 | addresseeconfig.h \ |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 904bbe2..a8ad467 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -1637,50 +1637,52 @@ bool CalendarView::importQtopia( const QString &categories, | |||
1637 | void CalendarView::setSyncEventsReadOnly() | 1637 | void CalendarView::setSyncEventsReadOnly() |
1638 | { | 1638 | { |
1639 | Event * ev; | 1639 | Event * ev; |
1640 | QPtrList<Event> eL = mCalendar->rawEvents(); | 1640 | QPtrList<Event> eL = mCalendar->rawEvents(); |
1641 | ev = eL.first(); | 1641 | ev = eL.first(); |
1642 | while ( ev ) { | 1642 | while ( ev ) { |
1643 | if ( ev->uid().left(15) == QString("last-syncEvent-") ) | 1643 | if ( ev->uid().left(15) == QString("last-syncEvent-") ) |
1644 | ev->setReadOnly( true ); | 1644 | ev->setReadOnly( true ); |
1645 | ev = eL.next(); | 1645 | ev = eL.next(); |
1646 | } | 1646 | } |
1647 | } | 1647 | } |
1648 | bool CalendarView::openCalendar(QString filename, bool merge) | 1648 | bool CalendarView::openCalendar(QString filename, bool merge) |
1649 | { | 1649 | { |
1650 | 1650 | ||
1651 | if (filename.isEmpty()) { | 1651 | if (filename.isEmpty()) { |
1652 | return false; | 1652 | return false; |
1653 | } | 1653 | } |
1654 | 1654 | ||
1655 | if (!QFile::exists(filename)) { | 1655 | if (!QFile::exists(filename)) { |
1656 | KMessageBox::error(this,i18n("File does not exist:\n '%1'.").arg(filename)); | 1656 | KMessageBox::error(this,i18n("File does not exist:\n '%1'.").arg(filename)); |
1657 | return false; | 1657 | return false; |
1658 | } | 1658 | } |
1659 | 1659 | ||
1660 | globalFlagBlockAgenda = 1; | 1660 | globalFlagBlockAgenda = 1; |
1661 | if (!merge) mCalendar->close(); | 1661 | if (!merge) { |
1662 | 1662 | mCalendar->close(); | |
1663 | mTodoList->clearList(); | ||
1664 | } | ||
1663 | mStorage->setFileName( filename ); | 1665 | mStorage->setFileName( filename ); |
1664 | 1666 | ||
1665 | if ( mStorage->load() ) { | 1667 | if ( mStorage->load() ) { |
1666 | if ( merge ) ;//setModified( true ); | 1668 | if ( merge ) ;//setModified( true ); |
1667 | else { | 1669 | else { |
1668 | //setModified( true ); | 1670 | //setModified( true ); |
1669 | mViewManager->setDocumentId( filename ); | 1671 | mViewManager->setDocumentId( filename ); |
1670 | mDialogManager->setDocumentId( filename ); | 1672 | mDialogManager->setDocumentId( filename ); |
1671 | mTodoList->setDocumentId( filename ); | 1673 | mTodoList->setDocumentId( filename ); |
1672 | } | 1674 | } |
1673 | globalFlagBlockAgenda = 2; | 1675 | globalFlagBlockAgenda = 2; |
1674 | // if ( getLastSyncEvent() ) | 1676 | // if ( getLastSyncEvent() ) |
1675 | // getLastSyncEvent()->setReadOnly( true ); | 1677 | // getLastSyncEvent()->setReadOnly( true ); |
1676 | mCalendar->reInitAlarmSettings(); | 1678 | mCalendar->reInitAlarmSettings(); |
1677 | setSyncEventsReadOnly(); | 1679 | setSyncEventsReadOnly(); |
1678 | updateUnmanagedViews(); | 1680 | updateUnmanagedViews(); |
1679 | updateView(); | 1681 | updateView(); |
1680 | if ( filename != MainWindow::defaultFileName() ) { | 1682 | if ( filename != MainWindow::defaultFileName() ) { |
1681 | saveCalendar( MainWindow::defaultFileName() ); | 1683 | saveCalendar( MainWindow::defaultFileName() ); |
1682 | } else { | 1684 | } else { |
1683 | QFileInfo finf ( MainWindow::defaultFileName()); | 1685 | QFileInfo finf ( MainWindow::defaultFileName()); |
1684 | if ( finf.exists() ) { | 1686 | if ( finf.exists() ) { |
1685 | setLoadedFileVersion( finf.lastModified () ); | 1687 | setLoadedFileVersion( finf.lastModified () ); |
1686 | } | 1688 | } |
diff --git a/korganizer/korganizer.pro b/korganizer/korganizer.pro index d88c300..32ad10a 100644 --- a/korganizer/korganizer.pro +++ b/korganizer/korganizer.pro | |||
@@ -35,59 +35,65 @@ LIBS += ../libical/lib/libicalss.a | |||
35 | } else { | 35 | } else { |
36 | LIBS += ../bin/libmicrokdepim.so | 36 | LIBS += ../bin/libmicrokdepim.so |
37 | LIBS += ../bin/libmicrokcal.so | 37 | LIBS += ../bin/libmicrokcal.so |
38 | LIBS += ../bin/libmicrokde.so | 38 | LIBS += ../bin/libmicrokde.so |
39 | LIBS += ../bin/libmicrokabc.so | 39 | LIBS += ../bin/libmicrokabc.so |
40 | #LIBS += -lbluetooth | 40 | #LIBS += -lbluetooth |
41 | #LIBS += -lsdp | 41 | #LIBS += -lsdp |
42 | 42 | ||
43 | #LIBS += -lldap | 43 | #LIBS += -lldap |
44 | } | 44 | } |
45 | OBJECTS_DIR = obj/unix | 45 | OBJECTS_DIR = obj/unix |
46 | MOC_DIR = moc/unix | 46 | MOC_DIR = moc/unix |
47 | } | 47 | } |
48 | win32: { | 48 | win32: { |
49 | RC_FILE = winicons.rc | 49 | RC_FILE = winicons.rc |
50 | DEFINES += _WIN32_ | 50 | DEFINES += _WIN32_ |
51 | LIBS += ../bin/microkdepim.lib | 51 | LIBS += ../bin/microkdepim.lib |
52 | LIBS += ../bin/microkcal.lib | 52 | LIBS += ../bin/microkcal.lib |
53 | LIBS += ../bin/microkde.lib | 53 | LIBS += ../bin/microkde.lib |
54 | LIBS += ../bin/microkabc.lib | 54 | LIBS += ../bin/microkabc.lib |
55 | LIBS += ../libical/lib/ical.lib | 55 | LIBS += ../libical/lib/ical.lib |
56 | LIBS += ../libical/lib/icalss.lib | 56 | LIBS += ../libical/lib/icalss.lib |
57 | #LIBS += atls.lib | 57 | #LIBS += atls.lib |
58 | QMAKE_LINK += /NODEFAULTLIB:LIBC | 58 | QMAKE_LINK += /NODEFAULTLIB:LIBC |
59 | #QMAKE_LINK += /NODEFAULTLIB:MSVCRT | 59 | QMAKE_LINK += /NODEFAULTLIB:MSVCRT |
60 | #QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib | 60 | QMAKE_LINK += /NODEFAULTLIB:uafxcw.lib |
61 | OBJECTS_DIR = obj/win | 61 | OBJECTS_DIR = obj/win |
62 | MOC_DIR = moc/win | 62 | MOC_DIR = moc/win |
63 | #olimport section | 63 | #olimport section |
64 | #blabla: { | 64 | #blabla: { |
65 | debug: { | ||
66 | LIBS += mfc71ud.lib | ||
67 | } | ||
68 | release: { | ||
65 | LIBS += mfc71u.lib | 69 | LIBS += mfc71u.lib |
70 | } | ||
66 | DEFINES += _OL_IMPORT_ | 71 | DEFINES += _OL_IMPORT_ |
67 | 72 | ||
68 | HEADERS += ../outport/msoutl9.h \ | 73 | HEADERS += ../outport/msoutl9.h \ |
69 | koimportoldialog.h | 74 | koimportoldialog.h |
75 | |||
70 | SOURCES += ../outport/msoutl9.cpp \ | 76 | SOURCES += ../outport/msoutl9.cpp \ |
71 | koimportoldialog.cpp | 77 | koimportoldialog.cpp |
72 | #} | 78 | #} |
73 | #olimport section end | 79 | #olimport section end |
74 | 80 | ||
75 | } | 81 | } |
76 | 82 | ||
77 | 83 | ||
78 | INTERFACES = kofilterview_base.ui | 84 | INTERFACES = kofilterview_base.ui |
79 | #filteredit_base.ui | 85 | #filteredit_base.ui |
80 | 86 | ||
81 | # kdateedit.h \ | 87 | # kdateedit.h \ |
82 | 88 | ||
83 | HEADERS += datenavigatorcontainer.h \ | 89 | HEADERS += datenavigatorcontainer.h \ |
84 | filteredit_base.h \ | 90 | filteredit_base.h \ |
85 | alarmclient.h \ | 91 | alarmclient.h \ |
86 | calendarview.h \ | 92 | calendarview.h \ |
87 | customlistviewitem.h \ | 93 | customlistviewitem.h \ |
88 | datenavigator.h \ | 94 | datenavigator.h \ |
89 | docprefs.h \ | 95 | docprefs.h \ |
90 | filtereditdialog.h \ | 96 | filtereditdialog.h \ |
91 | incomingdialog.h \ | 97 | incomingdialog.h \ |
92 | incomingdialog_base.h \ | 98 | incomingdialog_base.h \ |
93 | interfaces/korganizer/baseview.h \ | 99 | interfaces/korganizer/baseview.h \ |
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index d368513..1ffc34a 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h | |||
@@ -118,48 +118,49 @@ class KOTodoView : public KOrg::BaseView | |||
118 | public: | 118 | public: |
119 | KOTodoView(Calendar *, QWidget* parent=0, const char* name=0 ); | 119 | KOTodoView(Calendar *, QWidget* parent=0, const char* name=0 ); |
120 | ~KOTodoView(); | 120 | ~KOTodoView(); |
121 | 121 | ||
122 | QPtrList<Incidence> selectedIncidences(); | 122 | QPtrList<Incidence> selectedIncidences(); |
123 | QPtrList<Todo> selectedTodos(); | 123 | QPtrList<Todo> selectedTodos(); |
124 | 124 | ||
125 | DateList selectedDates() | 125 | DateList selectedDates() |
126 | {DateList q; | 126 | {DateList q; |
127 | return q;} | 127 | return q;} |
128 | 128 | ||
129 | /** Return number of shown dates. TodoView does not show dates, */ | 129 | /** Return number of shown dates. TodoView does not show dates, */ |
130 | int currentDateCount() { return 0; } | 130 | int currentDateCount() { return 0; } |
131 | 131 | ||
132 | void printPreview(CalPrinter *calPrinter, const QDate &fd, const QDate &td); | 132 | void printPreview(CalPrinter *calPrinter, const QDate &fd, const QDate &td); |
133 | 133 | ||
134 | void setDocumentId( const QString & ); | 134 | void setDocumentId( const QString & ); |
135 | 135 | ||
136 | void saveLayout(KConfig *config, const QString &group) const; | 136 | void saveLayout(KConfig *config, const QString &group) const; |
137 | void restoreLayout(KConfig *config, const QString &group); | 137 | void restoreLayout(KConfig *config, const QString &group); |
138 | /** Create a popup menu to set categories */ | 138 | /** Create a popup menu to set categories */ |
139 | QPopupMenu *getCategoryPopupMenu (KOTodoViewItem *todoItem); | 139 | QPopupMenu *getCategoryPopupMenu (KOTodoViewItem *todoItem); |
140 | void setNavigator( DateNavigator* nav ) {mNavigator = nav;} | 140 | void setNavigator( DateNavigator* nav ) {mNavigator = nav;} |
141 | QString getWhatsThisText(QPoint p); | 141 | QString getWhatsThisText(QPoint p); |
142 | void clearList() {mTodoListView->clear(); } | ||
142 | 143 | ||
143 | public slots: | 144 | public slots: |
144 | void updateView(); | 145 | void updateView(); |
145 | void updateConfig(); | 146 | void updateConfig(); |
146 | 147 | ||
147 | void changeEventDisplay(Event *, int); | 148 | void changeEventDisplay(Event *, int); |
148 | 149 | ||
149 | void showDates(const QDate &start, const QDate &end); | 150 | void showDates(const QDate &start, const QDate &end); |
150 | void showEvents(QPtrList<Event> eventList); | 151 | void showEvents(QPtrList<Event> eventList); |
151 | 152 | ||
152 | void clearSelection(); | 153 | void clearSelection(); |
153 | void jumpToDate (); | 154 | void jumpToDate (); |
154 | 155 | ||
155 | void editItem(QListViewItem *item); | 156 | void editItem(QListViewItem *item); |
156 | void showItem(QListViewItem *item,const QPoint &,int); | 157 | void showItem(QListViewItem *item,const QPoint &,int); |
157 | void popupMenu(QListViewItem *item,const QPoint &,int); | 158 | void popupMenu(QListViewItem *item,const QPoint &,int); |
158 | void newTodo(); | 159 | void newTodo(); |
159 | void newSubTodo(); | 160 | void newSubTodo(); |
160 | void unparentTodo(); | 161 | void unparentTodo(); |
161 | void reparentTodo(); | 162 | void reparentTodo(); |
162 | void showTodo(); | 163 | void showTodo(); |
163 | void editTodo(); | 164 | void editTodo(); |
164 | void cloneTodo(); | 165 | void cloneTodo(); |
165 | void cancelTodo(); | 166 | void cancelTodo(); |
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index 2e5a943..fb4de37 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -810,26 +810,29 @@ Incidence *KOViewManager::currentSelection() | |||
810 | return mCurrentView->selectedIncidences().first(); | 810 | return mCurrentView->selectedIncidences().first(); |
811 | } | 811 | } |
812 | 812 | ||
813 | QDate KOViewManager::currentSelectionDate() | 813 | QDate KOViewManager::currentSelectionDate() |
814 | { | 814 | { |
815 | QDate qd; | 815 | QDate qd; |
816 | if (mCurrentView) { | 816 | if (mCurrentView) { |
817 | DateList qvl = mCurrentView->selectedDates(); | 817 | DateList qvl = mCurrentView->selectedDates(); |
818 | if (!qvl.isEmpty()) qd = qvl.first(); | 818 | if (!qvl.isEmpty()) qd = qvl.first(); |
819 | } | 819 | } |
820 | return qd; | 820 | return qd; |
821 | } | 821 | } |
822 | 822 | ||
823 | void KOViewManager::addView(KOrg::BaseView *view) | 823 | void KOViewManager::addView(KOrg::BaseView *view) |
824 | { | 824 | { |
825 | #if QT_VERSION >= 0x030000 | 825 | #if QT_VERSION >= 0x030000 |
826 | mMainView->viewStack()->addWidget( view ); | 826 | mMainView->viewStack()->addWidget( view ); |
827 | #else | 827 | #else |
828 | mMainView->viewStack()->addWidget( view, 1 ); | 828 | mMainView->viewStack()->addWidget( view, 1 ); |
829 | #endif | 829 | #endif |
830 | } | 830 | } |
831 | 831 | ||
832 | void KOViewManager::setDocumentId( const QString &id ) | 832 | void KOViewManager::setDocumentId( const QString &id ) |
833 | { | 833 | { |
834 | if (mTodoView) mTodoView->setDocumentId( id ); | 834 | if (mTodoView) { |
835 | mTodoView->clearList(); | ||
836 | mTodoView->setDocumentId( id ); | ||
837 | } | ||
835 | } | 838 | } |