diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-10-19 14:28:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 14:28:29 +0200 |
commit | 4e08f282469071074f390d2767184560a4ece6bd (patch) | |
tree | 073c82787221001f3e04cb734cd05b6148911f44 /launcher/ui/widgets/ProjectDescriptionPage.cpp | |
parent | 46c57e120f50084b310879286a2774334b53d2af (diff) | |
parent | fda3f1352e203bc119f092e30b25356345342c18 (diff) | |
download | PrismLauncher-4e08f282469071074f390d2767184560a4ece6bd.tar.gz PrismLauncher-4e08f282469071074f390d2767184560a4ece6bd.tar.bz2 PrismLauncher-4e08f282469071074f390d2767184560a4ece6bd.zip |
Merge pull request #31 from flowln/who_needs_webview
Diffstat (limited to 'launcher/ui/widgets/ProjectDescriptionPage.cpp')
-rw-r--r-- | launcher/ui/widgets/ProjectDescriptionPage.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/launcher/ui/widgets/ProjectDescriptionPage.cpp b/launcher/ui/widgets/ProjectDescriptionPage.cpp new file mode 100644 index 00000000..c7e79a17 --- /dev/null +++ b/launcher/ui/widgets/ProjectDescriptionPage.cpp @@ -0,0 +1,23 @@ +#include "ProjectDescriptionPage.h" + +#include "VariableSizedImageObject.h" + +#include <QDebug> + +ProjectDescriptionPage::ProjectDescriptionPage(QWidget* parent) : QTextBrowser(parent), m_image_text_object(new VariableSizedImageObject) +{ + m_image_text_object->setParent(this); + document()->documentLayout()->registerHandler(QTextFormat::ImageObject, m_image_text_object.get()); +} + +void ProjectDescriptionPage::setMetaEntry(QString entry) +{ + if (m_image_text_object) + m_image_text_object->setMetaEntry(entry); +} + +void ProjectDescriptionPage::flush() +{ + if (m_image_text_object) + m_image_text_object->flush(); +} |