]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/filterbar.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / filterbar.h
index 3f5c3cbfd92e2537f50768982435940a2185b433..e7c244e8c92640d29fc18e9cad8df704983f6f53 100644 (file)
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
  ***************************************************************************/
 #ifndef FILTERBAR_H
 #define FILTERBAR_H
 
-#include <QWidget>
+#include <QtGui/QWidget>
 
 class QLabel;
 class QToolButton;
@@ -30,24 +30,33 @@ class KLineEdit;
  * @brief Provides an input field for filtering the currently shown items.
  *
  * @author Gregor Kališnik <gregor@podnapisi.net>
+ * @author Peter Penz <peter.penz@gmx.at>
  */
 class FilterBar : public QWidget
 {
     Q_OBJECT
 
 public:
-    FilterBar(QWidget *parent = 0, const char *name = 0);
+    FilterBar(QWidget* parent = 0);
     virtual ~FilterBar();
 
+public slots:
+    /** Clears the input field. */
+    void clear();
+
 signals:
     /**
      * Signal that reports the name filter has been
      * changed to \a nameFilter.
      */
-    void signalFilterChanged(const QString& nameFilter);
+    void filterChanged(const QString& nameFilter);
+
+    /**
+     * Emitted as soon as the filterbar should get closed.
+     */
+    void closeRequest();
 
 protected:
-    virtual void hideEvent(QHideEvent* event);
     virtual void showEvent(QShowEvent* event);
     virtual void keyReleaseEvent(QKeyEvent* event);