1 Star 0 Fork 4

CodeTiger/Cppcheck

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
libraryaddfunctiondialog.cpp 693 Bytes
一键复制 编辑 原始数据 按行查看 历史
Daniel Marjamäki 提交于 2018-06-18 16:13 +08:00 . GUI: Rename private variable ui to mUi
#include "libraryaddfunctiondialog.h"
#include "ui_libraryaddfunctiondialog.h"
#include <QRegExp>
#include <QValidator>
LibraryAddFunctionDialog::LibraryAddFunctionDialog(QWidget *parent) :
QDialog(parent),
mUi(new Ui::LibraryAddFunctionDialog)
{
mUi->setupUi(this);
QRegExp rx(NAMES);
QValidator *validator = new QRegExpValidator(rx, this);
mUi->functionName->setValidator(validator);
}
LibraryAddFunctionDialog::~LibraryAddFunctionDialog()
{
delete mUi;
}
QString LibraryAddFunctionDialog::functionName() const
{
return mUi->functionName->text();
}
int LibraryAddFunctionDialog::numberOfArguments() const
{
return mUi->numberOfArguments->value();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/codepool/cppcheck.git
git@gitee.com:codepool/cppcheck.git
codepool
cppcheck
Cppcheck
master

搜索帮助