finddialog.h

来自「《C++ GUI Qt3编程》书中源码-第二章」· C头文件 代码 · 共 35 行

H
35
字号
#ifndef FINDDIALOG_H#define FINDDIALOG_H#include <qdialog.h>class QCheckBox;class QLabel;class QLineEdit;class QPushButton;class FindDialog : public QDialog{    Q_OBJECTpublic:    FindDialog(QWidget *parent = 0, const char *name = 0);signals:    void findNext(const QString &str, bool caseSensitive);    void findPrev(const QString &str, bool caseSensitive);private slots:    void findClicked();    void enableFindButton(const QString &text);private:    QLabel *label;    QLineEdit *lineEdit;    QCheckBox *caseCheckBox;    QCheckBox *backwardCheckBox;    QPushButton *findButton;    QPushButton *closeButton;};#endif

⌨️ 快捷键说明

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