┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-11-12 18:58:44 +0000
committerPeter Penz <[email protected]>2009-11-12 18:58:44 +0000
commit288c7db6a7ae804c79d9fe61dcaf7f494a194341 (patch)
tree15c409a826951d27e920f391b7849dfaf962e3dc /src/search/dolphinsearchbox.cpp
parent408d94ac5766f543b433f492b37fb3ca1a6d8d84 (diff)
Show some default search configurations, so that the user is able to adjust queries in a faster way (similar to a defaceted interface).
svn path=/trunk/KDE/kdebase/apps/; revision=1048109
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
-rw-r--r--src/search/dolphinsearchbox.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp
index e2fd81a6f..666405014 100644
--- a/src/search/dolphinsearchbox.cpp
+++ b/src/search/dolphinsearchbox.cpp
@@ -17,6 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
+
#include "dolphinsearchbox.h"
#include <config-nepomuk.h>
@@ -248,8 +249,6 @@ DolphinSearchBox::DolphinSearchBox(QWidget* parent) :
m_searchInput->setClickMessage(i18nc("@label:textbox", "Search..."));
m_searchInput->installEventFilter(this);
hLayout->addWidget(m_searchInput);
- connect(m_searchInput, SIGNAL(textChanged(const QString&)),
- this, SIGNAL(textChanged(const QString&)));
connect(m_searchInput, SIGNAL(returnPressed()),
this, SLOT(emitSearchSignal()));
@@ -278,6 +277,7 @@ bool DolphinSearchBox::event(QEvent* event)
return QWidget::event(event);
}
+#include <kdebug.h>
bool DolphinSearchBox::eventFilter(QObject* watched, QEvent* event)
{
if ((watched == m_searchInput) && (event->type() == QEvent::FocusIn)) {
@@ -287,6 +287,7 @@ bool DolphinSearchBox::eventFilter(QObject* watched, QEvent* event)
if (m_completer == 0) {
m_completer = new DolphinSearchCompleter(m_searchInput);
}
+ kDebug() << "---- got focus! is visible? " << isVisible();
emit requestSearchOptions();
}