...
Code Block |
---|
#ifndef FINDDIALOG_H //estetään ,ettei otsikkotiedostoa ladata montaa kertaa #define FINDDIALOG_H #include <QDialog> #include <QLabel> class#include QCheckBox;<QCheckBox> class#include QLabel;<QLineEdit> class#include QLineEdit;<QPushButton> class#include QPushButton;<QHBoxLayout> class FindDialog : public QDialog { Q_OBJECT public: FindDialog(QWidget *parent = 0); signals: void findNext(const QString &str, Qt::CaseSensitivity cs); void findPrevious(const QString &str, Qt::CaseSensitivity cs); private slots: void findClicked(); void enableFindButton(const QString &text); private: QLabel *label; QLineEdit *lineEdit; QCheckBox *caseCheckBox; QCheckBox *backwardCheckBox; QPushButton *findButton; QPushButton *closeButton; }; #endif //define-maarittelyn loppu |
...