┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/filterbar
diff options
context:
space:
mode:
Diffstat (limited to 'src/filterbar')
-rw-r--r--src/filterbar/filterbar.cpp7
-rw-r--r--src/filterbar/filterbar.h9
2 files changed, 13 insertions, 3 deletions
diff --git a/src/filterbar/filterbar.cpp b/src/filterbar/filterbar.cpp
index c5dd99d78..8e4dfcc9b 100644
--- a/src/filterbar/filterbar.cpp
+++ b/src/filterbar/filterbar.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006 by Peter Penz <[email protected]> *
+ * Copyright (C) 2006-2010 by Peter Penz <[email protected]> *
* Copyright (C) 2006 by Gregor Kališnik <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -64,6 +64,11 @@ FilterBar::~FilterBar()
{
}
+void FilterBar::selectAll()
+{
+ m_filterInput->selectAll();
+}
+
void FilterBar::clear()
{
m_filterInput->clear();
diff --git a/src/filterbar/filterbar.h b/src/filterbar/filterbar.h
index bf1bce684..cc26ebe67 100644
--- a/src/filterbar/filterbar.h
+++ b/src/filterbar/filterbar.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006 by Peter Penz <[email protected]> *
+ * Copyright (C) 2006-2010 by Peter Penz <[email protected]> *
* Copyright (C) 2006 by Gregor Kališnik <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -17,6 +17,7 @@
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
***************************************************************************/
+
#ifndef FILTERBAR_H
#define FILTERBAR_H
@@ -28,7 +29,6 @@ class KLineEdit;
* @brief Provides an input field for filtering the currently shown items.
*
* @author Gregor Kališnik <[email protected]>
- * @author Peter Penz <[email protected]>
*/
class FilterBar : public QWidget
{
@@ -38,6 +38,11 @@ public:
FilterBar(QWidget* parent = 0);
virtual ~FilterBar();
+ /**
+ * Selects the whole text of the filter bar.
+ */
+ void selectAll();
+
public slots:
/** Clears the input field. */
void clear();