Translations:Development/Tutorials/Physical Simulation/32/en

From KDE TechBase

FallingBall::FallingBall(QWidget *parent) : KXmlGuiWindow(parent) {

   master = new QWidget();
   xyPlot = new KPlotWidget();
   QHBoxLayout *layout = new QHBoxLayout;
   layout->addWidget(xyPlot);
   master->setLayout(layout);
   setCentralWidget(master);
   setupGUI();