45 #ifndef QT_NO_PRINTDIALOG 47 #include <QtCore/qcoreapplication.h> 48 #include <QtGui/qprinter.h> 72 d->setPrinter(printer);
84 d->setPrinter(printer);
113 qWarning(
"QPageSetupDialog: Cannot be used on non-native printers");
134 if (
d->receiverToDisconnectOnClose) {
136 d->receiverToDisconnectOnClose,
d->memberToDisconnectOnClose);
137 d->receiverToDisconnectOnClose = 0;
139 d->memberToDisconnectOnClose.clear();
145 #endif // QT_NO_PRINTDIALOG
QPrinter * printer()
Returns the printer that this page setup dialog is operating on.
#define QT_END_NAMESPACE
This macro expands to.
The QDialog class is the base class of dialog windows.
The QAbstractPageSetupDialog class provides a base for implementations of page setup dialogs...
QAbstractPageSetupDialog(QPrinter *printer, QWidget *parent=0)
Constructs the page setup dialog for the printer printer with parent as parent widget.
void setPrinter(QPrinter *newPrinter)
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
void done(int result)
Reimplemented Function
#define QT_BEGIN_NAMESPACE
This macro expands to.
OutputFormat outputFormat() const
Returns the output format for this printer.
The QPrinter class is a paint device that paints on a printer.
Q_CORE_EXPORT void qWarning(const char *,...)
const T * ptr(const T &t)
~QAbstractPageSetupDialog()
virtual void done(int)
Closes the dialog and sets its result code to r.
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
Disconnects signal in object sender from method in object receiver.
QObject * parent() const
Returns a pointer to the parent object.
int result() const
In general returns the modal dialog's result code, Accepted or Rejected.
void accepted()
This signal is emitted when the dialog has been accepted either by the user or by calling accept() or...