[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src/widgets
From: Seb Ruiz <ruiz () kde ! org>
Date: 2009-05-11 9:28:59
Message-ID: 1242034139.284558.19760.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 966509 by seb:
Cool, who'd have known that KLineEdit already handles the return key
M +1 -6 ProgressiveSearchWidget.cpp
--- trunk/extragear/multimedia/amarok/src/widgets/ProgressiveSearchWidget.cpp \
#966508:966509 @@ -53,6 +53,7 @@
m_searchEdit->setFocusPolicy( Qt::ClickFocus ); // Without this, the widget goes \
into text input mode directly on startup
connect( m_searchEdit, SIGNAL( textChanged( const QString & ) ), this, SLOT( \
slotFilterChanged( const QString & ) ) ); + connect( m_searchEdit, SIGNAL( \
returnPressed( const QString & ) ), this, SIGNAL( activateFilterResult() ) );
QToolBar *toolbar = new QToolBar( searchBox );
@@ -351,12 +352,6 @@
event->accept();
slotPrevious();
}
- else if( event->key() == Qt::Key_Return )
- {
- DEBUG_BLOCK
- event->accept();
- emit activateFilterResult();
- }
else
{
event->ignore();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic