1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPAGESETUPDIALOG_P_H
5#define QPAGESETUPDIALOG_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// to version without notice, or even be removed.
14//
15// We mean it.
16//
17//
18
19#include <QtPrintSupport/private/qtprintsupportglobal_p.h>
20
21#include "private/qdialog_p.h"
22
23#include "qbytearray.h"
24#include "qpagesetupdialog.h"
25#include "qpointer.h"
26
27QT_REQUIRE_CONFIG(printdialog);
28
29QT_BEGIN_NAMESPACE
30
31class QPrinter;
32
33class QPageSetupDialogPrivate : public QDialogPrivate
34{
35 Q_DECLARE_PUBLIC(QPageSetupDialog)
36
37public:
38 explicit QPageSetupDialogPrivate(QPrinter *printer);
39
40 void setPrinter(QPrinter *newPrinter);
41
42 QPrinter *printer;
43 bool ownsPrinter;
44 QPointer<QObject> receiverToDisconnectOnClose;
45 QByteArray memberToDisconnectOnClose;
46};
47
48QT_END_NAMESPACE
49
50#endif // QPAGESETUPDIALOG_P_H
51

source code of qtbase/src/printsupport/dialogs/qpagesetupdialog_p.h