Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qabstractprintdialog_p.h
Go to the documentation of this file.
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 QABSTRACTPRINTDIALOG_P_H
5#define QABSTRACTPRINTDIALOG_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// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtPrintSupport/private/qtprintsupportglobal_p.h>
19
20#include "private/qdialog_p.h"
21#include "QtPrintSupport/qabstractprintdialog.h"
22
23#include <QtCore/qpointer.h>
24
25QT_REQUIRE_CONFIG(printdialog);
26
28
29class QPrinter;
30class QPrinterPrivate;
31
33{
34 Q_DECLARE_PUBLIC(QAbstractPrintDialog)
35
36public:
39 , options(QAbstractPrintDialog::PrintToFile | QAbstractPrintDialog::PrintPageRange |
40 QAbstractPrintDialog::PrintCollateCopies | QAbstractPrintDialog::PrintShowPageSize),
41 minPage(0), maxPage(INT_MAX), ownsPrinter(false)
42 {
43 }
44
47 QPointer<QObject> receiverToDisconnectOnClose;
49
50 QAbstractPrintDialog::PrintDialogOptions options;
51
52 virtual void setTabs(const QList<QWidget *> &) {}
53 void setPrinter(QPrinter *newPrinter);
56
58};
59
61
62#endif // QABSTRACTPRINTDIALOG_P_H
QAbstractPrintDialog::PrintDialogOptions options
QPointer< QObject > receiverToDisconnectOnClose
void setPrinter(QPrinter *newPrinter)
virtual void setTabs(const QList< QWidget * > &)
The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure pri...
\inmodule QtCore
Definition qbytearray.h:57
\reentrant
Definition qprinter.h:28
Combined button and popup list for selecting options.
#define QT_REQUIRE_CONFIG(feature)
QObject::connect nullptr