author | zautrix <zautrix> | 2005-06-29 20:50:39 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 20:50:39 (UTC) |
commit | d1ca2fd41cb1390843c974c985cae5912d458d51 (patch) (unidiff) | |
tree | 7df650cfed3562a9e98c9f1eac9da0ee6beec6c1 | |
parent | f55b992a98cc081207b23283aadcf2ecffc90a87 (diff) | |
download | kdepimpi-d1ca2fd41cb1390843c974c985cae5912d458d51.zip kdepimpi-d1ca2fd41cb1390843c974c985cae5912d458d51.tar.gz kdepimpi-d1ca2fd41cb1390843c974c985cae5912d458d51.tar.bz2 |
fhhh
-rw-r--r-- | korganizer/calendarview.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 623cf9d..214b829 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -428,48 +428,50 @@ void CalendarView::init() | |||
428 | //QWidget *leftFrame = new QWidget( mainBox ); | 428 | //QWidget *leftFrame = new QWidget( mainBox ); |
429 | //QBoxLayout * mainBoxLayout; | 429 | //QBoxLayout * mainBoxLayout; |
430 | if ( KOPrefs::instance()->mVerticalScreen ) { | 430 | if ( KOPrefs::instance()->mVerticalScreen ) { |
431 | //mainBoxLayout = new QVBoxLayout(mainBox); | 431 | //mainBoxLayout = new QVBoxLayout(mainBox); |
432 | //leftFrameLayout = new QHBoxLayout(leftFrame ); | 432 | //leftFrameLayout = new QHBoxLayout(leftFrame ); |
433 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Vertical, this ); | 433 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Vertical, this ); |
434 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); | 434 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); |
435 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, mMainFrame);; | 435 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, mMainFrame);; |
436 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); | 436 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); |
437 | } else { | 437 | } else { |
438 | //mainBoxLayout = new QHBoxLayout(mainBox); | 438 | //mainBoxLayout = new QHBoxLayout(mainBox); |
439 | //leftFrameLayout = new QVBoxLayout(leftFrame ); | 439 | //leftFrameLayout = new QVBoxLayout(leftFrame ); |
440 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, this); | 440 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, this); |
441 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Left); | 441 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Left); |
442 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Vertical, mMainFrame); | 442 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Vertical, mMainFrame); |
443 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); | 443 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); |
444 | } | 444 | } |
445 | mMainFrame->setSizePolicy( QSizePolicy (QSizePolicy::Expanding,QSizePolicy::Expanding) ); | 445 | mMainFrame->setSizePolicy( QSizePolicy (QSizePolicy::Expanding,QSizePolicy::Expanding) ); |
446 | //QBoxLayout * leftFrameLayout; | 446 | //QBoxLayout * leftFrameLayout; |
447 | topLayout->addWidget( mMainFrame ); | 447 | topLayout->addWidget( mMainFrame ); |
448 | #ifdef DESKTOP_VERSION | 448 | #ifdef DESKTOP_VERSION |
449 | mDateScrollBar = new QScrollBar ( 0, 364, 1,30, 200,QScrollBar::Horizontal, this ); | 449 | mDateScrollBar = new QScrollBar ( 0, 364, 1,30, 200,QScrollBar::Horizontal, this ); |
450 | topLayout->addWidget( mDateScrollBar ); | 450 | topLayout->addWidget( mDateScrollBar ); |
451 | connect( mDateScrollBar, SIGNAL( valueChanged ( int ) ),this, SLOT( scrollBarValue( int )) ); | 451 | connect( mDateScrollBar, SIGNAL( valueChanged ( int ) ),this, SLOT( scrollBarValue( int )) ); |
452 | if ( QApplication::desktop()->width() < 800 ) | ||
453 | mDateScrollBar->hide(); | ||
452 | #endif | 454 | #endif |
453 | //mainBoxLayout->addWidget (mLeftFrame); | 455 | //mainBoxLayout->addWidget (mLeftFrame); |
454 | mDateNavigator = new DateNavigatorContainer( mLeftFrame, | 456 | mDateNavigator = new DateNavigatorContainer( mLeftFrame, |
455 | "CalendarView::DateNavigator" ); | 457 | "CalendarView::DateNavigator" ); |
456 | #if 0 | 458 | #if 0 |
457 | // FIXME | 459 | // FIXME |
458 | mDateNavigator = new KDateNavigator(mLeftFrame, mCalendar, TRUE, | 460 | mDateNavigator = new KDateNavigator(mLeftFrame, mCalendar, TRUE, |
459 | "CalendarView::DateNavigator", QDate::currentDate()); | 461 | "CalendarView::DateNavigator", QDate::currentDate()); |
460 | #endif | 462 | #endif |
461 | // mDateNavigator->blockSignals( true ); | 463 | // mDateNavigator->blockSignals( true ); |
462 | //leftFrameLayout->addWidget( mDateNavigator ); | 464 | //leftFrameLayout->addWidget( mDateNavigator ); |
463 | mTodoList = new KOTodoView(mCalendar, mLeftFrame, "todolistsmall"); | 465 | mTodoList = new KOTodoView(mCalendar, mLeftFrame, "todolistsmall"); |
464 | mFilterView = new KOFilterView(&mFilters,mLeftFrame,"CalendarView::FilterView"); | 466 | mFilterView = new KOFilterView(&mFilters,mLeftFrame,"CalendarView::FilterView"); |
465 | mCalEditView = new KOCalEditView(mLeftFrame,"CalendarView::CaleditView"); | 467 | mCalEditView = new KOCalEditView(mLeftFrame,"CalendarView::CaleditView"); |
466 | connect( mCalEditView, SIGNAL( calendarEnabled (int,bool) ),mCalendar, SLOT( setCalendarEnabled(int,bool)) ); | 468 | connect( mCalEditView, SIGNAL( calendarEnabled (int,bool) ),mCalendar, SLOT( setCalendarEnabled(int,bool)) ); |
467 | connect( mCalEditView, SIGNAL( alarmEnabled(int,bool) ),mCalendar, SLOT( setAlarmEnabled(int,bool)) ); | 469 | connect( mCalEditView, SIGNAL( alarmEnabled(int,bool) ),mCalendar, SLOT( setAlarmEnabled(int,bool)) ); |
468 | connect( mCalEditView, SIGNAL( calendarReadonly(int,bool) ),mCalendar, SLOT( setReadOnly(int,bool)) ); | 470 | connect( mCalEditView, SIGNAL( calendarReadonly(int,bool) ),mCalendar, SLOT( setReadOnly(int,bool)) ); |
469 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mCalendar, SLOT( setDefaultCalendar(int)) ); | 471 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mCalendar, SLOT( setDefaultCalendar(int)) ); |
470 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mViewManager, SLOT( setDefaultCalendar(int)) ); | 472 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mViewManager, SLOT( setDefaultCalendar(int)) ); |
471 | connect( mCalEditView, SIGNAL( removeCalendar(int) ),mCalendar, SLOT( setCalendarRemove(int)) ); | 473 | connect( mCalEditView, SIGNAL( removeCalendar(int) ),mCalendar, SLOT( setCalendarRemove(int)) ); |
472 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); | 474 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); |
473 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); | 475 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); |
474 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); | 476 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); |
475 | 477 | ||