1 | /*************************************************************************** |
2 | phraseedit.h - description |
3 | ------------------- |
4 | begin : Don Sep 26 2002 |
5 | copyright : (C) 2002 by Gunnar Schmi Dt |
6 | email : kmouth@schmi-dt.de |
7 | ***************************************************************************/ |
8 | |
9 | /*************************************************************************** |
10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * |
15 | * * |
16 | ***************************************************************************/ |
17 | |
18 | #ifndef PHRASEEDIT_H |
19 | #define PHRASEEDIT_H |
20 | |
21 | #include <klineedit.h> |
22 | |
23 | #include <QtGui/QKeyEvent> |
24 | |
25 | /** |
26 | * This class extends a KLineEdit by consuming fewer unused key presses. |
27 | *@author Gunnar Schmi Dt |
28 | */ |
29 | |
30 | class PhraseEdit : public KLineEdit { |
31 | public: |
32 | PhraseEdit(const QString &string, QWidget *parent); |
33 | virtual ~PhraseEdit(); |
34 | |
35 | void keyPressEvent (QKeyEvent *e); |
36 | }; |
37 | |
38 | #endif |
39 | |