qlineedit.h
来自「PIXIL is a small footprint operating env」· C头文件 代码 · 共 35 行
H
35 行
#ifndef __QLINEEDIT_H#define __QLINEEDIT_H#include "qwidget.h"#include "qstring.h"#include <Fl_Input.H>class QLineEdit : public QWidget{ Q_OBJECT protected: Fl_Input * m_pInput; public: enum EchoMode { Normal, NoEcho, Password }; QLineEdit(QWidget * parent, const char * name=0); ~QLineEdit() { } QString text() const { return m_pInput->value(); } void _callback(); void setText(const QString & text) { m_pInput->value(text); } void setMaxLength(int len) { m_pInput->maximum_size(len); } int maxLength() const { return m_pInput->maximum_size(); } virtual void setEchoMode(bool echo) { if(echo) m_pInput->type(FL_SECRET_INPUT); } signals: void textChanged( const char *); void returnPressed( );};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?