gotocelldialog.cpp
来自「c++ GUI Programming with QT4书中的源码」· C++ 代码 · 共 21 行
CPP
21 行
#include <QtGui>#include "gotocelldialog.h"GoToCellDialog::GoToCellDialog(QWidget *parent) : QDialog(parent){ setupUi(this); QRegExp regExp("[A-Za-z][1-9][0-9]{0,2}"); lineEdit->setValidator(new QRegExpValidator(regExp, this)); connect(okButton, SIGNAL(clicked()), this, SLOT(accept())); connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));}void GoToCellDialog::on_lineEdit_textChanged(){ okButton->setEnabled(lineEdit->hasAcceptableInput());}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?