MCPcopy Create free account
hub / github.com/KDAB/KDChart / MainWindow

Method MainWindow

examples/Widget/Advanced/mainwindow.cpp:20–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18using namespace KDChart;
19
20MainWindow::MainWindow(QWidget *parent)
21 : QWidget(parent)
22{
23 setupUi(this);
24
25 auto *chartLayout = new QHBoxLayout(chartFrame);
26 widget = new Widget(chartFrame);
27 chartLayout->addWidget(widget);
28
29 typeSelector->setCurrentIndex(1); // we start by LineDiagram
30
31 connect(typeSelector, SIGNAL(activated(int)), SLOT(changeType()));
32
33 connect(btnAddDataset, SIGNAL(clicked()), SLOT(addDataset()));
34
35 connect(leadingSelector, SIGNAL(valueChanged(int)),
36 this, SLOT(changeLeading(int)));
37}
38
39void MainWindow::changeType()
40{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected