KUtils
Public Member Functions |
Static Public Member Functions |
Protected Member Functions |
List of all members
KPrintPreview Class Reference
#include <kprintpreview.h>
Inheritance diagram for KPrintPreview:

Public Member Functions | |
KPrintPreview (QPrinter *printer, QWidget *parent=0) | |
virtual | ~KPrintPreview () |
Static Public Member Functions | |
static bool | isAvailable () |
Protected Member Functions | |
void | showEvent (QShowEvent *event) |
Detailed Description
KPrintPreview provides a print preview dialog.
Use it like this:
* QPrinter printer;
* KPrintPreview preview(&printer);
* doPrint(printer); // draws to the QPrinter
* preview.exec();
*
Definition at line 41 of file kprintpreview.h.
Constructor & Destructor Documentation
|
explicit |
Create a KPrintPreview object.
This will change the settings on the QPrinter, so you should not re-use the QPrinter object for printing normally.
- Parameters
-
printer pointer to a QPrinter to configure for print preview parent pointer to the parent widget for the dialog
Definition at line 131 of file kprintpreview.cpp.
|
virtual |
Definition at line 151 of file kprintpreview.cpp.
Member Function Documentation
|
static |
Returns true if the print preview system is available.
- Since
- KDE 4.5
Definition at line 168 of file kprintpreview.cpp.
|
protected |
Definition at line 156 of file kprintpreview.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Aug 9 2019 00:47:09 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Aug 9 2019 00:47:09 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.