Translations:Development/Tutorials/Physical Simulation/102/en
FallingBall::FallingBall(QWidget *parent) : KXmlGuiWindow(parent) {
master = new QWidget(); xyPlot = new KPlotWidget(); logic = new BallLogic(); ballGraph = new BallGraph(logic, xyPlot); QHBoxLayout *layout = new QHBoxLayout; layout->addWidget(ballGraph); layout->addWidget(xyPlot); master->setLayout(layout); setCentralWidget(master); setupGUI();