textfind.cpp 431 B

1234567891011121314151617181920212223242526272829
  1. #include "textfind.h"
  2. TextFind::TextFind(int dire, QWidget *parent): QWidget(parent)
  3. {
  4. ui.setupUi(this);
  5. }
  6. TextFind::~TextFind()
  7. {
  8. }
  9. void TextFind::slot_findPrev()
  10. {
  11. QString text = ui.textLineEdit->text();
  12. text = text.trimmed();
  13. emit signFindFile(0, text);
  14. }
  15. void TextFind::slot_findNext()
  16. {
  17. QString text = ui.textLineEdit->text();
  18. text = text.trimmed();
  19. emit signFindFile(1, text);
  20. }