KUtils
KPrintPreview Class Reference
#include <kprintpreview.h>
Inheritance diagram for KPrintPreview:

Static Public Member Functions | |
static bool | isAvailable () |
![]() | |
static bool | avoidArea (QWidget *widget, const QRect &area, int screen=-1) |
static void | centerOnScreen (QWidget *widget, int screen=-1) |
static int | groupSpacingHint () |
static QString | makeStandardCaption (const QString &userCaption, QWidget *window=0, CaptionFlags flags=HIGCompliantCaption) |
static int | marginHint () |
static void | resizeLayout (QLayout *lay, int margin, int spacing) |
static void | resizeLayout (QWidget *widget, int margin, int spacing) |
static void | setAllowEmbeddingInGraphicsView (bool allowEmbedding) |
static int | spacingHint () |
Protected Member Functions | |
void | showEvent (QShowEvent *event) |
![]() | |
KDialog (KDialogPrivate &dd, QWidget *parent, Qt::WindowFlags flags=0) | |
virtual void | closeEvent (QCloseEvent *e) |
virtual void | hideEvent (QHideEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
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-2013 The KDE developers.
Generated on Tue Jul 23 2013 22:01:51 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 22:01:51 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.