summaryrefslogtreecommitdiffabout
path: root/korganizer/kotodoview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kotodoview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index da46eca..ca5eadd 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -58,4 +58,5 @@ KOTodoListView::KOTodoListView(Calendar *calendar,QWidget *parent,
KListView(parent,name)
{
+ mName = QString ( name );
mCalendar = calendar;
#ifndef DESKTOP_VERSION
@@ -265,5 +266,5 @@ 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() ) {
case Qt::Key_Down:
@@ -271,4 +272,8 @@ void KOTodoListView::keyPressEvent ( QKeyEvent * e )
QListView::keyPressEvent ( e );
break;
+ case Qt::Key_Left:
+ case Qt::Key_Right:
+ QListView::keyPressEvent ( e );
+ break;
default:
e->ignore();
@@ -333,5 +338,5 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) :
if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickAdd->hide();
- mTodoListView = new KOTodoListView(calendar,this);
+ mTodoListView = new KOTodoListView(calendar,this, name );
topLayout->addWidget(mTodoListView);
//mTodoListView->header()->setMaximumHeight(30);
@@ -972,10 +977,8 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e )
switch ( e->key() ) {
case Qt::Key_Down:
- QWidget::keyPressEvent ( e );
- break;
-
case Qt::Key_Up:
QWidget::keyPressEvent ( e );
break;
+
case Qt::Key_Q:
toggleQuickTodo();
@@ -986,5 +989,5 @@ 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 ) {
KOTodoViewItem*cn = (KOTodoViewItem*)mTodoListView->currentItem();