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

Method MainWindow

examples/Grids/PolarGrid/mainwindow.cpp:27–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace KDChart;
26
27MainWindow::MainWindow(QWidget *parent)
28 : QWidget(parent)
29{
30 setupUi(this);
31
32 // instantiate the KD Chart classes
33 initKDChartClasses();
34
35 // insert the KDChart::Chart into Qt's layout
36 auto *chartLayout = new QHBoxLayout(chartFrame);
37 m_chart->setGlobalLeading(2, 2, 2, 2);
38 chartLayout->addWidget(m_chart);
39
40 // wire up the KD Chart classes
41 wireUpKDChartClasses();
42
43 // initialize the ItemModel and fill in some data
44 m_model.insertRows(0, 40);
45 m_model.insertColumns(0, 5);
46 setItemModelData();
47}
48
49void MainWindow::initKDChartClasses()
50{

Callers

nothing calls this directly

Calls 2

insertRowsMethod · 0.80
setGlobalLeadingMethod · 0.45

Tested by

no test coverage detected