?? 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 + -