aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets/ProjectDescriptionPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/ui/widgets/ProjectDescriptionPage.h')
-rw-r--r--launcher/ui/widgets/ProjectDescriptionPage.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/launcher/ui/widgets/ProjectDescriptionPage.h b/launcher/ui/widgets/ProjectDescriptionPage.h
new file mode 100644
index 00000000..8387d3fb
--- /dev/null
+++ b/launcher/ui/widgets/ProjectDescriptionPage.h
@@ -0,0 +1,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;
+};