📄 finddialog.h
字号:
#ifndef FINDDIALOG_H
#define FINDDIALOG_H
#include <QtGui>
#include <QtSql>
#include "tableview.h"
class QTableView;
class QSqlTableMode;
class FindDialog : public QDialog
{
Q_OBJECT
public:
FindDialog(QWidget *parent = 0);
void setReplaceMode();
void setFindMode();
QPushButton *findButton;
QPushButton *findNextButton;
private slots:
void findAll();
void findNext();
bool findNext(QString strFind);
private:
void showEvent ( QShowEvent * event );
QLabel *label,*labelFind;
QLineEdit *lineEdit,*lineEditReplace;
QCheckBox *caseCheckBox;
QCheckBox *fromStartCheckBox;
QCheckBox *wholeWordsCheckBox;
QCheckBox *searchSelectionCheckBox;
QCheckBox *backwardCheckBox;
QDialogButtonBox *buttonBox;
QPushButton *moreButton;
QWidget *extension;
bool bReplace;
QTableView * tableView;
QSqlQueryModel *model;
int row;
int column;
QString preStr;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -