⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stringoption.h

📁 c++的guiQt做的开发
💻 H
字号:
#ifndef __STRINGOPTION_H__#define __STRINGOPTION_H__#include "option.h"class QString;class QLineEdit;class QResizeEvent;namespace gui {/** Class for widget containing one editable setting of type string.<br> Also serves as a base class for editing some more specific types that can be represented in a string. \brief Widget to edit string option*/class StringOption : public Option { Q_OBJECTpublic: StringOption(const QString &_key=0,QWidget *parent=0,const QString &defValue=QString::null); virtual ~StringOption(); virtual void writeValue(); virtual void readValue(); virtual QSize sizeHint() const;protected slots: void enableChange(const QString &newText);protected: virtual void resizeEvent (QResizeEvent *e);protected: /** one line edit control used for editing the value */ QLineEdit *ed;};} // namespace gui#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -