author | zautrix <zautrix> | 2004-10-10 20:52:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-10 20:52:35 (UTC) |
commit | ad409bf71ce6c3733f9e5ae4e4aa38765329d7d8 (patch) (side-by-side diff) | |
tree | 1e8b4286ed0d30499bfdb048fc4163caf05f69ce | |
parent | ee6e29a5092d32165b7bf6b39069bd8a1dcd5b0a (diff) | |
download | kdepimpi-ad409bf71ce6c3733f9e5ae4e4aa38765329d7d8.zip kdepimpi-ad409bf71ce6c3733f9e5ae4e4aa38765329d7d8.tar.gz kdepimpi-ad409bf71ce6c3733f9e5ae4e4aa38765329d7d8.tar.bz2 |
todo list fixes
-rw-r--r-- | korganizer/calendarview.cpp | 2 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 15 | ||||
-rw-r--r-- | korganizer/kotodoview.h | 1 |
3 files changed, 11 insertions, 7 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 0c35bb3..1f2c6da 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -312,3 +312,3 @@ void CalendarView::init() mFilterView = new KOFilterView(&mFilters,leftFrame,"CalendarView::FilterView"); - mTodoList = new KOTodoView(mCalendar, leftFrame, "todolist"); + mTodoList = new KOTodoView(mCalendar, leftFrame, "todolistsmall"); diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index da46eca..ca5eadd 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -59,2 +59,3 @@ KOTodoListView::KOTodoListView(Calendar *calendar,QWidget *parent, { + mName = QString ( name ); mCalendar = calendar; @@ -266,3 +267,3 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e ) // qDebug("KOTodoListView::keyPressEvent "); - if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || ( height() > 150 && width() > 200 ) ) { + if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { switch ( e->key() ) { @@ -272,2 +273,6 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e ) break; + case Qt::Key_Left: + case Qt::Key_Right: + QListView::keyPressEvent ( e ); + break; default: @@ -334,3 +339,3 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : - mTodoListView = new KOTodoListView(calendar,this); + mTodoListView = new KOTodoListView(calendar,this, name ); topLayout->addWidget(mTodoListView); @@ -973,5 +978,2 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e ) case Qt::Key_Down: - QWidget::keyPressEvent ( e ); - break; - case Qt::Key_Up: @@ -979,2 +981,3 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e ) break; + case Qt::Key_Q: @@ -987,3 +990,3 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e ) - if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || ( height() > 150 && width() > 200 ) ) { + if ( true ) { if ( e->key() == Qt::Key_I ) { diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index 4495702..6bf0203 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h @@ -76,2 +76,3 @@ class KOTodoListView : public KListView private: + QString mName; Calendar *mCalendar; |