Qt 4.8
Classes | Functions
qprintdialog_mac.mm File Reference
#include <private/qt_mac_p.h>
#include <qhash.h>
#include <qprintdialog.h>
#include <private/qapplication_p.h>
#include <private/qabstractprintdialog_p.h>
#include <private/qprintengine_mac_p.h>
#include "moc_qprintdialog.cpp"

Go to the source code of this file.

Classes

class  QPrintDialogPrivate
 

Functions

void macStartInterceptWindowTitle (QWidget *window)
 
void macStopInterceptWindowTitle ()
 
static bool warnIfNotNative (QPrinter *printer)
 

Function Documentation

◆ macStartInterceptWindowTitle()

void macStartInterceptWindowTitle ( QWidget window)

Definition at line 185 of file qnspanelproxy_mac.mm.

Referenced by QPrintDialogPrivate::closeCarbonPrintPanel().

186 {
189  [NSWindow class],
190  @selector(setTitle:),
192  @selector(setTitle:),
193  @selector(qt_fakeSetTitle:));
194 }
static QWidget * currentWindow
NSWindow * window
void qt_cocoa_change_implementation(Class baseClass, SEL originalSel, Class proxyClass, SEL replacementSel, SEL backupSel)
#define QT_MANGLE_NAMESPACE(name)
Definition: qglobal.h:106

◆ macStopInterceptWindowTitle()

void macStopInterceptWindowTitle ( )

Definition at line 199 of file qnspanelproxy_mac.mm.

Referenced by QPrintDialogPrivate::closeCarbonPrintPanel().

200 {
201  currentWindow = 0;
203  [NSWindow class],
204  @selector(setTitle:),
205  @selector(qt_fakeSetTitle:));
206 }
static QWidget * currentWindow
void qt_cocoa_change_back_implementation(Class baseClass, SEL originalSel, SEL backupSel)

◆ warnIfNotNative()

static bool warnIfNotNative ( QPrinter printer)
static

Definition at line 340 of file qprintdialog_mac.mm.

Referenced by QPrintDialog::exec(), and QPrintDialog::QPrintDialog().

341 {
342  if (printer->outputFormat() != QPrinter::NativeFormat) {
343  qWarning("QPrintDialog: Cannot be used on non-native printers");
344  return false;
345  }
346  return true;
347 }
OutputFormat outputFormat() const
Returns the output format for this printer.
Definition: qprinter.cpp:813
Q_CORE_EXPORT void qWarning(const char *,...)