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

📄 intoption.cc

📁 c++的guiQt做的开发
💻 CC
字号:
/** @file IntOption - class for widget containing one editable setting of type integer @author Martin Petricek*/#include "intoption.h"#include <QValidator>#include <QString>#include <QLineEdit>namespace gui {/** Default constructor of IntOption 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 in configuration */IntOption::IntOption(const QString &_key/*=0*/,QWidget *parent/*=0*/,int defValue/*=0*/) : StringOption (_key,parent) { ed->setText(QString::number(defValue)); ed->setValidator(new QIntValidator(ed));}/** default destructor */IntOption::~IntOption() {}} // namespace gui

⌨️ 快捷键说明

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