| 24 | using namespace KDChart; |
| 25 | |
| 26 | MainWindow::MainWindow(QWidget *parent) |
| 27 | : QWidget(parent) |
| 28 | { |
| 29 | setupUi(this); |
| 30 | |
| 31 | auto *chartLayout = new QHBoxLayout(chartFrame); |
| 32 | m_chart = new Chart(); |
| 33 | chartLayout->addWidget(m_chart); |
| 34 | |
| 35 | m_model.loadFromCSV(":/data"); |
| 36 | |
| 37 | // Set up the diagram |
| 38 | m_bars = new BarDiagram(); |
| 39 | m_bars->setModel(&m_model); |
| 40 | |
| 41 | QPen pen(m_bars->pen()); |
| 42 | pen.setColor(Qt::darkGray); |
| 43 | pen.setWidth(1); |
| 44 | m_bars->setPen(pen); |
| 45 | m_chart->coordinatePlane()->replaceDiagram(m_bars); |
| 46 | m_chart->setGlobalLeadingTop(20); |
| 47 | |
| 48 | scopeCommonRB->setFocus(Qt::OtherFocusReason); |
| 49 | scopeCommonRB->setChecked(true); |
| 50 | paintValuesCB->setChecked(true); |
| 51 | } |
| 52 | |
| 53 | void MainWindow::on_scopeOneBarRB_toggled(bool checked) |
| 54 | { |
nothing calls this directly
no test coverage detected