add more spacing
[personal-kdebase.git] / workspace / plasma / applets / kickoff / ui / searchbar.h
blob60aa9b4b3faaafd5484a36a819b8ac0ed5683a9a
1 /*
2 Copyright 2007 Robert Knight <robertknight@gmail.com>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef SEARCHBAR_H
21 #define SEARCHBAR_H
23 // Qt
24 #include <QWidget>
26 namespace Kickoff
29 class SearchBar : public QWidget
31 Q_OBJECT
33 public:
34 SearchBar(QWidget *parent);
35 virtual ~SearchBar();
37 bool eventFilter(QObject *watched, QEvent *event);
38 void clear();
40 Q_SIGNALS:
41 void queryChanged(const QString& newQuery);
43 // internal
44 void startUpdateTimer();
46 private Q_SLOTS:
47 void updateTimerExpired();
48 void updateThemedPalette();
50 private:
51 class Private;
52 Private * const d;
57 #endif // SEARCHBAR_H