Commit 539b5b90 authored by Laurent Montel's avatar Laurent Montel 😁

Start to implement print

parent 442dcfc1
......@@ -39,6 +39,7 @@ PrintPreviewDialog::PrintPreviewDialog(QWidget *parent)
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
QPushButton *printButton = new QPushButton;
printButton->setObjectName(QStringLiteral("printbutton"));
connect(printButton, &QPushButton::clicked, this, &PrintPreviewDialog::slotPrint);
buttonBox->addButton(printButton, QDialogButtonBox::ActionRole);
buttonBox->setObjectName(QStringLiteral("buttonbox"));
layout->addWidget(buttonBox);
......@@ -71,3 +72,10 @@ void PrintPreviewDialog::loadFile(const QString &path)
{
mPrintPreviewWidget->loadFile(path);
}
void PrintPreviewDialog::slotPrint()
{
//TODO select page ?
//mPrintPreviewWidget->print();
//TODO
}
......@@ -31,6 +31,9 @@ public:
~PrintPreviewDialog();
void loadFile(const QString &path);
private Q_SLOTS:
void slotPrint();
private:
void writeConfig();
void readConfig();
......
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