Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/gnc/import/kgncimportoptionsdlg.cpp
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Line(s) | 58 | { | |||
---|---|---|---|---|---|
70 | ui->checkSchedules->setChecked(false); | 70 | ui->checkSchedules->setChecked(false); | ||
71 | 71 | | |||
72 | buildCodecList(); // build list of codecs and insert into combo box | 72 | buildCodecList(); // build list of codecs and insert into combo box | ||
73 | 73 | | |||
74 | ui->buttonGroup4->setExclusive(false); | 74 | ui->buttonGroup4->setExclusive(false); | ||
75 | ui->checkDecode->setChecked(false); | 75 | ui->checkDecode->setChecked(false); | ||
76 | ui->comboDecode->setEnabled(false); | 76 | ui->comboDecode->setEnabled(false); | ||
77 | 77 | | |||
78 | ui->buttonGroup18->setExclusive(false); | 78 | ui->buttonTxNotesGroup->setId(ui->radioTxNotes1, 0); // use memo | ||
79 | ui->checkTxNotes->setChecked(false); | 79 | ui->buttonTxNotesGroup->setId(ui->radioTxNotes2, 1); // use notes | ||
80 | ui->buttonTxNotesGroup->setId(ui->radioTxNotes3, 2); // merge memo with notes | ||||
80 | 81 | | |||
81 | ui->buttonGroup3->setExclusive(false); | 82 | ui->buttonGroup3->setExclusive(false); | ||
82 | ui->checkDebugGeneral->setChecked(false); | 83 | ui->checkDebugGeneral->setChecked(false); | ||
83 | ui->checkDebugXML->setChecked(false); | 84 | ui->checkDebugXML->setChecked(false); | ||
84 | ui->checkAnonymize->setChecked(false); | 85 | ui->checkAnonymize->setChecked(false); | ||
85 | 86 | | |||
86 | q->connect(ui->checkDecode, &QAbstractButton::toggled, q, &KGncImportOptionsDlg::slotDecodeOptionChanged); | 87 | q->connect(ui->checkDecode, &QAbstractButton::toggled, q, &KGncImportOptionsDlg::slotDecodeOptionChanged); | ||
87 | q->connect(ui->buttonBox, &QDialogButtonBox::helpRequested, q, &KGncImportOptionsDlg::slotHelp); | 88 | q->connect(ui->buttonBox, &QDialogButtonBox::helpRequested, q, &KGncImportOptionsDlg::slotHelp); | ||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 155 | { | |||
155 | Q_D(const KGncImportOptionsDlg); | 156 | Q_D(const KGncImportOptionsDlg); | ||
156 | if (!d->ui->checkDecode->isChecked()) { | 157 | if (!d->ui->checkDecode->isChecked()) { | ||
157 | return nullptr; | 158 | return nullptr; | ||
158 | } else { | 159 | } else { | ||
159 | return (QTextCodec::codecForName(d->ui->comboDecode->currentText().toUtf8())); | 160 | return (QTextCodec::codecForName(d->ui->comboDecode->currentText().toUtf8())); | ||
160 | } | 161 | } | ||
161 | } | 162 | } | ||
162 | 163 | | |||
163 | bool KGncImportOptionsDlg::txNotesOption() const | 164 | int KGncImportOptionsDlg::txNotesOption() const | ||
164 | { | 165 | { | ||
165 | Q_D(const KGncImportOptionsDlg); | 166 | Q_D(const KGncImportOptionsDlg); | ||
166 | return (d->ui->checkTxNotes->isChecked()); | 167 | return (d->ui->buttonTxNotesGroup->checkedId()); | ||
167 | } | 168 | } | ||
168 | 169 | | |||
169 | bool KGncImportOptionsDlg::generalDebugOption() const | 170 | bool KGncImportOptionsDlg::generalDebugOption() const | ||
170 | { | 171 | { | ||
171 | Q_D(const KGncImportOptionsDlg); | 172 | Q_D(const KGncImportOptionsDlg); | ||
172 | return (d->ui->checkDebugGeneral->isChecked()); | 173 | return (d->ui->checkDebugGeneral->isChecked()); | ||
173 | } | 174 | } | ||
174 | 175 | | |||
Show All 16 Lines |