author | zautrix <zautrix> | 2005-06-29 20:48:31 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 20:48:31 (UTC) |
commit | f55b992a98cc081207b23283aadcf2ecffc90a87 (patch) (side-by-side diff) | |
tree | b0b54ac4f2a164ac7e7ca49bea78f62e4f58fa62 /korganizer | |
parent | 8954bae7bb5afc9706e37e808e9c1e237399f214 (diff) | |
download | kdepimpi-f55b992a98cc081207b23283aadcf2ecffc90a87.zip kdepimpi-f55b992a98cc081207b23283aadcf2ecffc90a87.tar.gz kdepimpi-f55b992a98cc081207b23283aadcf2ecffc90a87.tar.bz2 |
fixxxx
-rw-r--r-- | korganizer/calendarview.cpp | 14 | ||||
-rw-r--r-- | korganizer/calendarview.h | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 776cdd3..623cf9d 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -446,5 +446,8 @@ void CalendarView::init() //QBoxLayout * leftFrameLayout; - mDateScrollBar = new QScrollBar ( 0, 364, 1,30, 200,QScrollBar::Horizontal, this ); topLayout->addWidget( mMainFrame ); +#ifdef DESKTOP_VERSION + mDateScrollBar = new QScrollBar ( 0, 364, 1,30, 200,QScrollBar::Horizontal, this ); topLayout->addWidget( mDateScrollBar ); + connect( mDateScrollBar, SIGNAL( valueChanged ( int ) ),this, SLOT( scrollBarValue( int )) ); +#endif //mainBoxLayout->addWidget (mLeftFrame); @@ -471,3 +474,3 @@ void CalendarView::init() connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); - connect( mDateScrollBar, SIGNAL( valueChanged ( int ) ),this, SLOT( scrollBarValue( int )) ); + mTodoList->setNavigator( mNavigator ); @@ -651,3 +654,5 @@ void CalendarView::setScrollBarStep(int val ) { +#ifdef DESKTOP_VERSION mDateScrollBar->setLineStep ( val ); +#endif } @@ -655,2 +660,4 @@ void CalendarView::scrollBarValue(int val ) { +#ifdef DESKTOP_VERSION + if ( QApplication::desktop()->width() < 800 ) return; static bool block = false; @@ -670,2 +677,3 @@ void CalendarView::scrollBarValue(int val ) block = false; +#endif @@ -2586,3 +2594,5 @@ void CalendarView::updateView(const QDate &start, const QDate &end) { +#ifdef DESKTOP_VERSION mDateScrollBar->setValue( start.dayOfYear()-1); +#endif mTodoList->updateView(); diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index c89bbf7..f7e5366 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h @@ -537,3 +537,5 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser private: +#ifdef DESKTOP_VERSION QScrollBar * mDateScrollBar; +#endif QDateTime mNextAlarmDateTime; |