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.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/search/dolphinsearchbox.h') diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h index 3e4648048..07fda5c29 100644 --- a/src/search/dolphinsearchbox.h +++ b/src/search/dolphinsearchbox.h @@ -48,6 +48,12 @@ public: explicit DolphinSearchBox(QWidget* parent = 0); virtual ~DolphinSearchBox(); + /** + * Sets the text that should be used as input for + * searching. + */ + void setText(const QString& text); + /** * Returns the text that should be used as input * for searching. @@ -69,8 +75,6 @@ public: */ void selectAll(); - void clearText(); - protected: virtual bool event(QEvent* event); virtual void showEvent(QShowEvent* event); -- cgit v1.3.1