summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp2
-rw-r--r--korganizer/kotodoview.cpp19
-rw-r--r--korganizer/kotodoview.h1
3 files changed, 13 insertions, 9 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() ) {
@@ -271,3 +272,7 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e )
QListView::keyPressEvent ( e );
- break;
+ 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 ) {
@@ -1003,3 +1006,3 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e )
}
- e->accept();
+ e->accept();
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;