author | zautrix <zautrix> | 2005-08-10 16:47:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-08-10 16:47:41 (UTC) |
commit | 1af305e995d99549091c5b1e167b6101a3910f0d (patch) (side-by-side diff) | |
tree | 617106288214a86362d6424d9370f10e5b0572ba /korganizer/kotodoview.cpp | |
parent | 2ec31858158e42921b8d7fa2b75ccb1a16d8969c (diff) | |
download | kdepimpi-1af305e995d99549091c5b1e167b6101a3910f0d.zip kdepimpi-1af305e995d99549091c5b1e167b6101a3910f0d.tar.gz kdepimpi-1af305e995d99549091c5b1e167b6101a3910f0d.tar.bz2 |
qwhatsthis text
-rw-r--r-- | korganizer/kotodoview.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 27d755e..17248dc 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -470,32 +470,33 @@ void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) QPoint vp = contentsToViewport(e->pos()); QListViewItem *item = itemAt(vp); emit double_Clicked(item); if (!item) return; emit doubleClicked(item,vp,0); } ///////////////////////////////////////////////////////////////////////////// KOQuickTodo::KOQuickTodo(QWidget *parent) : QLineEdit(parent) { setText(i18n("Click to add new Todo")); + setFocusPolicy ( QWidget::ClickFocus ); } void KOQuickTodo::focusInEvent(QFocusEvent *ev) { if ( text()==i18n("Click to add new Todo") ) setText(""); QLineEdit::focusInEvent(ev); } void KOQuickTodo::focusOutEvent(QFocusEvent *ev) { setText(i18n("Click to add new Todo")); QLineEdit::focusOutEvent(ev); } ///////////////////////////////////////////////////////////////////////////// @@ -539,33 +540,47 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : connect ( mNewSubBut, SIGNAL ( clicked()), SLOT ( newSubTodo())); mNewSubBut->setFixedWidth(mNewSubBut->sizeHint().width() ); mNewSubBut->setEnabled( false ); flat->setFixedWidth( fixwid ); s_done->setFixedWidth( fixwid ); allopen->setFixedWidth( fixwid ); allclose->setFixedWidth( fixwid ); s_run->setFixedWidth( fixwid ); flat->setFixedHeight(fixhei ); s_done->setFixedHeight(fixhei ); allopen->setFixedHeight(fixhei ); allclose->setFixedHeight(fixhei ); s_run->setFixedHeight(fixhei ); mNewSubBut->setFixedHeight(fixhei ); + + flat->setFocusPolicy( NoFocus ); + s_done->setFocusPolicy( NoFocus ); + allopen->setFocusPolicy( NoFocus ); + allclose->setFocusPolicy( NoFocus ); + s_run->setFocusPolicy( NoFocus ); + mNewSubBut->setFocusPolicy( NoFocus ); + QWhatsThis::add( flat, i18n("Click this button to display all todos in a <b>flat</b> hierarchy" ) ); + QWhatsThis::add( allopen, i18n("Click this button to display all todos <b>openend</b>" ) ); + QWhatsThis::add( allclose, i18n("Click this button to display all todos <b>closed</b>" ) ); + QWhatsThis::add( s_run, i18n("Click this button to toggle show/hide <b>running</b> todos" ) ); + QWhatsThis::add( mNewSubBut, i18n("Click this button to add a new subtodo to the currently selected todo" ) ); + QWhatsThis::add( s_done, i18n("Click this button to toggle show/hide <b>completed</b> todos" ) ); + quickLayout->addWidget( mNewSubBut ); quickLayout->addWidget( s_done ); quickLayout->addWidget( s_run ); quickLayout->addWidget( allopen ); quickLayout->addWidget( allclose ); quickLayout->addWidget( flat ); if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickBar->hide(); mTodoListView = new KOTodoListView(calendar,this, name ); topLayout->addWidget(mTodoListView); //mTodoListView->header()->setMaximumHeight(30); mTodoListView->setRootIsDecorated(true); mTodoListView->setAllColumnsShowFocus(true); mTodoListView->setShowSortIndicator(true); |