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 /korganizer/koviewmanager.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/koviewmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koviewmanager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index 4057ae0..07c4295 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -10,33 +10,35 @@ | |||
10 | (at your option) any later version. | 10 | (at your option) any later version. |
11 | 11 | ||
12 | This program is distributed in the hope that it will be useful, | 12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the |
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. |
16 | 16 | ||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software | 18 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 | 20 | ||
21 | As a special exception, permission is given to link this program | 21 | As a special exception, permission is given to link this program |
22 | with any edition of Qt, and distribute the resulting executable, | 22 | with any edition of Qt, and distribute the resulting executable, |
23 | without including the source code for Qt in the source distribution. | 23 | without including the source code for Qt in the source distribution. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <qwidgetstack.h> | 26 | #include <q3widgetstack.h> |
27 | //Added by qt3to4: | ||
28 | #include <Q3PtrList> | ||
27 | 29 | ||
28 | #include <kconfig.h> | 30 | #include <kconfig.h> |
29 | #include <kglobal.h> | 31 | #include <kglobal.h> |
30 | #ifndef DESKTOP_VERSION | 32 | #ifndef DESKTOP_VERSION |
31 | #include <qpe/qpeapplication.h> | 33 | #include <qpe/qpeapplication.h> |
32 | #else | 34 | #else |
33 | #include <qapplication.h> | 35 | #include <qapplication.h> |
34 | #endif | 36 | #endif |
35 | #include <qdatetime.h> | 37 | #include <qdatetime.h> |
36 | #include "calendarview.h" | 38 | #include "calendarview.h" |
37 | #include "datenavigator.h" | 39 | #include "datenavigator.h" |
38 | #include "kotodoview.h" | 40 | #include "kotodoview.h" |
39 | #include "koagendaview.h" | 41 | #include "koagendaview.h" |
40 | #include "kodialogmanager.h" | 42 | #include "kodialogmanager.h" |
41 | #include "komonthview.h" | 43 | #include "komonthview.h" |
42 | #include "kolistview.h" | 44 | #include "kolistview.h" |
@@ -444,34 +446,34 @@ void KOViewManager::showListView() | |||
444 | mMainView, SLOT(editIncidence(Incidence *))); | 446 | mMainView, SLOT(editIncidence(Incidence *))); |
445 | connect(mListView, SIGNAL(deleteIncidenceSignal(Incidence *)), | 447 | connect(mListView, SIGNAL(deleteIncidenceSignal(Incidence *)), |
446 | mMainView, SLOT(deleteIncidence(Incidence *))); | 448 | mMainView, SLOT(deleteIncidence(Incidence *))); |
447 | connect( mListView, SIGNAL( incidenceSelected( Incidence * ) ), | 449 | connect( mListView, SIGNAL( incidenceSelected( Incidence * ) ), |
448 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); | 450 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); |
449 | connect( mListView, SIGNAL( signalNewEvent() ), | 451 | connect( mListView, SIGNAL( signalNewEvent() ), |
450 | mMainView, SLOT( newEvent() ) ); | 452 | mMainView, SLOT( newEvent() ) ); |
451 | connect(mMainView, SIGNAL(configChanged()), mListView, SLOT(updateConfig())); | 453 | connect(mMainView, SIGNAL(configChanged()), mListView, SLOT(updateConfig())); |
452 | connect( mListView, SIGNAL( cloneIncidenceSignal( Incidence * ) ), | 454 | connect( mListView, SIGNAL( cloneIncidenceSignal( Incidence * ) ), |
453 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); | 455 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); |
454 | connect( mListView, SIGNAL( cancelIncidenceSignal( Incidence * ) ), | 456 | connect( mListView, SIGNAL( cancelIncidenceSignal( Incidence * ) ), |
455 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); | 457 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); |
456 | connect( mListView, SIGNAL( moveIncidenceSignal( Incidence * ) ), | 458 | connect( mListView, SIGNAL( moveIncidenceSignal( Incidence * ) ), |
457 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); | 459 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); |
458 | connect( mListView, SIGNAL( beamIncidenceSignal( Incidence * ) ), | 460 | connect( mListView, SIGNAL( beamIncidenceSignal( Incidence * ) ), |
459 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); | 461 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); |
460 | connect( mListView, SIGNAL( beamIncidenceList( QPtrList<Incidence> ) ), | 462 | connect( mListView, SIGNAL( beamIncidenceList( Q3PtrList<Incidence> ) ), |
461 | mMainView, SLOT ( beamIncidenceList( QPtrList<Incidence> ) ) ); | 463 | mMainView, SLOT ( beamIncidenceList( Q3PtrList<Incidence> ) ) ); |
462 | } | 464 | } |
463 | // bool temp = mFlagShowNextxDays; | 465 | // bool temp = mFlagShowNextxDays; |
464 | //globalFlagBlockPainting = true; | 466 | //globalFlagBlockPainting = true; |
465 | globalFlagBlockAgenda = 1; | 467 | globalFlagBlockAgenda = 1; |
466 | if ( KOPrefs::instance()->mListViewMonthTimespan ) { | 468 | if ( KOPrefs::instance()->mListViewMonthTimespan ) { |
467 | mMainView->setBlockShowDates( true ); | 469 | mMainView->setBlockShowDates( true ); |
468 | mMainView->dateNavigator()->selectMonth(); | 470 | mMainView->dateNavigator()->selectMonth(); |
469 | mMainView->setBlockShowDates( false ); | 471 | mMainView->setBlockShowDates( false ); |
470 | } | 472 | } |
471 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_L_VIEW; | 473 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_L_VIEW; |
472 | showView(mListView, KOPrefs::instance()->mFullViewTodo); | 474 | showView(mListView, KOPrefs::instance()->mFullViewTodo); |
473 | //mFlagShowNextxDays = temp; | 475 | //mFlagShowNextxDays = temp; |
474 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_L_VIEW; | 476 | KOPrefs::instance()->mCurrentDisplayedView = VIEW_L_VIEW; |
475 | mMainView->setScrollBarStep( 7 ); | 477 | mMainView->setScrollBarStep( 7 ); |
476 | } | 478 | } |
477 | 479 | ||