• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

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:
Inheritance graph
[legend]

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

KPrintPreview::KPrintPreview ( QPrinter *  printer,
QWidget *  parent = 0 
)
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
printerpointer to a QPrinter to configure for print preview
parentpointer to the parent widget for the dialog

Definition at line 131 of file kprintpreview.cpp.

KPrintPreview::~KPrintPreview ( )
virtual

Definition at line 151 of file kprintpreview.cpp.

Member Function Documentation

bool KPrintPreview::isAvailable ( )
static

Returns true if the print preview system is available.

Since
KDE 4.5

Definition at line 168 of file kprintpreview.cpp.

void KPrintPreview::showEvent ( QShowEvent *  event)
protected

Definition at line 156 of file kprintpreview.cpp.


The documentation for this class was generated from the following files:
  • kprintpreview.h
  • kprintpreview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KUtils

Skip menu "KUtils"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal