Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtPrintSupport/qprintdialog.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QPRINTDIALOG_H
0005 #define QPRINTDIALOG_H
0006 
0007 #include <QtPrintSupport/qtprintsupportglobal.h>
0008 
0009 #include <QtPrintSupport/qabstractprintdialog.h>
0010 
0011 QT_REQUIRE_CONFIG(printdialog);
0012 
0013 QT_BEGIN_NAMESPACE
0014 
0015 class QPrintDialogPrivate;
0016 class QPushButton;
0017 class QPrinter;
0018 
0019 class Q_PRINTSUPPORT_EXPORT QPrintDialog : public QAbstractPrintDialog
0020 {
0021     Q_OBJECT
0022     Q_DECLARE_PRIVATE(QPrintDialog)
0023     Q_PROPERTY(PrintDialogOptions options READ options WRITE setOptions)
0024 
0025 public:
0026     explicit QPrintDialog(QPrinter *printer, QWidget *parent = nullptr);
0027     explicit QPrintDialog(QWidget *parent = nullptr);
0028     ~QPrintDialog();
0029 
0030     int exec() override;
0031 #if defined (Q_OS_UNIX) && !defined(Q_OS_MAC)
0032     virtual void accept() override;
0033 #endif
0034     void done(int result) override;
0035 
0036     void setOption(PrintDialogOption option, bool on = true);
0037     bool testOption(PrintDialogOption option) const;
0038     void setOptions(PrintDialogOptions options);
0039     PrintDialogOptions options() const;
0040 
0041 #if defined(Q_OS_UNIX) || defined(Q_OS_WIN)
0042     void setVisible(bool visible) override;
0043 #endif
0044 
0045     using QDialog::open;
0046     void open(QObject *receiver, const char *member);
0047 
0048 #ifdef Q_QDOC
0049     QPrinter *printer();
0050 #endif
0051 
0052     using QDialog::accepted;
0053 
0054 Q_SIGNALS:
0055     void accepted(QPrinter *printer);
0056 
0057 private:
0058 #if defined (Q_OS_UNIX) && !defined(Q_OS_MAC)
0059     Q_PRIVATE_SLOT(d_func(), void _q_togglePageSetCombo(bool))
0060     Q_PRIVATE_SLOT(d_func(), void _q_collapseOrExpandDialog())
0061 #if QT_CONFIG(messagebox)
0062     Q_PRIVATE_SLOT(d_func(), void _q_checkFields())
0063 #endif // QT_CONFIG(messagebox)
0064     friend class QUnixPrintWidget;
0065 # endif // Q_OS_UNIX
0066 };
0067 
0068 QT_END_NAMESPACE
0069 
0070 #endif // QPRINTDIALOG_H