Test change - can I push OK?
[kdeedu-porting.git] / kalzium / src / searchwidget.h
blobc5c721b4c11315ed12228618c1513e2c48c2a485
1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano, toscano.pino@tiscali.it *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program 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 *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef KALZIUMSEARCHWIDGET_H
21 #define KALZIUMSEARCHWIDGET_H
23 #include <QWidget>
25 class KLineEdit;
26 class QTimer;
28 /**
29 * A small widget to control the Search kept in KalziumDataObject.
31 * @author Pino Toscano
33 class SearchWidget : public QWidget
35 Q_OBJECT
37 public:
38 /**
39 * Construct a new empty search.
41 SearchWidget( QWidget *parent = 0 );
43 ~SearchWidget();
45 void giveFocus();
47 void appendSearchText( const QString& text );
49 private slots:
50 void searchTextChanged( const QString& text );
51 void slotReturnPressed();
52 void doSearch();
54 private:
55 KLineEdit *m_searchLine;
56 QTimer *m_timer;
59 #endif // KALZIUMSEARCHWIDGET_H