**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************
The original message was received at Fri, 23 Nov 2007 00:10:28 +0100 (MET)
from "John
Warning: message still undelivered after 4 hours.
Will keep trying until message is 5 days old.
Reporting-MTA: DNS; gibbsson
Received-From-MTA: DNS; bertie-mi-ob.mail
Arrival-Date: Fri, 23 Nov 2007 00:10:28 +0100 (MET)
Final-Recipient: RFC822; [email protected]
Action: delayed
Status: 4.2.1
Diagnostic-Code: SMTP; 451 4.2.1 Delivery failed: mailbox is temporarily unavailable (ENOLOCK) [Rd8908028 515 Fri, 23 Nov 2007 04:10:28 +0100 (MET)]
Last-Attempt-Date: Fri, 23 Nov 2007 04:10:59 +0100 (MET)
Will-Retry-Until: Wed, 28 Nov 2007 04:10:59 +0100 (MET)
--- Begin Message ---
Hi,
I saw a recent commit:
> the contactlist should have focus per default rather then the search-lineedit
> like at KDE3, right?!
Can I suggest, instead, that the search lineedit does have focus,
but that the up,down and enter keys get passed through to the contact
list. This allows you to quickly filter and select context with the
keyboard.
I have added a similar ability to ktreewidgetsearchline and
klistwidgetsearchline. It's also used in ksysguard, if you want to
see what it is like.
Codewise, you just override the event method for the search line, or
install an event filter if you don't subclass.
Here's the code used in kde/kdelibs/kdeui/itemviews/ktreewidgetsearchline.cpp
bool KTreeWidgetSearchLine::event(QEvent *event) {
if (event->type() == QEvent::KeyPress) {
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
if(keyEvent->matches(QKeySequence::MoveToNextLine) ||
keyEvent->matches(QKeySequence::SelectNextLine) ||
keyEvent->matches(QKeySequence::MoveToPreviousLine)
|| keyEvent->matches(QKeySequence::SelectPreviousLine) ||
keyEvent->matches(QKeySequence::MoveToNextPage) ||
keyEvent->matches(QKeySequence::SelectNextPage) ||
keyEvent->matches(QKeySequence::MoveToPreviousPage)
|| keyEvent->matches(QKeySequence::SelectPreviousPage) ||
keyEvent->key() == Qt::Key_Enter || keyEvent->key()
== Qt::Key_Return)
{
QTreeWidget *first = d->treeWidgets.first();
if(first) {
QApplication::sendEvent(first, event);
return true;
}
}
}
return KLineEdit::event(event);
}
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel
--- End Message ---
_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel