MessageViewer::PrintMessage Class
The PrintMessage class Author: Laurent Montel <montel@kde.org>. More...
| Header: | #include <MessageViewer/PrintMessage> |
| CMake: | find_package(KPim6MessageViewer REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::MessageViewer) |
| Inherits: | QObject |
Public Functions
| PrintMessage(QObject *parent = nullptr) | |
| virtual | ~PrintMessage() override |
| QString | documentName() const |
| QWidget * | parentWidget() const |
| void | print() |
| void | printPreview() |
| void | setDocumentName(const QString &name) |
| void | setParentWidget(QWidget *newParentWidget) |
| void | setView(QWebEngineView *view) |
Signals
| void | printingFinished() |
Detailed Description
Member Function Documentation
[explicit] PrintMessage::PrintMessage(QObject *parent = nullptr)
Constructs a PrintMessage object with the given parent.
[override virtual noexcept] PrintMessage::~PrintMessage()
Destroys the PrintMessage object.
QString PrintMessage::documentName() const
Returns the document name.
See also setDocumentName().
QWidget *PrintMessage::parentWidget() const
Returns the parent widget for the print dialog.
See also setParentWidget().
void PrintMessage::print()
Prints the document.
void PrintMessage::printPreview()
Shows a print preview of the document.
[signal] void PrintMessage::printingFinished()
Emitted when printing has finished.
void PrintMessage::setDocumentName(const QString &name)
Sets the document name for printing.
See also documentName().
void PrintMessage::setParentWidget(QWidget *newParentWidget)
Sets the parent widget for the print dialog.
See also parentWidget().
void PrintMessage::setView(QWebEngineView *view)
Sets the web engine view to print.