File indexing completed on 2023-05-30 10:45:27

0001 /*
0002     SPDX-FileCopyrightText: 2003-2010 Peter Hedlund <peter.hedlund@kdemail.net>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef MULTIPLEVIEW_H
0007 #define MULTIPLEVIEW_H
0008 
0009 #include "ui_multipleviewbase.h"
0010 
0011 #include <KActionCollection>
0012 #include "kwqquizview.h"
0013 
0014 class QActionGroup;
0015 class QButtonGroup;
0016 
0017 /**
0018 @author Peter Hedlund
0019 */
0020 class MultipleView : public KWQQuizView, public Ui::MultipleViewBase
0021 {
0022 Q_OBJECT
0023 public:
0024     explicit MultipleView(QWidget *parent, KActionCollection *actionCollection);
0025     void init() override;
0026 
0027 public Q_SLOTS:
0028     void slotCheck() override;
0029     void slotChoiceClicked(int );
0030     void slotChoiceActionTriggered(QAction *);
0031     void slotApplySettings() override;
0032 
0033 private:
0034     QActionGroup *m_choicesActions;
0035     QButtonGroup *m_choicesButtons;
0036     QStringList m_choices;
0037 
0038     void showQuestion();
0039 };
0040 
0041 #endif