pollymc/launcher/ui/widgets/ProjectDescriptionPage.h
flow ea3be17220
feat: add widget for a text browser with image support
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-08 14:11:20 -03:00

25 lines
518 B
C++

#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;
};