Commit 1be34bff authored by Laurent Montel's avatar Laurent Montel 😁

Enable/disable print support

parent 049af87b
......@@ -658,7 +658,7 @@ bool SieveEditorMainWidget::printSupportEnabled() const
if (w) {
SieveEditorPageWidget *page = qobject_cast<SieveEditorPageWidget *>(w);
if (page) {
return true;
return page->printSupportEnabled();
}
}
return false;
......
......@@ -334,6 +334,11 @@ void SieveEditorPageWidget::printPreview()
mSieveEditorWidget->printPreview();
}
bool SieveEditorPageWidget::printSupportEnabled()
{
return mSieveEditorWidget->printSupportEnabled();
}
void SieveEditorPageWidget::zoomReset()
{
mSieveEditorWidget->zoomReset();
......
......@@ -84,6 +84,7 @@ public:
bool isWordWrap() const;
void print();
void printPreview();
bool printSupportEnabled();
Q_SIGNALS:
void refreshList();
void scriptModified(bool, SieveEditorPageWidget *);
......
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