2022-08-02 23:47:54 +05:30
|
|
|
#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);
|
|
|
|
}
|
2022-10-11 22:49:29 +05:30
|
|
|
|
|
|
|
void ProjectDescriptionPage::flush()
|
|
|
|
{
|
|
|
|
if (m_image_text_object)
|
|
|
|
m_image_text_object->flush();
|
|
|
|
}
|