blob: c7195797c51cbc237d7fa91c4ddc0cf74ba67d39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* (C) 2004
* GPLv2 zecke@handhelds.org
*
*/
#ifndef ABOOK_NAME_LINE_EDIT
#define ABOOK_NAME_LINE_EDIT
#include <qlineedit.h>
namespace ABOOK {
/**
* small class to ease the input of names to capitalize them
*
*/
class NameLineEdit : public QLineEdit {
Q_OBJECT
public:
NameLineEdit( QWidget* parent, const char* name = 0 );
NameLineEdit( const QString& str, QWidget* par,
const char *name = 0);
~NameLineEdit();
protected:
void keyPressEvent( QKeyEvent* ev );
private:
bool m_prevSpace : 1;
};
}
#endif
|