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

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 QAVIEW_H
0007 #define QAVIEW_H
0008 
0009 #include "ui_qaviewbase.h"
0010 
0011 #include <KActionCollection>
0012 #include <phonon/MediaObject>
0013 #include <phonon/Path>
0014 #include <phonon/AudioOutput>
0015 #include <phonon/Global>
0016 #include "kwqquizview.h"
0017 
0018 
0019 /**
0020 @author Peter Hedlund
0021 */
0022 class QAView : public KWQQuizView, public Ui::QAViewBase
0023 {
0024 Q_OBJECT
0025 public:
0026     QAView(QWidget *parent, KActionCollection * actionCollection);
0027 
0028     void init() override;
0029 
0030 public Q_SLOTS:
0031     void slotCheck() override;
0032     void slotHint();
0033     void slotApplySettings() override;
0034     void slotSpecChar(const QChar &);
0035     void slotMarkLastCorrect();
0036 
0037 private:
0038     bool m_hintUsed;
0039 
0040     void showQuestion();
0041 };
0042 
0043 #endif