2022-01-03 22:54:22 +01:00
|
|
|
#include "previewresult.h"
|
|
|
|
PreviewResult::PreviewResult()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
PreviewResult::~PreviewResult()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget *PreviewResult::createPreviewWidget()
|
|
|
|
{
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool PreviewResult::hasPreview()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
PreviewResult::PreviewResult(QString documentPath, unsigned int page)
|
|
|
|
{
|
|
|
|
this->documentPath = documentPath;
|
|
|
|
this->page = page;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString PreviewResult::getDocumentPath() const
|
|
|
|
{
|
|
|
|
return this->documentPath;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int PreviewResult::getPage() const
|
|
|
|
{
|
|
|
|
return this->page;
|
|
|
|
}
|
2022-05-27 09:29:28 +02:00
|
|
|
|
|
|
|
QByteArray PreviewResult::serialize() const
|
|
|
|
{
|
|
|
|
QByteArray result;
|
|
|
|
QDataStream stream{&result, QIODevice::WriteOnly};
|
|
|
|
stream << 0 << this->documentPath << this->page;
|
|
|
|
return result;
|
|
|
|
}
|