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

📄 realoption.cc

📁 c++的guiQt做的开发
💻 CC
字号:
/** @file RealOption - class for widget containing one editable setting of type float (internally represented as a double)<br> Used as one item in option window @author Martin Petricek*/#include "realoption.h"#include <QValidator>#include <QLineEdit>namespace gui {/** Default constructor of RealOption item @param parent parent Option Editor containing this control @param _key Key in settings for this option @param _defValue Default value if option not found */RealOption::RealOption(const QString &_key/*=0*/,QWidget *parent/*=0*/,double _defValue/*=0*/) : StringOption (_key,parent) { ed->setText(QString::number(_defValue)); ed->setValidator(new QDoubleValidator(ed));}/** default destructor */RealOption::~RealOption() {}} // namespace gui

⌨️ 快捷键说明

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