| 4 | #include <QMessageBox> |
| 5 | |
| 6 | FindCmpWin::FindCmpWin(RC_DIRECTION dir, QWidget *parent):QMainWindow(parent), m_editWidget(nullptr), m_isFindFirst(true), m_findHistory(nullptr) |
| 7 | { |
| 8 | ui.setupUi(this); |
| 9 | |
| 10 | m_BackwardDir = false; |
| 11 | m_matchWhole = false; |
| 12 | m_matchCase = false; |
| 13 | m_matchWrap = true; |
| 14 | m_searchMode = 1; |
| 15 | |
| 16 | if (dir == RC_LEFT) |
| 17 | { |
| 18 | ui.leftSearch->setChecked(true); |
| 19 | } |
| 20 | else |
| 21 | { |
| 22 | ui.rightSearch->setChecked(true); |
| 23 | } |
| 24 | |
| 25 | connect(ui.leftSearch, &QRadioButton::toggled, this, &FindCmpWin::slot_isSearchLeft); |
| 26 | |
| 27 | connect(ui.findModeRegularBt, &QRadioButton::toggled, this, &FindCmpWin::slot_findModeRegularBtChange); |
| 28 | } |
| 29 | |
| 30 | FindCmpWin::~FindCmpWin() |
| 31 | { |
nothing calls this directly
no outgoing calls
no test coverage detected