00001 /* 00002 * (C) 2004 00003 * GPLv2 zecke@handhelds.org 00004 * 00005 */ 00006 00007 #ifndef ABOOK_NAME_LINE_EDIT 00008 #define ABOOK_NAME_LINE_EDIT 00009 00010 #include <qlineedit.h> 00011 00012 namespace ABOOK { 00017 class NameLineEdit : public QLineEdit { 00018 Q_OBJECT 00019 public: 00020 NameLineEdit( QWidget* parent, const char* name = 0 ); 00021 NameLineEdit( const QString& str, QWidget* par, 00022 const char *name = 0); 00023 ~NameLineEdit(); 00024 00025 protected: 00026 void keyPressEvent( QKeyEvent* ev ); 00027 00028 private: 00029 void configReader(); 00030 00031 bool m_prevSpace : 1; 00032 bool m_disabled : 1; 00033 }; 00034 } 00035 00036 #endif
1.4.2