Advertisement
Guest User

Jan Minář

a guest
Jun 4th, 2010
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. Quiz::Quiz(QWidget *parent)
  2.     : QWidget(parent)
  3. {
  4.     /*
  5.      * Make sure the questions are laid out nicely
  6.      */
  7.     QVBoxLayout *myLayout = new QVBoxLayout();
  8.     setLayout(myLayout);
  9.  
  10.     /*
  11.      * Add the questions
  12.      */
  13.     addQuestions();
  14.  
  15.     /*
  16.      * Add stretchable vertical spacer at the bottom
  17.      */
  18.     // XXX Why is the cast necessary?!
  19.     myLayout->addStretch();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement