Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/widgets/reporttabimpl.cpp
Show All 23 Lines | |||||
24 | #include <daterangedlg.h> | 24 | #include <daterangedlg.h> | ||
25 | 25 | | |||
26 | #include "ui_reporttabgeneral.h" | 26 | #include "ui_reporttabgeneral.h" | ||
27 | #include "ui_reporttabrowcolpivot.h" | 27 | #include "ui_reporttabrowcolpivot.h" | ||
28 | #include "ui_reporttabrowcolquery.h" | 28 | #include "ui_reporttabrowcolquery.h" | ||
29 | #include "ui_reporttabchart.h" | 29 | #include "ui_reporttabchart.h" | ||
30 | #include "ui_reporttabrange.h" | 30 | #include "ui_reporttabrange.h" | ||
31 | #include "ui_reporttabcapitalgain.h" | 31 | #include "ui_reporttabcapitalgain.h" | ||
32 | #include "ui_reporttabperformance.h" | ||||
32 | #include <ui_daterangedlgdecl.h> | 33 | #include <ui_daterangedlgdecl.h> | ||
33 | 34 | | |||
34 | #include "mymoney/mymoneyreport.h" | 35 | #include "mymoney/mymoneyreport.h" | ||
35 | 36 | | |||
36 | ReportTabGeneral::ReportTabGeneral(QWidget *parent) | 37 | ReportTabGeneral::ReportTabGeneral(QWidget *parent) | ||
37 | : QWidget(parent) | 38 | : QWidget(parent) | ||
38 | { | 39 | { | ||
39 | ui = new Ui::ReportTabGeneral; | 40 | ui = new Ui::ReportTabGeneral; | ||
▲ Show 20 Lines • Show All 217 Lines • ▼ Show 20 Line(s) | 243 | void ReportTabRange::slotDataLockChanged(int index) { | |||
257 | } | 258 | } | ||
258 | } | 259 | } | ||
259 | 260 | | |||
260 | ReportTabCapitalGain::ReportTabCapitalGain(QWidget *parent) | 261 | ReportTabCapitalGain::ReportTabCapitalGain(QWidget *parent) | ||
261 | : QWidget(parent) | 262 | : QWidget(parent) | ||
262 | { | 263 | { | ||
263 | ui = new Ui::ReportTabCapitalGain; | 264 | ui = new Ui::ReportTabCapitalGain; | ||
264 | ui->setupUi(this); | 265 | ui->setupUi(this); | ||
266 | connect(ui->m_investmentSum, SIGNAL(currentIndexChanged(int)), this, SLOT(slotInvestmentSumChanged(int))); | ||||
265 | } | 267 | } | ||
266 | 268 | | |||
267 | ReportTabCapitalGain::~ReportTabCapitalGain() | 269 | ReportTabCapitalGain::~ReportTabCapitalGain() | ||
268 | { | 270 | { | ||
269 | delete ui; | 271 | delete ui; | ||
270 | } | 272 | } | ||
271 | 273 | | |||
274 | void ReportTabCapitalGain::slotInvestmentSumChanged(int index) { | ||||
275 | Q_UNUSED(index); | ||||
276 | if (ui->m_investmentSum->currentData() == MyMoneyReport::eSumOwned) { | ||||
277 | ui->m_settlementPeriod->setValue(0); | ||||
278 | ui->m_settlementPeriod->setEnabled(false); | ||||
279 | ui->m_showSTLTCapitalGains->setChecked(false); | ||||
280 | ui->m_showSTLTCapitalGains->setEnabled(false); | ||||
281 | ui->m_termSeparator->setEnabled(false); | ||||
282 | } else { | ||||
283 | ui->m_settlementPeriod->setEnabled(true); | ||||
284 | ui->m_showSTLTCapitalGains->setEnabled(true); | ||||
285 | ui->m_termSeparator->setEnabled(true); | ||||
286 | } | ||||
287 | } | ||||
288 | | ||||
289 | ReportTabPerformance::ReportTabPerformance(QWidget *parent) | ||||
290 | : QWidget(parent) | ||||
291 | { | ||||
292 | ui = new Ui::ReportTabPerformance; | ||||
293 | ui->setupUi(this); | ||||
294 | } | ||||
295 | | ||||
296 | ReportTabPerformance::~ReportTabPerformance() | ||||
297 | { | ||||
298 | delete ui; | ||||
299 | } |