Qt 4.8
Public Functions | Protected Variables | List of all members
QCocoaPageLayoutDelegate Class Reference
Inheritance diagram for QCocoaPageLayoutDelegate:

Public Functions

(id) - initWithMacPrintEngine:
 
(void) - pageLayoutDidEnd:returnCode:contextInfo:
 

Protected Variables

QMacPrintEnginePrivatepe
 

Detailed Description

Definition at line 55 of file qpagesetupdialog_mac.mm.

Functions

◆ initWithMacPrintEngine:()

- (id) initWithMacPrintEngine: (QMacPrintEnginePrivate *)  printEngine

Definition at line 64 of file qpagesetupdialog_mac.mm.

64  :(QMacPrintEnginePrivate *)printEngine
65 {
66  self = [super init];
67  if (self) {
68  pe = printEngine;
69  }
70  return self;
71 
72 }
QMacPrintEnginePrivate * pe

◆ pageLayoutDidEnd:returnCode:contextInfo:()

- (void) pageLayoutDidEnd: (NSPageLayout *)  pageLayout
returnCode: (int)  returnCode
contextInfo: (void *)  contextInfo 

Definition at line 73 of file qpagesetupdialog_mac.mm.

73  :(NSPageLayout *)pageLayout
74  returnCode:(int)returnCode contextInfo:(void *)contextInfo
75 {
76  Q_UNUSED(pageLayout);
77  QPageSetupDialog *dialog = static_cast<QPageSetupDialog *>(contextInfo);
78  if (returnCode == NSOKButton) {
79  PMRect paperRect;
80  PMGetUnadjustedPaperRect(pe->format, &paperRect);
81  pe->customSize = QSizeF(paperRect.right - paperRect.left,
82  paperRect.bottom - paperRect.top);
83  }
84  dialog->done((returnCode == NSOKButton) ? QDialog::Accepted : QDialog::Rejected);
85 }
The QSizeF class defines the size of a two-dimensional object using floating point precision...
Definition: qsize.h:202
void done(int result)
Reimplemented Function
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer...
QMacPrintEnginePrivate * pe
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

Properties

◆ pe

- (QMacPrintEnginePrivate*) pe
protected

Definition at line 56 of file qpagesetupdialog_mac.mm.


The documentation for this class was generated from the following file: