Commit 4a5277b6 authored by Laurent Montel's avatar Laurent Montel 😁

Add signal to open in browser

parent 1ccae367
......@@ -34,7 +34,6 @@ WebEnginePrintMessageBox::WebEnginePrintMessageBox(QWidget *parent)
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
//TODO add more.
QLabel *lab = new QLabel(i18n("Printing WebEngine is limited for the moment."), this);
lab->setObjectName(QStringLiteral("webengineprintmessageboxlabel"));
mainLayout->addWidget(lab);
......@@ -83,8 +82,7 @@ void WebEnginePrintMessageBox::slotOpenInBrowser()
void WebEnginePrintMessageBox::slotExportHtmlPageSuccess(const QString &filename)
{
//TODO delete file
//TODO open browser
Q_EMIT openInBrowser(filename);
accept();
}
......
......@@ -35,6 +35,7 @@ public:
Q_SIGNALS:
void openPrintPreview();
void openInBrowser(const QString &fileName);
private Q_SLOTS:
void slotExportHtmlPageFailed();
......
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