summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/namelineedit.h
blob: 7f0eda89215dcaeba97f496e00384dd72b604943 (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
34
35
36
/*
 * (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:
	void configReader();

        bool m_prevSpace : 1;
	bool m_disabled : 1;
    };
}

#endif