| 1 | #include "filecmprulewin.h" |
| 2 | |
| 3 | FileCmpRuleWin::FileCmpRuleWin(int mode, bool blankMath, int equalRato,QWidget *parent) |
| 4 | : QWidget(parent) |
| 5 | { |
| 6 | ui.setupUi(this); |
| 7 | |
| 8 | if (mode == 0) |
| 9 | { |
| 10 | ui.radioButtonDefault->setChecked(true); |
| 11 | } |
| 12 | else if(mode == 1) |
| 13 | { |
| 14 | ui.radioButtonIgnoreBackWhite->setChecked(true); |
| 15 | } |
| 16 | else if (mode == 2) |
| 17 | { |
| 18 | ui.radioButtonIgnoreAllWhite->setChecked(true); |
| 19 | } |
| 20 | |
| 21 | ui.checkBoxBlankMatch->setChecked(blankMath); |
| 22 | |
| 23 | int index = 0; |
| 24 | |
| 25 | if (equalRato == 70) |
| 26 | { |
| 27 | index = 1; |
| 28 | } |
| 29 | else if (equalRato == 90) |
| 30 | { |
| 31 | index = 2; |
| 32 | } |
| 33 | |
| 34 | ui.comboBoxEqualRato->setCurrentIndex(index); |
| 35 | } |
| 36 | |
| 37 | FileCmpRuleWin::~FileCmpRuleWin() |
| 38 | { |
nothing calls this directly
no outgoing calls
no test coverage detected