Commit 310fc1c5 authored by Laurent Montel's avatar Laurent Montel 😁

Add label for page

parent 9cd3d952
......@@ -16,13 +16,17 @@
*/
#include "printpreviewpageviewer.h"
#include <QLabel>
using namespace WebEngineViewer;
PrintPreviewPageViewer::PrintPreviewPageViewer(QWidget *parent)
: QScrollArea(parent)
{
mImage = new QLabel(this);
mImage->setObjectName(QStringLiteral("page"));
mImage->resize(0, 0);
setWidget(mImage);
}
PrintPreviewPageViewer::~PrintPreviewPageViewer()
......
......@@ -19,6 +19,8 @@
#define PRINTPREVIEWPAGEVIEWER_H
#include <QScrollArea>
class QLabel;
namespace WebEngineViewer
{
class PrintPreviewPageViewer : public QScrollArea
......@@ -27,6 +29,8 @@ class PrintPreviewPageViewer : public QScrollArea
public:
explicit PrintPreviewPageViewer(QWidget *parent = Q_NULLPTR);
~PrintPreviewPageViewer();
private:
QLabel *mImage;
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment