File indexing completed on 2023-05-30 10:45:27
0001 /* 0002 SPDX-FileCopyrightText: 2010 Peter Hedlund <peter.hedlund@kdemail.net> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef KWQTUTORFLASHCARD_H 0007 #define KWQTUTORFLASHCARD_H 0008 0009 #include <QCloseEvent> 0010 #include <QLabel> 0011 #include <QVBoxLayout> 0012 0013 #include "kwqcardview.h" 0014 0015 class KWQTutorFlashCard : public QWidget 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 explicit KWQTutorFlashCard(QWidget* parent = nullptr); 0021 void init(); 0022 /* reimplemented func to save flashcard geometry before closing */ 0023 void closeEvent (QCloseEvent* event) override; 0024 void setText(const QString &); 0025 0026 private: 0027 QVBoxLayout* m_cardLayout; 0028 KWQCardView* m_card; 0029 QLabel* m_label; 0030 QString m_text; 0031 }; 0032 0033 #endif // KWQTUTORFLASHCARD_H