Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef FAQWIDGET_H
#define FAQWIDGET_H
#include <QWidget>
#include <QLabel>
#include <QBoxLayout>
#include <QTextEdit>
#include <QStyle>
#include "CustomLineHeightLabel.h"
struct FAQDataModel
{
QString text;
QString aboutText;
};
class FAQWidget: public QWidget
{
Q_OBJECT
public:
/// Widget constructor.
/// @param model Data from model with text.
/// @param parent
FAQWidget(const FAQDataModel &model, QWidget *parent = nullptr);
protected:
/// Expands and closes the list, changes the settings for the style.
/// @param event
void mousePressEvent(QMouseEvent *event);
private:
//Right arrow icon
QLabel *m_lblIcon;
//Reference Information Description
CustomLineHeightLabel *m_lblHeader;
//Description of the problem
CustomLineHeightLabel *m_lblText;
//Line under the description
QLabel *m_lblBottomLine;
QHBoxLayout *m_topLayout;
QVBoxLayout *m_mainLayout;
};
#endif // FAQWIDGET_H