From 17d217b862ec21668632576fd9df86d3a0cd5813 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 4 Feb 2011 22:13:50 +0100 Subject: Add unittest for DolphinSearchBox A minor API cleanup in DolphinSearchBox has been done related to the test. --- src/search/dolphinsearchbox.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/search/dolphinsearchbox.cpp') diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index f4588f67f..c7d08ff1f 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -73,6 +73,11 @@ DolphinSearchBox::~DolphinSearchBox() saveSettings(); } +void DolphinSearchBox::setText(const QString& text) +{ + m_searchInput->setText(text); +} + QString DolphinSearchBox::text() const { return m_searchInput->text(); @@ -141,11 +146,6 @@ void DolphinSearchBox::selectAll() m_searchInput->selectAll(); } -void DolphinSearchBox::clearText() -{ - m_searchInput->clear(); -} - bool DolphinSearchBox::event(QEvent* event) { if (event->type() == QEvent::Polish) { -- cgit v1.3