Applets
searchbar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SEARCHBAR_H
00021 #define SEARCHBAR_H
00022
00023
00024 #include <QWidget>
00025
00026 namespace Kickoff
00027 {
00028
00029 class SearchBar : public QWidget
00030 {
00031 Q_OBJECT
00032
00033 public:
00034 SearchBar(QWidget *parent);
00035 virtual ~SearchBar();
00036
00037 bool eventFilter(QObject *watched, QEvent *event);
00038 void clear();
00039
00040 Q_SIGNALS:
00041 void queryChanged(const QString& newQuery);
00042
00043
00044 void startUpdateTimer();
00045
00046 protected:
00047 void paintEvent(QPaintEvent *event);
00048
00049 private Q_SLOTS:
00050 void updateTimerExpired();
00051
00052 private:
00053 class Private;
00054 Private * const d;
00055 };
00056
00057 }
00058
00059 #endif // SEARCHBAR_H
00060