QHBoxLayout *hbox_question_lang = new QHBoxLayout();
QHBoxLayout *hbox_answer_lang = new QHBoxLayout();
QVBoxLayout *vbox_label = new QVBoxLayout();
+ QHBoxLayout *hbox_buttons = new QHBoxLayout();
+ QPushButton *button = new QPushButton("Apply");
+ hbox_buttons->addWidget(button);
+ connect(button, SIGNAL(clicked(bool)), this, SLOT(slotInit(bool)));
bgroup_lesson = new QButtonGroup();
bgroup_question_lang = new QButtonGroup();
vbox->addLayout(hbox_less);
vbox->addLayout(hbox_question_lang);
vbox->addLayout(hbox_answer_lang);
+ vbox->addLayout(hbox_buttons);
vbox->addLayout(vbox_label);
setLayout(vbox);
if(buttonID == CorrectID){
qDebug() << "\\o/ correct answer...";
- slotInit();
+ slotInit(1);
return;
}
else{
}
-void TinyVocTrainer::slotInit(){
+void TinyVocTrainer::slotInit(bool clicked){
+
+ Q_UNUSED(clicked);
choiceList.clear();
for (int i=0; i < 3; ++i){
void slotAnswer1(bool clicked = 0);
void slotAnswer2(bool clicked = 0);
void slotAnswer3(bool clicked = 0);
- void slotInit();
+ void slotInit(bool clicked = 0);
};