aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets/ProjectDescriptionPage.h
blob: 8387d3fb093d2fdc19f12777d5287953c6c792b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <QTextBrowser>

#include "QObjectPtr.h"

QT_BEGIN_NAMESPACE
class VariableSizedImageObject;
QT_END_NAMESPACE

/** This subclasses QTextBrowser to provide additional capabilities
 *  to it, like allowing for images to be shown.
 */
class ProjectDescriptionPage final : public QTextBrowser {
    Q_OBJECT

   public:
    ProjectDescriptionPage(QWidget* parent = nullptr);

    void setMetaEntry(QString entry);

   private:
    shared_qobject_ptr<VariableSizedImageObject> m_image_text_object;
};