26 #ifndef YQInputField_h 27 #define YQInputField_h 30 #include <qlineedit.h> 32 #include <yui/YInputField.h> 34 typedef union _XEvent XEvent;
52 const std::string & label,
53 bool passwordMode =
false );
61 virtual std::string
value();
69 virtual void setValue(
const std::string & text );
76 virtual void setLabel(
const std::string & label );
124 virtual void setSize(
int newWidth,
int newHeight );
139 void changed(
const QString & );
159 bool _displayingCapsLockWarning;
177 : QLineEdit( parent )
178 , _capsLockActive( false )
194 void capsLockActivated();
195 void capsLockDeactivated();
209 bool _capsLockActive;
212 #endif // YQInputField_h
Helper class that can obtain the CapsLock status, too.
YQRawLineEdit(QWidget *parent)
Constructor.
bool x11Event(XEvent *event)
X11 raw event handler.
virtual ~YQRawLineEdit()
Destructor.
bool isCapsLockActive() const
Check if CapsLock is active (rather: was active at the time of the last key or focus event) ...