blob: c7e79a170b367b72be4a14f03ee5910b4e772f11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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();
}
|