43 linhas
687 B
C++
43 linhas
687 B
C++
#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;
|
|
}
|
|
|
|
QByteArray PreviewResult::serialize() const
|
|
{
|
|
QByteArray result;
|
|
QDataStream stream{&result, QIODevice::WriteOnly};
|
|
stream << 0 << this->documentPath << this->page;
|
|
return result;
|
|
}
|