/*
 * Module code.
 *
 * Generated by SIP 4.16.8
 *
 * Copyright (c) 2015 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtPrintSupport.h"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 29 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 35 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintengine.sip"
#include <qprintengine.h>
#line 38 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
#include <qabstractprintdialog.h>
#line 41 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 44 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

/* Define the strings used by this module. */
const char sipStrings_QtPrintSupport[] = {
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'P', 'r', 'i', 'n', 't', 'D', 'i', 'a', 'l', 'o', 'g', ':', ':', 'P', 'r', 'i', 'n', 't', 'D', 'i', 'a', 'l', 'o', 'g', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'P', 'r', 'i', 'n', 't', 'D', 'i', 'a', 'l', 'o', 'g', ':', ':', 'P', 'r', 'i', 'n', 't', 'D', 'i', 'a', 'l', 'o', 'g', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'P', 'r', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'K', 'e', 'y', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'P', 'a', 'g', 'e', 'd', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', ':', ':', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', '>', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'P', 'r', 'i', 'n', 't', 'D', 'i', 'a', 'l', 'o', 'g', ':', ':', 'P', 'r', 'i', 'n', 't', 'R', 'a', 'n', 'g', 'e', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'P', 'a', 'i', 'r', '<', 'Q', 'S', 't', 'r', 'i', 'n', 'g', ',', 'Q', 'S', 'i', 'z', 'e', 'F', '>', ' ', '>', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'P', 'r', 'e', 'v', 'i', 'e', 'w', 'W', 'i', 'd', 'g', 'e', 't', ':', ':', 'Z', 'o', 'o', 'm', 'M', 'o', 'd', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'P', 'r', 'e', 'v', 'i', 'e', 'w', 'W', 'i', 'd', 'g', 'e', 't', ':', ':', 'V', 'i', 'e', 'w', 'M', 'o', 'd', 'e', 0,
    'P', 'y', 'Q', 't', '5', '.', 'Q', 't', 'C', 'o', 'r', 'e', '.', 'p', 'y', 'q', 't', 'W', 'r', 'a', 'p', 'p', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'D', 'u', 'p', 'l', 'e', 'x', 'M', 'o', 'd', 'e', '>', 0,
    'P', 'P', 'K', '_', 'S', 'u', 'p', 'p', 'o', 'r', 't', 's', 'M', 'u', 'l', 't', 'i', 'p', 'l', 'e', 'C', 'o', 'p', 'i', 'e', 's', 0,
    's', 'e', 't', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'P', 'P', 'K', '_', 'S', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 's', 0,
    's', 'e', 't', 'L', 'a', 'n', 'd', 's', 'c', 'a', 'p', 'e', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'P', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'P', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'C', 'u', 's', 't', 'o', 'm', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 's', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'S', 'i', 'z', 'e', 's', 'W', 'i', 't', 'h', 'N', 'a', 'm', 'e', 's', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'E', 'm', 'b', 'e', 'd', 'd', 'i', 'n', 'g', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'F', 'a', 'c', 'i', 'n', 'g', 'P', 'a', 'g', 'e', 's', 'V', 'i', 'e', 'w', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'P', 'o', 'r', 't', 'r', 'a', 'i', 't', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'p', 'r', 'i', 'n', 't', 'e', 'r', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'D', 'o', 'u', 'b', 'l', 'e', 'S', 'i', 'd', 'e', 'd', 'P', 'r', 'i', 'n', 't', 'i', 'n', 'g', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'M', 'u', 'l', 't', 'i', 'p', 'l', 'e', 'C', 'o', 'p', 'i', 'e', 's', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'O', 'u', 't', 'p', 'u', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'S', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'S', 'i', 'n', 'g', 'l', 'e', 'P', 'a', 'g', 'e', 'V', 'i', 'e', 'w', 'M', 'o', 'd', 'e', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'N', 'a', 'm', 'e', 's', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'a', 'p', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'M', 'o', 'd', 'e', 0,
    'm', 'o', 'u', 's', 'e', 'D', 'o', 'u', 'b', 'l', 'e', 'C', 'l', 'i', 'c', 'k', 'E', 'v', 'e', 'n', 't', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'D', 'u', 'p', 'l', 'e', 'x', 'M', 'o', 'd', 'e', 's', 0,
    'f', 'o', 'n', 't', 'E', 'm', 'b', 'e', 'd', 'd', 'i', 'n', 'g', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'D', 'u', 'p', 'l', 'e', 'x', 'M', 'o', 'd', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'r', 'i', 'n', 't', 'R', 'a', 'n', 'g', 'e', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'P', 'r', 'i', 'n', 't', 'D', 'i', 'a', 'l', 'o', 'g', 0,
    'P', 'y', 'Q', 't', '5', '.', 'Q', 't', 'P', 'r', 'i', 'n', 't', 'S', 'u', 'p', 'p', 'o', 'r', 't', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'I', 'n', 'f', 'o', '>', 0,
    's', 'e', 't', 'A', 'l', 'l', 'P', 'a', 'g', 'e', 's', 'V', 'i', 'e', 'w', 'M', 'o', 'd', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'P', 'r', 'e', 'v', 'i', 'e', 'w', 'W', 'i', 'd', 'g', 'e', 't', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'P', 'r', 'e', 'v', 'i', 'e', 'w', 'D', 'i', 'a', 'l', 'o', 'g', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'P', 'a', 'p', 'e', 'r', 'S', 'i', 'z', 'e', 's', 0,
    'd', 'o', 'u', 'b', 'l', 'e', 'S', 'i', 'd', 'e', 'd', 'P', 'r', 'i', 'n', 't', 'i', 'n', 'g', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'C', 'o', 'l', 'o', 'r', 'M', 'o', 'd', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'a', 'g', 'e', 'O', 'r', 'd', 'e', 'r', 0,
    'P', 'P', 'K', '_', 'C', 'u', 's', 't', 'o', 'm', 'P', 'a', 'p', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'P', 'P', 'K', '_', 'W', 'i', 'n', 'd', 'o', 'w', 's', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'P', 'P', 'K', '_', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 's', 0,
    'P', 'P', 'K', '_', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'P', 'r', 'o', 'g', 'r', 'a', 'm', 0,
    'P', 'P', 'K', '_', 'O', 'u', 't', 'p', 'u', 't', 'F', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    'P', 'P', 'K', '_', 'N', 'u', 'm', 'b', 'e', 'r', 'O', 'f', 'C', 'o', 'p', 'i', 'e', 's', 0,
    'P', 'r', 'i', 'n', 't', 'C', 'o', 'l', 'l', 'a', 't', 'e', 'C', 'o', 'p', 'i', 'e', 's', 0,
    'f', 'o', 'c', 'u', 's', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'h', 'i', 'l', 'd', 0,
    'f', 'o', 'c', 'u', 's', 'N', 'e', 'x', 't', 'P', 'r', 'e', 'v', 'C', 'h', 'i', 'l', 'd', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'D', 'u', 'p', 'l', 'e', 'x', 'M', 'o', 'd', 'e', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'P', 'r', 'i', 'n', 't', 'e', 'r', 's', 0,
    's', 'e', 't', 'O', 'u', 't', 'p', 'u', 't', 'F', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    'P', 'r', 'i', 'n', 't', 'e', 'r', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    'P', 'P', 'K', '_', 'F', 'o', 'n', 't', 'E', 'm', 'b', 'e', 'd', 'd', 'i', 'n', 'g', 0,
    'P', 'P', 'K', '_', 'C', 'o', 'l', 'l', 'a', 't', 'e', 'C', 'o', 'p', 'i', 'e', 's', 0,
    'P', 'r', 'i', 'n', 't', 'S', 'h', 'o', 'w', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'd', 'e', 's', 't', 'r', 'o', 'y', 'S', 'u', 'b', 'W', 'i', 'n', 'd', 'o', 'w', 's', 0,
    'h', 'a', 's', 'H', 'e', 'i', 'g', 'h', 't', 'F', 'o', 'r', 'W', 'i', 'd', 't', 'h', 0,
    'm', 'o', 'u', 's', 'e', 'R', 'e', 'l', 'e', 'a', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'i', 's', 'S', 'i', 'g', 'n', 'a', 'l', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    's', 'e', 'n', 'd', 'e', 'r', 'S', 'i', 'g', 'n', 'a', 'l', 'I', 'n', 'd', 'e', 'x', 0,
    's', 'i', 'p', '.', 's', 'i', 'm', 'p', 'l', 'e', 'w', 'r', 'a', 'p', 'p', 'e', 'r', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', '>', 0,
    's', 'e', 't', 'C', 'o', 'l', 'l', 'a', 't', 'e', 'C', 'o', 'p', 'i', 'e', 's', 0,
    'S', 'c', 'r', 'e', 'e', 'n', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    'P', 'P', 'K', '_', 'Q', 'P', 'a', 'g', 'e', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'p', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 's', 0,
    'P', 'P', 'K', '_', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'N', 'a', 'm', 'e', 0,
    'Q', 'P', 'a', 'g', 'e', 'S', 'e', 't', 'u', 'p', 'D', 'i', 'a', 'l', 'o', 'g', 0,
    'P', 'r', 'i', 'n', 't', 'C', 'u', 'r', 'r', 'e', 'n', 't', 'P', 'a', 'g', 'e', 0,
    'd', 'e', 's', 't', 'r', 'o', 'y', 'O', 'l', 'd', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'i', 'n', 'i', 't', 'i', 'a', 'l', 'i', 'z', 'e', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'M', 'i', 'c', 'r', 'o', 'F', 'o', 'c', 'u', 's', 0,
    'c', 'o', 'n', 't', 'e', 'x', 't', 'M', 'e', 'n', 'u', 'E', 'v', 'e', 'n', 't', 0,
    'i', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'E', 'v', 'e', 'n', 't', 0,
    'i', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'Q', 'u', 'e', 'r', 'y', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'N', 'o', 't', 'i', 'f', 'y', 0,
    'F', 'a', 'c', 'i', 'n', 'g', 'P', 'a', 'g', 'e', 's', 'V', 'i', 'e', 'w', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'P', 'r', 'i', 'n', 't', 'P', 'r', 'o', 'g', 'r', 'a', 'm', 0,
    's', 'e', 't', 'O', 'u', 't', 'p', 'u', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'D', 'u', 'p', 'l', 'e', 'x', 'S', 'h', 'o', 'r', 't', 'S', 'i', 'd', 'e', 0,
    'L', 'a', 's', 't', 'P', 'a', 'p', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'P', 'P', 'K', '_', 'Q', 'P', 'a', 'g', 'e', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'g', 'e', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'P', 'P', 'K', '_', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'p', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'P', 'P', 'K', '_', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'S', 'i', 'z', 'e', 'H', 'i', 'n', 't', 0,
    'm', 'o', 'u', 's', 'e', 'P', 'r', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 0,
    'k', 'e', 'y', 'R', 'e', 'l', 'e', 'a', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'd', 'e', 'v', 'i', 'c', 'e', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'a', 's', 'p', 'e', 'c', 't', 'R', 'a', 't', 'i', 'o', 'M', 'o', 'd', 'e', 0,
    'p', 'r', 'e', 'v', 'i', 'e', 'w', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'S', 'i', 'n', 'g', 'l', 'e', 'P', 'a', 'g', 'e', 'V', 'i', 'e', 'w', 0,
    'p', 'a', 'i', 'n', 't', 'R', 'e', 'q', 'u', 'e', 's', 't', 'e', 'd', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'P', 'r', 'i', 'n', 't', 'e', 'r', 0,
    'g', 'e', 't', 'P', 'a', 'g', 'e', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    's', 'e', 't', 'P', 'a', 'p', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'o', 'u', 't', 'p', 'u', 't', 'F', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'D', 'u', 'p', 'l', 'e', 'x', 'L', 'o', 'n', 'g', 'S', 'i', 'd', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', ':', ':', 'U', 'n', 'i', 't', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'M', 'a', 'n', 'u', 'a', 'l', 0,
    'F', 'i', 'r', 's', 't', 'P', 'a', 'g', 'e', 'F', 'i', 'r', 's', 't', 0,
    'H', 'i', 'g', 'h', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    'P', 'P', 'K', '_', 'C', 'u', 's', 't', 'o', 'm', 'B', 'a', 's', 'e', 0,
    'P', 'P', 'K', '_', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    'P', 'r', 'i', 'n', 't', 'P', 'a', 'g', 'e', 'R', 'a', 'n', 'g', 'e', 0,
    'P', 'r', 'i', 'n', 't', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'f', 'o', 'c', 'u', 's', 'N', 'e', 'x', 't', 'C', 'h', 'i', 'l', 'd', 0,
    's', 'e', 't', 'C', 'u', 'r', 'r', 'e', 'n', 't', 'P', 'a', 'g', 'e', 0,
    'h', 'e', 'i', 'g', 'h', 't', 'F', 'o', 'r', 'W', 'i', 'd', 't', 'h', 0,
    'd', 'r', 'a', 'g', 'L', 'e', 'a', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'd', 'r', 'a', 'g', 'E', 'n', 't', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    'm', 'o', 'u', 's', 'e', 'M', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'P', 'r', 'e', 'v', 'i', 'e', 'w', 0,
    's', 'e', 't', 'Z', 'o', 'o', 'm', 'F', 'a', 'c', 't', 'o', 'r', 0,
    'c', 'o', 'l', 'l', 'a', 't', 'e', 'C', 'o', 'p', 'i', 'e', 's', 0,
    'M', 'a', 'x', 'P', 'a', 'g', 'e', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'L', 'a', 'r', 'g', 'e', 'C', 'a', 'p', 'a', 'c', 'i', 't', 'y', 0,
    'L', 'a', 's', 't', 'P', 'a', 'g', 'e', 'F', 'i', 'r', 's', 't', 0,
    'P', 'P', 'K', '_', 'Q', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'p', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'P', 'P', 'K', '_', 'C', 'o', 'p', 'y', 'C', 'o', 'u', 'n', 't', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'p', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'p', 'e', 'r', 'R', 'e', 'c', 't', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'g', 'e', 'O', 'r', 'd', 'e', 'r', 0,
    'P', 'P', 'K', '_', 'C', 'o', 'l', 'o', 'r', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 'T', 'a', 'b', 's', 0,
    's', 'e', 't', 'P', 'r', 'i', 'n', 't', 'R', 'a', 'n', 'g', 'e', 0,
    'c', 'h', 'a', 'n', 'g', 'e', 'd', 'S', 'i', 'g', 'n', 'a', 'l', 0,
    's', 'h', 'a', 'r', 'e', 'd', 'P', 'a', 'i', 'n', 't', 'e', 'r', 0,
    'd', 'e', 's', 't', 'r', 'o', 'y', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    't', 'h', 'r', 'e', 's', 'h', 'o', 'l', 'd', 'T', 'i', 'm', 'e', 0,
    'd', 'r', 'a', 'g', 'M', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'k', 'e', 'y', 'P', 'r', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 0,
    'f', 'o', 'c', 'u', 's', 'O', 'u', 't', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 'M', 'M', 0,
    't', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'M', 'o', 'd', 'e', 0,
    'A', 'l', 'l', 'P', 'a', 'g', 'e', 's', 'V', 'i', 'e', 'w', 0,
    'm', 'a', 'k', 'e', 'A', 'n', 'd', 'M', 'o', 'd', 'e', 'l', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', 'I', 'n', 'f', 'o', 0,
    's', 'e', 't', 'P', 'a', 'p', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'C', 'o', 'p', 'y', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'C', 'o', 'l', 'o', 'r', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'O', 'r', 'd', 'e', 'r', 0,
    's', 'e', 't', 'P', 'a', 'p', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'p', 'r', 'i', 'n', 't', 'P', 'r', 'o', 'g', 'r', 'a', 'm', 0,
    'o', 'u', 't', 'p', 'u', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'C', 'u', 's', 't', 'o', 'm', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'p', 'r', 'i', 'n', 't', 'e', 'r', 'S', 't', 'a', 't', 'e', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'P', 'P', 'K', '_', 'P', 'a', 'g', 'e', 'R', 'e', 'c', 't', 0,
    'P', 'P', 'K', '_', 'F', 'u', 'l', 'l', 'P', 'a', 'g', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'D', 'i', 'a', 'l', 'o', 'g', 0,
    's', 'o', 'u', 'r', 'c', 'e', 'R', 'e', 'g', 'i', 'o', 'n', 0,
    't', 'a', 'r', 'g', 'e', 't', 'O', 'f', 'f', 's', 'e', 't', 0,
    'm', 'i', 'd', 'L', 'i', 'n', 'e', 'W', 'i', 'd', 't', 'h', 0,
    'f', 'o', 'c', 'u', 's', 'I', 'n', 'E', 'v', 'e', 'n', 't', 0,
    'b', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
    'N', 'a', 't', 'i', 'v', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'Z', 'o', 'o', 'm', 'M', 'o', 'd', 'e', 0,
    'p', 'r', 'i', 'n', 't', 'e', 'r', 'I', 'n', 'f', 'o', 0,
    'p', 'r', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 0,
    'p', 'a', 'p', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    's', 'e', 't', 'F', 'u', 'l', 'l', 'P', 'a', 'g', 'e', 0,
    'p', 'r', 'i', 'n', 't', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'D', 'e', 'v', 'i', 'c', 'e', 'P', 'i', 'x', 'e', 'l', 0,
    'L', 'a', 'r', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'S', 'm', 'a', 'l', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'P', 'P', 'K', '_', 'C', 'r', 'e', 'a', 't', 'o', 'r', 0,
    'P', 'r', 'i', 'n', 't', 'T', 'o', 'F', 'i', 'l', 'e', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'P', 'a', 'g', 'e', 0,
    'i', 'n', 'i', 't', 'P', 'a', 'i', 'n', 't', 'e', 'r', 0,
    'n', 'a', 't', 'i', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'a', 'c', 't', 'i', 'o', 'n', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'V', 'i', 'e', 'w', 'M', 'o', 'd', 'e', 0,
    'c', 'h', 'a', 'n', 'g', 'e', 'E', 'v', 'e', 'n', 't', 0,
    't', 'a', 'b', 'l', 'e', 't', 'E', 'v', 'e', 'n', 't', 0,
    'm', 'a', 't', 'c', 'h', 'P', 'o', 'l', 'i', 'c', 'y', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'r', 'e', 's', 'i', 'z', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'p', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 0,
    'c', 'u', 's', 't', 'o', 'm', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'e', 'v', 'e', 'n', 't', 'F', 'i', 'l', 't', 'e', 'r', 0,
    'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'i', 'o', 'n', 0,
    'o', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'f', 'i', 't', 'T', 'o', 'W', 'i', 'd', 't', 'h', 0,
    'z', 'o', 'o', 'm', 'F', 'a', 'c', 't', 'o', 'r', 0,
    'F', 'i', 't', 'T', 'o', 'W', 'i', 'd', 't', 'h', 0,
    'C', 'u', 's', 't', 'o', 'm', 'Z', 'o', 'o', 'm', 0,
    's', 'e', 't', 'E', 'n', 'g', 'i', 'n', 'e', 's', 0,
    's', 'e', 't', 'D', 'o', 'c', 'N', 'a', 'm', 'e', 0,
    'D', 'u', 'p', 'l', 'e', 'x', 'A', 'u', 't', 'o', 0,
    'D', 'u', 'p', 'l', 'e', 'x', 'N', 'o', 'n', 'e', 0,
    'F', 'o', 'r', 'm', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'P', 'P', 'K', '_', 'D', 'u', 'p', 'l', 'e', 'x', 0,
    'p', 'r', 'i', 'n', 't', 'R', 'a', 'n', 'g', 'e', 0,
    'e', 'n', 't', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    'l', 'e', 'a', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'c', 'o', 'n', 's', 't', 'r', 'a', 'i', 'n', 't', 0,
    'c', 'l', 'o', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'r', 'e', 'p', 'e', 'a', 't', 'T', 'i', 'm', 'e', 0,
    'w', 'h', 'e', 'e', 'l', 'E', 'v', 'e', 'n', 't', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 'S', 'p', 'a', 'n', 0,
    's', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    't', 'e', 's', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'C', 'r', 'e', 'a', 't', 'o', 'r', 0,
    'r', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    'M', 'i', 'l', 'l', 'i', 'm', 'e', 't', 'e', 'r', 0,
    's', 'e', 't', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'p', 'a', 'i', 'n', 't', 'E', 'v', 'e', 'n', 't', 0,
    'g', 'e', 'n', 'M', 'i', 'p', 'M', 'a', 'p', 's', 0,
    's', 'e', 't', 'V', 'i', 's', 'i', 'b', 'l', 'e', 0,
    'c', 'h', 'i', 'l', 'd', 'E', 'v', 'e', 'n', 't', 0,
    't', 'i', 'm', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    '_', '_', 'i', 'n', 'v', 'e', 'r', 't', '_', '_', 0,
    'F', 'i', 't', 'I', 'n', 'V', 'i', 'e', 'w', 0,
    'p', 'a', 'p', 'e', 'r', 'N', 'a', 'm', 'e', 0,
    'p', 'a', 'p', 'e', 'r', 'R', 'e', 'c', 't', 0,
    's', 'e', 't', 'D', 'u', 'p', 'l', 'e', 'x', 0,
    'c', 'o', 'p', 'y', 'C', 'o', 'u', 'n', 't', 0,
    'c', 'o', 'l', 'o', 'r', 'M', 'o', 'd', 'e', 0,
    'p', 'a', 'g', 'e', 'O', 'r', 'd', 'e', 'r', 0,
    'p', 'a', 'p', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'P', 'd', 'f', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'G', 'r', 'a', 'y', 'S', 'c', 'a', 'l', 'e', 0,
    's', 'e', 't', 'F', 'r', 'o', 'm', 'T', 'o', 0,
    's', 'e', 't', 'M', 'i', 'n', 'M', 'a', 'x', 0,
    'f', 'i', 't', 'I', 'n', 'V', 'i', 'e', 'w', 0,
    'd', 'r', 'o', 'p', 'E', 'v', 'e', 'n', 't', 0,
    'h', 'i', 'd', 'e', 'E', 'v', 'e', 'n', 't', 0,
    's', 'h', 'o', 'w', 'E', 'v', 'e', 'n', 't', 0,
    'm', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'o', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'L', 'a', 'n', 'd', 's', 'c', 'a', 'p', 'e', 0,
    's', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'l', 'i', 'n', 'e', 'W', 'i', 'd', 't', 'h', 0,
    'p', 'a', 'g', 'e', 'C', 'o', 'u', 'n', 't', 0,
    'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'a', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'r', 'e', 'c', 'e', 'i', 'v', 'e', 'r', 's', 0,
    'i', 's', 'D', 'e', 'f', 'a', 'u', 'l', 't', 0,
    'p', 'r', 'e', 'c', 'i', 's', 'i', 'o', 'n', 0,
    'z', 'o', 'o', 'm', 'M', 'o', 'd', 'e', 0,
    'i', 's', 'R', 'e', 'm', 'o', 't', 'e', 0,
    'p', 'a', 'g', 'e', 'R', 'e', 'c', 't', 0,
    'f', 'u', 'l', 'l', 'P', 'a', 'g', 'e', 0,
    'C', 'a', 's', 's', 'e', 't', 't', 'e', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 0,
    'Q', 'P', 'r', 'i', 'n', 't', 'e', 'r', 0,
    'f', 'r', 'o', 'm', 'P', 'a', 'g', 'e', 0,
    'A', 'l', 'l', 'P', 'a', 'g', 'e', 's', 0,
    'v', 'i', 'e', 'w', 'M', 'o', 'd', 'e', 0,
    's', 'h', 'o', 'r', 't', 'c', 'u', 't', 0,
    'u', 's', 'e', 'r', 'D', 'a', 't', 'a', 0,
    's', 'i', 'z', 'e', 'H', 'i', 'n', 't', 0,
    'f', 'i', 'l', 'l', 'R', 'u', 'l', 'e', 0,
    'P', 'o', 'r', 't', 'r', 'a', 'i', 't', 0,
    't', 'a', 'b', 'A', 'r', 'r', 'a', 'y', 0,
    't', 'a', 'b', 'S', 't', 'o', 'p', 's', 0,
    'n', 'a', 'm', 'e', 'T', 'y', 'p', 'e', 0,
    'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'l', 'o', 'c', 'a', 't', 'i', 'o', 'n', 0,
    'a', 'c', 'c', 'e', 'p', 't', 'e', 'd', 0,
    '_', '_', 'b', 'o', 'o', 'l', '_', '_', 0,
    '_', '_', 'i', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'a', 'n', 'd', '_', '_', 0,
    'd', 'o', 'c', 'N', 'a', 'm', 'e', 0,
    'A', 'b', 'o', 'r', 't', 'e', 'd', 0,
    'T', 'r', 'a', 'c', 't', 'o', 'r', 0,
    'm', 'a', 'x', 'P', 'a', 'g', 'e', 0,
    'm', 'i', 'n', 'P', 'a', 'g', 'e', 0,
    'O', 'n', 'l', 'y', 'O', 'n', 'e', 0,
    'z', 'o', 'o', 'm', 'O', 'u', 't', 0,
    'y', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'x', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'r', 'o', 'w', 'S', 'p', 'a', 'n', 0,
    'p', 'r', 'i', 'n', 't', 'e', 'r', 0,
    'e', 'x', 'p', 'o', 's', 'e', 'd', 0,
    'c', 'r', 'e', 'a', 't', 'o', 'r', 0,
    'n', 'e', 'w', 'P', 'a', 'g', 'e', 0,
    'b', 'u', 'f', 'f', 'e', 'r', 's', 0,
    's', 'o', 'u', 'r', 'c', 'e', 's', 0,
    'd', 'e', 's', 't', 'r', 'o', 'y', 0,
    'q', 'u', 'a', 'l', 'i', 't', 'y', 0,
    'd', 'e', 'v', 'T', 'y', 'p', 'e', 0,
    'f', 'i', 'l', 't', 'e', 'r', 's', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'o', 'p', 't', 'i', 'o', 'n', 's', 0,
    'i', 's', 'V', 'a', 'l', 'i', 'd', 0,
    '_', '_', 'a', 'n', 'd', '_', '_', 0,
    '_', '_', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'n', 't', '_', '_', 0,
    '_', '_', 'i', 'o', 'r', '_', '_', 0,
    'd', 'u', 'p', 'l', 'e', 'x', 0,
    't', 'o', 'P', 'a', 'g', 'e', 0,
    'M', 'i', 'd', 'd', 'l', 'e', 0,
    'z', 'o', 'o', 'm', 'I', 'n', 0,
    's', 'u', 'n', 'k', 'e', 'n', 0,
    'r', 'e', 'j', 'e', 'c', 't', 0,
    'p', 'r', 'i', 'n', 't', '_', 0,
    'C', 'i', 'c', 'e', 'r', 'o', 0,
    'l', 'a', 'y', 'e', 'r', 's', 0,
    's', 't', 'r', 'i', 'd', 'e', 0,
    'm', 'e', 't', 'r', 'i', 'c', 0,
    'A', 'c', 't', 'i', 'v', 'e', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 0,
    'c', 'r', 'e', 'a', 't', 'e', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 0,
    's', 'e', 'n', 'd', 'e', 'r', 0,
    'v', 'a', 'l', 'u', 'e', '9', 0,
    'v', 'a', 'l', 'u', 'e', '8', 0,
    'v', 'a', 'l', 'u', 'e', '7', 0,
    'v', 'a', 'l', 'u', 'e', '6', 0,
    'v', 'a', 'l', 'u', 'e', '5', 0,
    'v', 'a', 'l', 'u', 'e', '4', 0,
    'v', 'a', 'l', 'u', 'e', '3', 0,
    'v', 'a', 'l', 'u', 'e', '2', 0,
    'v', 'a', 'l', 'u', 'e', '1', 0,
    'v', 'a', 'l', 'u', 'e', '0', 0,
    'f', 'a', 'c', 't', 'o', 'r', 0,
    's', 'y', 's', 't', 'e', 'm', 0,
    's', 'y', 'm', 'b', 'o', 'l', 0,
    's', 'u', 'f', 'f', 'i', 'x', 0,
    'o', 'f', 'f', 's', 'e', 't', 0,
    'p', 'r', 'e', 'f', 'i', 'x', 0,
    'f', 'i', 'l', 't', 'e', 'r', 0,
    'a', 'c', 'c', 'e', 'p', 't', 0,
    'o', 'p', 't', 'i', 'o', 'n', 0,
    'l', 'o', 'c', 'a', 'l', 'e', 0,
    'f', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'N', 'u', 'l', 'l', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 0,
    'o', 'b', 'j', 'e', 'c', 't', 0,
    'p', 'a', 'r', 'e', 'n', 't', 0,
    '_', '_', 'n', 'e', '_', '_', 0,
    '_', '_', 'e', 'q', '_', '_', 0,
    '_', '_', 'o', 'r', '_', '_', 0,
    'U', 'p', 'p', 'e', 'r', 0,
    'L', 'o', 'w', 'e', 'r', 0,
    'a', 'b', 'o', 'r', 't', 0,
    'D', 'i', 'd', 'o', 't', 0,
    'b', 'r', 'u', 's', 'h', 0,
    'C', 'o', 'l', 'o', 'r', 0,
    'P', 'o', 'i', 'n', 't', 0,
    'E', 'r', 'r', 'o', 'r', 0,
    't', 'y', 'p', 'e', 's', 0,
    'N', 'o', 'n', 'e', '_', 0,
    'e', 'x', 'e', 'c', '_', 0,
    'o', 'r', 'd', 'e', 'r', 0,
    'r', 'o', 'l', 'e', 's', 0,
    'f', 'l', 'a', 'g', 's', 0,
    'e', 'v', 'e', 'n', 't', 0,
    'm', 's', 'e', 'c', 's', 0,
    's', 't', 'a', 't', 'e', 0,
    'I', 'd', 'l', 'e', 0,
    'd', 'o', 'n', 'e', 0,
    'P', 'i', 'c', 'a', 0,
    'I', 'n', 'c', 'h', 0,
    'e', 'x', 'e', 'c', 0,
    'm', 'o', 'd', 'e', 0,
    'n', 'a', 'm', 'e', 0,
    'b', 'a', 's', 'e', 0,
    'o', 'p', 'e', 'n', 0,
    'f', 'i', 'l', 'l', 0,
    'f', 'r', 'o', 'm', 0,
    's', 'o', 'r', 't', 0,
    'p', 'o', 's', 0,
    's', 'w', 0,
    's', 'y', 0,
    's', 'x', 0,
};
#line 24 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
#include <qabstractprintdialog.h>
#line 164 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
// Imports from QtCore.
pyqt5_qtprintsupport_get_connection_parts_t pyqt5_qtprintsupport_get_connection_parts;
#line 442 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

QPrinter::PrinterState sipVH_QtPrintSupport_0(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QPrinter::PrinterState sipRes = (QPrinter::PrinterState)0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "F", sipType_QPrinter_PrinterState, &sipRes);

    return sipRes;
}

QVariant sipVH_QtPrintSupport_1(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPrintEngine::PrintEnginePropertyKey a0)
{
    QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "F",a0,sipType_QPrintEngine_PrintEnginePropertyKey);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QVariant, &sipRes);

    return sipRes;
}

void sipVH_QtPrintSupport_2(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPrintEngine::PrintEnginePropertyKey a0,const QVariant& a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "FN",a0,sipType_QPrintEngine_PrintEnginePropertyKey,new QVariant(a1),sipType_QVariant,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}


/* Convert to a sub-class if possible. */
extern "C" {static const sipTypeDef *sipSubClass_QAbstractPrintDialog(void **);}
static const sipTypeDef *sipSubClass_QAbstractPrintDialog(void **sipCppRet)
{
    QObject *sipCpp = reinterpret_cast<QObject *>(*sipCppRet);
    const sipTypeDef *sipType;

#line 36 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
    static struct class_graph {
        const char *name;
        sipTypeDef **type;
        int yes, no;
    } graph[] = {
    #if defined(SIP_FEATURE_PyQt_PrintDialog)
        {sipName_QPageSetupDialog, &sipType_QPageSetupDialog, -1, 1},
    #else
        {0, 0, -1, 1},
    #endif
    #if defined(SIP_FEATURE_PyQt_PrintPreviewWidget)
        {sipName_QPrintPreviewWidget, &sipType_QPrintPreviewWidget, -1, 2},
    #else
        {0, 0, -1, 2},
    #endif
    #if defined(SIP_FEATURE_PyQt_PrintPreviewDialog)
        {sipName_QPrintPreviewDialog, &sipType_QPrintPreviewDialog, -1, 3},
    #else
        {0, 0, -1, 3},
    #endif
    #if defined(SIP_FEATURE_PyQt_Printer)
        {sipName_QAbstractPrintDialog, &sipType_QAbstractPrintDialog, 4, -1},
    #else
        {0, 0, 4, -1},
    #endif
    #if defined(SIP_FEATURE_PyQt_PrintDialog)
        {sipName_QPrintDialog, &sipType_QPrintDialog, -1, -1},
    #else
        {0, 0, -1, -1},
    #endif
    };
    
    int i = 0;
    
    sipType = NULL;
    
    do
    {
        struct class_graph *cg = &graph[i];
    
        if (cg->name != NULL && sipCpp->inherits(cg->name))
        {
            sipType = *cg->type;
            i = cg->yes;
        }
        else
            i = cg->no;
    }
    while (i >= 0);
#line 529 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

    return sipType;
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOption___or__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOption___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOption a0;
        QAbstractPrintDialog::PrintDialogOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QAbstractPrintDialog_PrintDialogOption, &a0, sipType_QAbstractPrintDialog_PrintDialogOptions, &a1, &a1State))
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes;

            sipRes = new QAbstractPrintDialog::PrintDialogOptions((a0 | *a1));
            sipReleaseType(a1,sipType_QAbstractPrintDialog_PrintDialogOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QAbstractPrintDialog_PrintDialogOption[] = {
    {(void *)slot_QAbstractPrintDialog_PrintDialogOption___or__, or_slot},
    {0, (sipPySlotType)0}
};

static sipEnumTypeDef enumTypes[] = {
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrintPreviewWidget__ZoomMode, {0}}, sipNameNr_ZoomMode, 14, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrintPreviewWidget__ViewMode, {0}}, sipNameNr_ViewMode, 14, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__DuplexMode, {0}}, sipNameNr_DuplexMode, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__Unit, {0}}, sipNameNr_Unit, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__PrintRange, {0}}, sipNameNr_PrintRange, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__OutputFormat, {0}}, sipNameNr_OutputFormat, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__PrinterState, {0}}, sipNameNr_PrinterState, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__PaperSource, {0}}, sipNameNr_PaperSource, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__ColorMode, {0}}, sipNameNr_ColorMode, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__PageOrder, {0}}, sipNameNr_PageOrder, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__Orientation, {0}}, sipNameNr_Orientation, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrinter__PrinterMode, {0}}, sipNameNr_PrinterMode, 17, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPrintEngine__PrintEnginePropertyKey, {0}}, sipNameNr_PrintEnginePropertyKey, 11, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QAbstractPrintDialog__PrintDialogOption, {0}}, sipNameNr_PrintDialogOption, 0, slots_QAbstractPrintDialog_PrintDialogOption},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QAbstractPrintDialog__PrintRange, {0}}, sipNameNr_PrintRange, 0, NULL},
};


/*
 * This defines each type in this module.
 */
static sipTypeDef *typesTable[] = {
    &sipTypeDef_QtPrintSupport_QAbstractPrintDialog.super.ctd_base,
    &enumTypes[13].etd_base,
    &sipTypeDef_QtPrintSupport_QAbstractPrintDialog_PrintDialogOptions.super.ctd_base,
    &enumTypes[14].etd_base,
    &sipTypeDef_QtPrintSupport_QList_0100QPageSize.mtd_base,
    &sipTypeDef_QtPrintSupport_QList_0100QPagedPaintDevice_PageSize.mtd_base,
    &sipTypeDef_QtPrintSupport_QList_0600QPair_0100QString_0100QSizeF.mtd_base,
    &sipTypeDef_QtPrintSupport_QList_0100QPrinter_DuplexMode.mtd_base,
    &sipTypeDef_QtPrintSupport_QList_0100QPrinterInfo.mtd_base,
    &sipTypeDef_QtPrintSupport_QPageSetupDialog.super.ctd_base,
    &sipTypeDef_QtPrintSupport_QPrintDialog.super.ctd_base,
    &sipTypeDef_QtPrintSupport_QPrintEngine.super.ctd_base,
    &enumTypes[12].etd_base,
    &sipTypeDef_QtPrintSupport_QPrintPreviewDialog.super.ctd_base,
    &sipTypeDef_QtPrintSupport_QPrintPreviewWidget.super.ctd_base,
    &enumTypes[1].etd_base,
    &enumTypes[0].etd_base,
    &sipTypeDef_QtPrintSupport_QPrinter.super.ctd_base,
    &enumTypes[8].etd_base,
    &enumTypes[2].etd_base,
    &enumTypes[10].etd_base,
    &enumTypes[5].etd_base,
    &enumTypes[9].etd_base,
    &enumTypes[7].etd_base,
    &enumTypes[4].etd_base,
    &enumTypes[11].etd_base,
    &enumTypes[6].etd_base,
    &enumTypes[3].etd_base,
    &sipTypeDef_QtPrintSupport_QPrinterInfo.super.ctd_base,
};


/*
 * These define each typedef in this module.
 */
static sipTypedefDef typedefsTable[] = {
    {"QPrinter::PaperSize", "QPagedPaintDevice::PageSize"},
};


/*
 * This defines the virtual handlers that this module implements and can be
 * used by other modules.
 */
static sipVirtHandlerFunc virtHandlersTable[] = {
    (sipVirtHandlerFunc)sipVH_QtPrintSupport_0,
    (sipVirtHandlerFunc)sipVH_QtPrintSupport_1,
    (sipVirtHandlerFunc)sipVH_QtPrintSupport_2,
};


/* This defines the modules that this module needs to import. */
static sipImportedModuleDef importsTable[] = {
    {"PyQt5.QtCore", 1, NULL},
    {"PyQt5.QtGui", -1, NULL},
    {"PyQt5.QtWidgets", -1, NULL},
    {NULL, -1, NULL}
};


/* This defines the class sub-convertors that this module defines. */
static sipSubClassConvertorDef convertorsTable[] = {
    {sipSubClass_QAbstractPrintDialog, {162, 0, 0}, NULL},
    {NULL, {0, 0, 0}, NULL}
};


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtPrintSupport = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt5_QtPrintSupport,
    0,
    -1,
    sipStrings_QtPrintSupport,
    importsTable,
    NULL,
    29,
    typesTable,
    NULL,
    0,
    NULL,
    1,
    typedefsTable,
    virtHandlersTable,
    NULL,
    convertorsTable,
    {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL,
    NULL
};


/* The SIP API and the APIs of any imported modules. */
const sipAPIDef *sipAPI_QtPrintSupport;
const sipExportedModuleDef *sipModuleAPI_QtPrintSupport_QtCore;
const sipExportedModuleDef *sipModuleAPI_QtPrintSupport_QtGui;
const sipExportedModuleDef *sipModuleAPI_QtPrintSupport_QtWidgets;

sip_qt_metaobject_func sip_QtPrintSupport_qt_metaobject;
sip_qt_metacall_func sip_QtPrintSupport_qt_metacall;
sip_qt_metacast_func sip_QtPrintSupport_qt_metacast;


/* The Python module initialisation function. */
#if PY_MAJOR_VERSION >= 3
#define SIP_MODULE_ENTRY        PyInit_QtPrintSupport
#define SIP_MODULE_TYPE         PyObject *
#define SIP_MODULE_DISCARD(r)   Py_DECREF(r)
#define SIP_MODULE_RETURN(r)    return (r)
#else
#define SIP_MODULE_ENTRY        initQtPrintSupport
#define SIP_MODULE_TYPE         void
#define SIP_MODULE_DISCARD(r)
#define SIP_MODULE_RETURN(r)    return
#endif

#if defined(SIP_STATIC_MODULE)
extern "C" SIP_MODULE_TYPE SIP_MODULE_ENTRY()
#else
PyMODINIT_FUNC SIP_MODULE_ENTRY()
#endif
{
    static PyMethodDef sip_methods[] = {
        {0, 0, 0, 0}
    };

#if PY_MAJOR_VERSION >= 3
    static PyModuleDef sip_module_def = {
        PyModuleDef_HEAD_INIT,
        "PyQt5.QtPrintSupport",
        NULL,
        -1,
        sip_methods,
        NULL,
        NULL,
        NULL,
        NULL
    };
#endif

    PyObject *sipModule, *sipModuleDict;
    PyObject *sip_sipmod, *sip_capiobj;

    /* Initialise the module and get it's dictionary. */
#if PY_MAJOR_VERSION >= 3
    sipModule = PyModule_Create(&sip_module_def);
#elif PY_VERSION_HEX >= 0x02050000
    sipModule = Py_InitModule(sipName_PyQt5_QtPrintSupport, sip_methods);
#else
    sipModule = Py_InitModule(const_cast<char *>(sipName_PyQt5_QtPrintSupport), sip_methods);
#endif

    if (sipModule == NULL)
        SIP_MODULE_RETURN(NULL);

    sipModuleDict = PyModule_GetDict(sipModule);

    /* Get the SIP module's API. */
#if PY_VERSION_HEX >= 0x02050000
    sip_sipmod = PyImport_ImportModule(SIP_MODULE_NAME);
#else
    sip_sipmod = PyImport_ImportModule(const_cast<char *>(SIP_MODULE_NAME));
#endif

    if (sip_sipmod == NULL)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }

    sip_capiobj = PyDict_GetItemString(PyModule_GetDict(sip_sipmod), "_C_API");
    Py_DECREF(sip_sipmod);

#if defined(SIP_USE_PYCAPSULE)
    if (sip_capiobj == NULL || !PyCapsule_CheckExact(sip_capiobj))
#else
    if (sip_capiobj == NULL || !PyCObject_Check(sip_capiobj))
#endif
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }

#if defined(SIP_USE_PYCAPSULE)
    sipAPI_QtPrintSupport = reinterpret_cast<const sipAPIDef *>(PyCapsule_GetPointer(sip_capiobj, SIP_MODULE_NAME "._C_API"));
#else
    sipAPI_QtPrintSupport = reinterpret_cast<const sipAPIDef *>(PyCObject_AsVoidPtr(sip_capiobj));
#endif

#if defined(SIP_USE_PYCAPSULE)
    if (sipAPI_QtPrintSupport == NULL)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }
#endif

    /* Export the module and publish it's API. */
    if (sipExportModule(&sipModuleAPI_QtPrintSupport,SIP_API_MAJOR_NR,SIP_API_MINOR_NR,0) < 0)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(0);
    }

    sip_QtPrintSupport_qt_metaobject = (sip_qt_metaobject_func)sipImportSymbol("qtcore_qt_metaobject");
    sip_QtPrintSupport_qt_metacall = (sip_qt_metacall_func)sipImportSymbol("qtcore_qt_metacall");
    sip_QtPrintSupport_qt_metacast = (sip_qt_metacast_func)sipImportSymbol("qtcore_qt_metacast");

    if (!sip_QtPrintSupport_qt_metacast)
        Py_FatalError("Unable to import qtcore_qt_metacast");

    /* Initialise the module now all its dependencies have been set up. */
    if (sipInitModule(&sipModuleAPI_QtPrintSupport,sipModuleDict) < 0)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(0);
    }

    /* Get the APIs of the modules that this one is dependent on. */
    sipModuleAPI_QtPrintSupport_QtCore = sipModuleAPI_QtPrintSupport.em_imports[0].im_module;
    sipModuleAPI_QtPrintSupport_QtGui = sipModuleAPI_QtPrintSupport.em_imports[1].im_module;
    sipModuleAPI_QtPrintSupport_QtWidgets = sipModuleAPI_QtPrintSupport.em_imports[2].im_module;
#line 169 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
// Imports from QtCore.
pyqt5_qtprintsupport_get_connection_parts = (pyqt5_qtprintsupport_get_connection_parts_t)sipImportSymbol("pyqt5_get_connection_parts");
#line 825 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

    SIP_MODULE_RETURN(sipModule);
}

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 832 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 34 "sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 836 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


extern "C" {static void assign_QList_0100QPageSize(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QPageSize(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QPageSize> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QPageSize> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QPageSize(SIP_SSIZE_T);}
static void *array_QList_0100QPageSize(SIP_SSIZE_T sipNrElem)
{
    return new QList<QPageSize>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QPageSize(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QPageSize(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QPageSize>(reinterpret_cast<const QList<QPageSize> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QPageSize(void *, int);}
static void release_QList_0100QPageSize(void *ptr, int)
{
    delete reinterpret_cast<QList<QPageSize> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QPageSize(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QPageSize(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QPageSize> **sipCppPtr = reinterpret_cast<QList<QPageSize> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QPageSize> *ql = new QList<QPageSize>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QPageSize *t = reinterpret_cast<QPageSize *>(
                sipForceConvertToType(itm, sipType_QPageSize, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QPageSize' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QPageSize, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 945 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QPageSize(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QPageSize(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QPageSize> *sipCpp = reinterpret_cast<QList<QPageSize> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QPageSize *t = new QPageSize(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QPageSize,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 978 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtPrintSupport_QList_0100QPageSize = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1601,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QPageSize,
    array_QList_0100QPageSize,
    copy_QList_0100QPageSize,
    release_QList_0100QPageSize,
    convertTo_QList_0100QPageSize,
    convertFrom_QList_0100QPageSize
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 1009 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 1013 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


extern "C" {static void assign_QList_0100QPrinterInfo(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QPrinterInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QPrinterInfo> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QPrinterInfo> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QPrinterInfo(SIP_SSIZE_T);}
static void *array_QList_0100QPrinterInfo(SIP_SSIZE_T sipNrElem)
{
    return new QList<QPrinterInfo>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QPrinterInfo(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QPrinterInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QPrinterInfo>(reinterpret_cast<const QList<QPrinterInfo> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QPrinterInfo(void *, int);}
static void release_QList_0100QPrinterInfo(void *ptr, int)
{
    delete reinterpret_cast<QList<QPrinterInfo> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QPrinterInfo(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QPrinterInfo(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QPrinterInfo> **sipCppPtr = reinterpret_cast<QList<QPrinterInfo> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QPrinterInfo> *ql = new QList<QPrinterInfo>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QPrinterInfo *t = reinterpret_cast<QPrinterInfo *>(
                sipForceConvertToType(itm, sipType_QPrinterInfo, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QPrinterInfo' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QPrinterInfo, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1122 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QPrinterInfo(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QPrinterInfo(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QPrinterInfo> *sipCpp = reinterpret_cast<QList<QPrinterInfo> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QPrinterInfo *t = new QPrinterInfo(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QPrinterInfo,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 1155 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtPrintSupport_QList_0100QPrinterInfo = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_995,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QPrinterInfo,
    array_QList_0100QPrinterInfo,
    copy_QList_0100QPrinterInfo,
    release_QList_0100QPrinterInfo,
    convertTo_QList_0100QPrinterInfo,
    convertFrom_QList_0100QPrinterInfo
};

#line 252 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1187 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 1191 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


extern "C" {static void assign_QList_0600QPair_0100QString_0100QSizeF(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0600QPair_0100QString_0100QSizeF(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QPair<QString,QSizeF> > *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QPair<QString,QSizeF> > *>(sipSrc);
}


extern "C" {static void *array_QList_0600QPair_0100QString_0100QSizeF(SIP_SSIZE_T);}
static void *array_QList_0600QPair_0100QString_0100QSizeF(SIP_SSIZE_T sipNrElem)
{
    return new QList<QPair<QString,QSizeF> >[sipNrElem];
}


extern "C" {static void *copy_QList_0600QPair_0100QString_0100QSizeF(const void *, SIP_SSIZE_T);}
static void *copy_QList_0600QPair_0100QString_0100QSizeF(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QPair<QString,QSizeF> >(reinterpret_cast<const QList<QPair<QString,QSizeF> > *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0600QPair_0100QString_0100QSizeF(void *, int);}
static void release_QList_0600QPair_0100QString_0100QSizeF(void *ptr, int)
{
    delete reinterpret_cast<QList<QPair<QString,QSizeF> > *>(ptr);
}



extern "C" {static int convertTo_QList_0600QPair_0100QString_0100QSizeF(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0600QPair_0100QString_0100QSizeF(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QPair<QString,QSizeF> > **sipCppPtr = reinterpret_cast<QList<QPair<QString,QSizeF> > **>(sipCppPtrV);

#line 286 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QPair<QString, QSizeF> > *ql = new QList<QPair<QString, QSizeF> >;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *seq = PyIter_Next(iter);

        if (!seq)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        SIP_SSIZE_T sub_len;

        if (PySequence_Check(seq)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(seq)
#endif
                && !PyUnicode_Check(seq))
            sub_len = PySequence_Size(seq);
        else
            sub_len = -1;

        if (sub_len != 2)
        {
            if (sub_len < 0)
                PyErr_Format(PyExc_TypeError,
                        "index " SIP_SSIZE_T_FORMAT " has type '%s' but a 2 element non-string sequence is expected",
                        i, Py_TYPE(seq)->tp_name);
            else
                PyErr_Format(PyExc_TypeError,
                        "index " SIP_SSIZE_T_FORMAT " is a sequence of " SIP_SSIZE_T_FORMAT " sub-elements but 2 sub-elements are expected",
                        i, sub_len);

            Py_DECREF(seq);
            delete ql;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        PyObject *itm1 = PySequence_ITEM(seq, 0);

        if (!itm1)
        {
            Py_DECREF(seq);
            delete ql;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        int state1;
        QString *s1 = reinterpret_cast<QString *>(
                sipForceConvertToType(itm1, sipType_QString, sipTransferObj,
                        SIP_NOT_NONE, &state1, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "the first sub-element of index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QString' is expected",
                    i, Py_TYPE(itm1)->tp_name);

            Py_DECREF(itm1);
            Py_DECREF(seq);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        PyObject *itm2 = PySequence_ITEM(seq, 1);

        if (!itm2)
        {
            sipReleaseType(s1, sipType_QString, state1);
            Py_DECREF(itm1);
            Py_DECREF(seq);
            delete ql;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        int state2;
        QSizeF *s2 = reinterpret_cast<QSizeF *>(
                sipForceConvertToType(itm2, sipType_QSizeF, sipTransferObj,
                        SIP_NOT_NONE, &state2, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "the second sub-element of index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QSizeF' is expected",
                    i, Py_TYPE(itm2)->tp_name);

            Py_DECREF(itm2);
            sipReleaseType(s1, sipType_QString, state1);
            Py_DECREF(itm1);
            Py_DECREF(seq);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(QPair<QString, QSizeF>(*s1, *s2));

        sipReleaseType(s2, sipType_QSizeF, state2);
        Py_DECREF(itm2);
        sipReleaseType(s1, sipType_QString, state1);
        Py_DECREF(itm1);
        Py_DECREF(seq);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 1381 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0600QPair_0100QString_0100QSizeF(void *, PyObject *);}
static PyObject *convertFrom_QList_0600QPair_0100QString_0100QSizeF(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QPair<QString,QSizeF> > *sipCpp = reinterpret_cast<QList<QPair<QString,QSizeF> > *>(sipCppV);

#line 257 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        const QPair<QString, QSizeF> &p = sipCpp->at(i);
        QString *s1 = new QString(p.first);
        QSizeF *s2 = new QSizeF(p.second);
        PyObject *pobj = sipBuildResult(NULL, "(NN)", s1, sipType_QString,
                sipTransferObj, s2, sipType_QSizeF, sipTransferObj);

        if (!pobj)
        {
            delete s1;
            delete s2;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 1417 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtPrintSupport_QList_0600QPair_0100QString_0100QSizeF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_186,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0600QPair_0100QString_0100QSizeF,
    array_QList_0600QPair_0100QString_0100QSizeF,
    copy_QList_0600QPair_0100QString_0100QSizeF,
    release_QList_0600QPair_0100QString_0100QSizeF,
    convertTo_QList_0600QPair_0100QString_0100QSizeF,
    convertFrom_QList_0600QPair_0100QString_0100QSizeF
};

#line 129 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
#include <qprinterinfo.h>
#line 1448 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 1452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


extern "C" {static void assign_QList_0100QPrinter_DuplexMode(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QPrinter_DuplexMode(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QPrinter::DuplexMode> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QPrinter::DuplexMode> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QPrinter_DuplexMode(SIP_SSIZE_T);}
static void *array_QList_0100QPrinter_DuplexMode(SIP_SSIZE_T sipNrElem)
{
    return new QList<QPrinter::DuplexMode>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QPrinter_DuplexMode(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QPrinter_DuplexMode(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QPrinter::DuplexMode>(reinterpret_cast<const QList<QPrinter::DuplexMode> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QPrinter_DuplexMode(void *, int);}
static void release_QList_0100QPrinter_DuplexMode(void *ptr, int)
{
    delete reinterpret_cast<QList<QPrinter::DuplexMode> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QPrinter_DuplexMode(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QPrinter_DuplexMode(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QPrinter::DuplexMode> **sipCppPtr = reinterpret_cast<QList<QPrinter::DuplexMode> **>(sipCppPtrV);

#line 157 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QPrinter::DuplexMode> *ql = new QList<QPrinter::DuplexMode>;

    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        if (!sipCanConvertToEnum(itm, sipType_QPrinter_DuplexMode))
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QPrinter.DuplexMode' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        ql->append(
                static_cast<QPrinter::DuplexMode>(SIPLong_AsLong(itm)));

        Py_DECREF(itm);
    }

    Py_DECREF(iter);

    *sipCppPtr = ql;

    return sipGetState(sipTransferObj);
#line 1557 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QPrinter_DuplexMode(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QPrinter_DuplexMode(void *sipCppV, PyObject *)
{
   QList<QPrinter::DuplexMode> *sipCpp = reinterpret_cast<QList<QPrinter::DuplexMode> *>(sipCppV);

#line 133 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *eobj = sipConvertFromEnum(sipCpp->at(i),
                sipType_QPrinter_DuplexMode);

        if (!eobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, eobj);
    }

    return l;
#line 1588 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtPrintSupport_QList_0100QPrinter_DuplexMode = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_305,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QPrinter_DuplexMode,
    array_QList_0100QPrinter_DuplexMode,
    copy_QList_0100QPrinter_DuplexMode,
    release_QList_0100QPrinter_DuplexMode,
    convertTo_QList_0100QPrinter_DuplexMode,
    convertFrom_QList_0100QPrinter_DuplexMode
};

#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
#include <qprinterinfo.h>
#line 1619 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 26 "sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 1623 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


extern "C" {static void assign_QList_0100QPagedPaintDevice_PageSize(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QPagedPaintDevice_PageSize(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QPagedPaintDevice::PageSize> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QPagedPaintDevice::PageSize> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QPagedPaintDevice_PageSize(SIP_SSIZE_T);}
static void *array_QList_0100QPagedPaintDevice_PageSize(SIP_SSIZE_T sipNrElem)
{
    return new QList<QPagedPaintDevice::PageSize>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QPagedPaintDevice_PageSize(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QPagedPaintDevice_PageSize(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QPagedPaintDevice::PageSize>(reinterpret_cast<const QList<QPagedPaintDevice::PageSize> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QPagedPaintDevice_PageSize(void *, int);}
static void release_QList_0100QPagedPaintDevice_PageSize(void *ptr, int)
{
    delete reinterpret_cast<QList<QPagedPaintDevice::PageSize> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QPagedPaintDevice_PageSize(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QPagedPaintDevice_PageSize(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QPagedPaintDevice::PageSize> **sipCppPtr = reinterpret_cast<QList<QPagedPaintDevice::PageSize> **>(sipCppPtrV);

#line 54 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QPagedPaintDevice::PageSize> *ql = new QList<QPagedPaintDevice::PageSize>;

    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        if (!sipCanConvertToEnum(itm, sipType_QPagedPaintDevice_PageSize))
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QPagedPaintDevice.PageSize' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        ql->append(
                static_cast<QPagedPaintDevice::PageSize>(SIPLong_AsLong(itm)));

        Py_DECREF(itm);
    }

    Py_DECREF(iter);

    *sipCppPtr = ql;

    return sipGetState(sipTransferObj);
#line 1728 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QPagedPaintDevice_PageSize(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QPagedPaintDevice_PageSize(void *sipCppV, PyObject *)
{
   QList<QPagedPaintDevice::PageSize> *sipCpp = reinterpret_cast<QList<QPagedPaintDevice::PageSize> *>(sipCppV);

#line 30 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *eobj = sipConvertFromEnum(sipCpp->at(i),
                sipType_QPagedPaintDevice_PageSize);

        if (!eobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, eobj);
    }

    return l;
#line 1759 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtPrintSupport_QList_0100QPagedPaintDevice_PageSize = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_118,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QPagedPaintDevice_PageSize,
    array_QList_0100QPagedPaintDevice_PageSize,
    copy_QList_0100QPagedPaintDevice_PageSize,
    release_QList_0100QPagedPaintDevice_PageSize,
    convertTo_QList_0100QPagedPaintDevice_PageSize,
    convertFrom_QList_0100QPagedPaintDevice_PageSize
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintpreviewwidget.sip"
#include <qprintpreviewwidget.h>
#line 1790 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 1794 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 1797 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1800 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1803 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qicon.sip"
#include <qicon.h>
#line 1806 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 1809 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1812 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 1815 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 1818 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 1821 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1824 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 1827 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1830 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1833 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 1836 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 1839 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 1842 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1845 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 1848 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1851 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qregion.sip"
#include <qregion.h>
#line 1854 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 1857 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 1860 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 1863 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 1866 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qfont.sip"
#include <qfont.h>
#line 1869 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1872 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 479 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1875 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1878 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 441 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1881 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 430 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1884 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 534 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1887 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 583 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1890 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 556 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1893 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 572 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1896 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 635 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1899 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 275 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1902 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 452 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1905 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 408 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1908 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 395 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1911 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 382 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1914 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 368 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1917 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 354 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1920 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 333 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1923 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 247 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1926 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 202 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1929 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 56 "sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 1932 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 1935 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qaction.sip"
#include <qaction.h>
#line 1938 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qlayout.sip"
#include <qlayout.h>
#line 1941 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 1944 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1947 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 1950 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 1953 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 1956 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 1959 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qstyle.sip"
#include <qstyle.h>
#line 1962 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 1965 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1968 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1971 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1974 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 1977 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 1980 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1983 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1986 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1989 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 1992 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1995 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


class sipQPrintPreviewWidget : public QPrintPreviewWidget
{
public:
    sipQPrintPreviewWidget(QPrinter*,QWidget*,Qt::WindowFlags);
    sipQPrintPreviewWidget(QWidget*,Qt::WindowFlags);
    virtual ~sipQPrintPreviewWidget();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    bool sipProtectVirt_event(bool,QEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_enterEvent(bool,QEvent*);
    void sipProtectVirt_leaveEvent(bool,QEvent*);
    void sipProtectVirt_paintEvent(bool,QPaintEvent*);
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    void sipProtectVirt_closeEvent(bool,QCloseEvent*);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);
    void sipProtectVirt_actionEvent(bool,QActionEvent*);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent*);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent*);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent*);
    void sipProtectVirt_dropEvent(bool,QDropEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    void sipProtectVirt_changeEvent(bool,QEvent*);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent*);
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    bool sipProtectVirt_nativeEvent(bool,const QByteArray&,void*,long*);
    QPainter* sipProtectVirt_sharedPainter(bool) const;
    void sipProtectVirt_initPainter(bool,QPainter*) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    void initPainter(QPainter*) const;
    QPainter* sharedPainter() const;
    bool nativeEvent(const QByteArray&,void*,long*);
    bool hasHeightForWidth() const;
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void closeEvent(QCloseEvent*);
    void resizeEvent(QResizeEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    int devType() const;
    void setVisible(bool);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPrintPreviewWidget(const sipQPrintPreviewWidget &);
    sipQPrintPreviewWidget &operator = (const sipQPrintPreviewWidget &);

    char sipPyMethods[46];
};

sipQPrintPreviewWidget::sipQPrintPreviewWidget(QPrinter*a0,QWidget*a1,Qt::WindowFlags a2): QPrintPreviewWidget(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintPreviewWidget::sipQPrintPreviewWidget(QWidget*a0,Qt::WindowFlags a1): QPrintPreviewWidget(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintPreviewWidget::~sipQPrintPreviewWidget()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQPrintPreviewWidget::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtPrintSupport_qt_metaobject(sipPySelf,sipType_QPrintPreviewWidget);
}

int sipQPrintPreviewWidget::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QPrintPreviewWidget::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtPrintSupport_qt_metacall(sipPySelf,sipType_QPrintPreviewWidget,_c,_id,_a);

    return _id;
}

void *sipQPrintPreviewWidget::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtPrintSupport_qt_metacast(sipPySelf, sipType_QPrintPreviewWidget, _clname, &sipCpp) ? sipCpp : QPrintPreviewWidget::qt_metacast(_clname));
}

void sipQPrintPreviewWidget::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QPrintPreviewWidget::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QPrintPreviewWidget::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPrintPreviewWidget::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QPrintPreviewWidget::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPrintPreviewWidget::initPainter(QPainter*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_initPainter);

    if (!sipMeth)
    {
        QPrintPreviewWidget::initPainter(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*);

    ((sipVH_QtWidgets_3)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPainter* sipQPrintPreviewWidget::sharedPainter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_sharedPainter);

    if (!sipMeth)
        return QPrintPreviewWidget::sharedPainter();

    typedef QPainter* (*sipVH_QtWidgets_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtWidgets_4)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintPreviewWidget::nativeEvent(const QByteArray& a0,void*a1,long*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_nativeEvent);

    if (!sipMeth)
        return QPrintPreviewWidget::nativeEvent(a0,a1,a2);

    typedef bool (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&,void*,long*);

    return ((sipVH_QtCore_58)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[58]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQPrintPreviewWidget::hasHeightForWidth() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_hasHeightForWidth);

    if (!sipMeth)
        return QPrintPreviewWidget::hasHeightForWidth();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintPreviewWidget::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return QPrintPreviewWidget::focusNextPrevChild(a0);

    typedef bool (*sipVH_QtWidgets_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtWidgets_5)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QVariant sipQPrintPreviewWidget::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return QPrintPreviewWidget::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtWidgets_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtWidgets_6)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtWidgets_7)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPrintPreviewWidget::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPrintPreviewWidget::metric(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_28)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::changeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_6)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

    ((sipVH_QtWidgets_8)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

    ((sipVH_QtWidgets_9)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

    ((sipVH_QtWidgets_10)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[10]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtWidgets_11)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

    ((sipVH_QtWidgets_12)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

    ((sipVH_QtWidgets_13)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[13]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtWidgets_14)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[14]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    ((sipVH_QtGui_9)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    ((sipVH_QtGui_8)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_52)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[52]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::leaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::enterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_2)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[2]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewWidget::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QPrintPreviewWidget::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPrintPreviewWidget::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QPrintPreviewWidget::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPrintPreviewWidget::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPrintPreviewWidget::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_29)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[29]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPrintPreviewWidget::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[41]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return QPrintPreviewWidget::heightForWidth(a0);

    typedef int (*sipVH_QtCore_61)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_61)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[61]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QSize sipQPrintPreviewWidget::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return QPrintPreviewWidget::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQPrintPreviewWidget::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[43]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return QPrintPreviewWidget::sizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPrintPreviewWidget::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[44]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QPrintPreviewWidget::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPrintPreviewWidget::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        QPrintPreviewWidget::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtWidgets_0)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQPrintPreviewWidget::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQPrintPreviewWidget::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQPrintPreviewWidget::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQPrintPreviewWidget::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQPrintPreviewWidget::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

bool sipQPrintPreviewWidget::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QWidget::event(a0) : event(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWidget::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent*a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QWidget::resizeEvent(a0) : resizeEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent*a0)
{
    (sipSelfWasArg ? QWidget::closeEvent(a0) : closeEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent*a0)
{
    (sipSelfWasArg ? QWidget::contextMenuEvent(a0) : contextMenuEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent*a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent*a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QWidget::showEvent(a0) : showEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWidget::hideEvent(a0) : hideEvent(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipQPrintPreviewWidget::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipQPrintPreviewWidget::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent*a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipQPrintPreviewWidget::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipQPrintPreviewWidget::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipQPrintPreviewWidget::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipQPrintPreviewWidget::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipQPrintPreviewWidget::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipQPrintPreviewWidget::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

bool sipQPrintPreviewWidget::sipProtectVirt_nativeEvent(bool sipSelfWasArg,const QByteArray& a0,void*a1,long*a2)
{
    return (sipSelfWasArg ? QWidget::nativeEvent(a0,a1,a2) : nativeEvent(a0,a1,a2));
}

QPainter* sipQPrintPreviewWidget::sipProtectVirt_sharedPainter(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? QWidget::sharedPainter() : sharedPainter());
}

void sipQPrintPreviewWidget::sipProtectVirt_initPainter(bool sipSelfWasArg,QPainter*a0) const
{
    (sipSelfWasArg ? QWidget::initPainter(a0) : initPainter(a0));
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_sender, "QPrintPreviewWidget.sender() -> QObject");

extern "C" {static PyObject *meth_QPrintPreviewWidget_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 3219 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_sender, doc_QPrintPreviewWidget_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_receivers, "QPrintPreviewWidget.receivers(signal) -> int");

extern "C" {static PyObject *meth_QPrintPreviewWidget_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 3278 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_receivers, doc_QPrintPreviewWidget_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_timerEvent, "QPrintPreviewWidget.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_timerEvent, doc_QPrintPreviewWidget_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_childEvent, "QPrintPreviewWidget.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_childEvent, doc_QPrintPreviewWidget_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_customEvent, "QPrintPreviewWidget.customEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_customEvent, doc_QPrintPreviewWidget_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_connectNotify, "QPrintPreviewWidget.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_connectNotify, doc_QPrintPreviewWidget_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_disconnectNotify, "QPrintPreviewWidget.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_disconnectNotify, doc_QPrintPreviewWidget_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_senderSignalIndex, "QPrintPreviewWidget.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QPrintPreviewWidget_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_senderSignalIndex, doc_QPrintPreviewWidget_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_isSignalConnected, "QPrintPreviewWidget.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QPrintPreviewWidget_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_isSignalConnected, doc_QPrintPreviewWidget_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_event, "QPrintPreviewWidget.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QPrintPreviewWidget_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_event, doc_QPrintPreviewWidget_event);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_mousePressEvent, "QPrintPreviewWidget.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_mousePressEvent, doc_QPrintPreviewWidget_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_mouseReleaseEvent, "QPrintPreviewWidget.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_mouseReleaseEvent, doc_QPrintPreviewWidget_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_mouseDoubleClickEvent, "QPrintPreviewWidget.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_mouseDoubleClickEvent, doc_QPrintPreviewWidget_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_mouseMoveEvent, "QPrintPreviewWidget.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_mouseMoveEvent, doc_QPrintPreviewWidget_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_wheelEvent, "QPrintPreviewWidget.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_wheelEvent, doc_QPrintPreviewWidget_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_keyPressEvent, "QPrintPreviewWidget.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_keyPressEvent, doc_QPrintPreviewWidget_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_keyReleaseEvent, "QPrintPreviewWidget.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_keyReleaseEvent, doc_QPrintPreviewWidget_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_focusInEvent, "QPrintPreviewWidget.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_focusInEvent, doc_QPrintPreviewWidget_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_focusOutEvent, "QPrintPreviewWidget.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_focusOutEvent, doc_QPrintPreviewWidget_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_enterEvent, "QPrintPreviewWidget.enterEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_enterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_enterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_enterEvent, doc_QPrintPreviewWidget_enterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_leaveEvent, "QPrintPreviewWidget.leaveEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_leaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_leaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_leaveEvent, doc_QPrintPreviewWidget_leaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_paintEvent, "QPrintPreviewWidget.paintEvent(QPaintEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_paintEvent, doc_QPrintPreviewWidget_paintEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_moveEvent, "QPrintPreviewWidget.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_moveEvent, doc_QPrintPreviewWidget_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_resizeEvent, "QPrintPreviewWidget.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_resizeEvent, doc_QPrintPreviewWidget_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_closeEvent, "QPrintPreviewWidget.closeEvent(QCloseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_closeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_closeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QCloseEvent, &a0))
        {
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_closeEvent, doc_QPrintPreviewWidget_closeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_contextMenuEvent, "QPrintPreviewWidget.contextMenuEvent(QContextMenuEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_contextMenuEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_contextMenuEvent, doc_QPrintPreviewWidget_contextMenuEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_tabletEvent, "QPrintPreviewWidget.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_tabletEvent, doc_QPrintPreviewWidget_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_actionEvent, "QPrintPreviewWidget.actionEvent(QActionEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_actionEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_actionEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QActionEvent, &a0))
        {
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_actionEvent, doc_QPrintPreviewWidget_actionEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_dragEnterEvent, "QPrintPreviewWidget.dragEnterEvent(QDragEnterEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_dragEnterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_dragEnterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_dragEnterEvent, doc_QPrintPreviewWidget_dragEnterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_dragMoveEvent, "QPrintPreviewWidget.dragMoveEvent(QDragMoveEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_dragMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_dragMoveEvent, doc_QPrintPreviewWidget_dragMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_dragLeaveEvent, "QPrintPreviewWidget.dragLeaveEvent(QDragLeaveEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_dragLeaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_dragLeaveEvent, doc_QPrintPreviewWidget_dragLeaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_dropEvent, "QPrintPreviewWidget.dropEvent(QDropEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_dropEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_dropEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QDropEvent, &a0))
        {
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_dropEvent, doc_QPrintPreviewWidget_dropEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_showEvent, "QPrintPreviewWidget.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_showEvent, doc_QPrintPreviewWidget_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_hideEvent, "QPrintPreviewWidget.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_hideEvent, doc_QPrintPreviewWidget_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_changeEvent, "QPrintPreviewWidget.changeEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_changeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_changeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_changeEvent, doc_QPrintPreviewWidget_changeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_metric, "QPrintPreviewWidget.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPrintPreviewWidget_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_metric, doc_QPrintPreviewWidget_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_inputMethodEvent, "QPrintPreviewWidget.inputMethodEvent(QInputMethodEvent)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_inputMethodEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_inputMethodEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent* a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_inputMethodEvent, doc_QPrintPreviewWidget_inputMethodEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_updateMicroFocus, "QPrintPreviewWidget.updateMicroFocus()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_updateMicroFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_updateMicroFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->sipProtect_updateMicroFocus();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_updateMicroFocus, doc_QPrintPreviewWidget_updateMicroFocus);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_create, "QPrintPreviewWidget.create(sip.voidptr window=0, bool initializeWindow=True, bool destroyOldWindow=True)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        WId a0def = 0;
        WId* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipQPrintPreviewWidget *sipCpp;

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1bb", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_quintptr,&a0, &a0State, &a1, &a2))
        {
            sipCpp->sipProtect_create(*a0,a1,a2);
            sipReleaseType(a0,sipType_quintptr,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_create, doc_QPrintPreviewWidget_create);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_destroy, "QPrintPreviewWidget.destroy(bool destroyWindow=True, bool destroySubWindows=True)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_destroy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_destroy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipQPrintPreviewWidget *sipCpp;

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0, &a1))
        {
            sipCpp->sipProtect_destroy(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_destroy, doc_QPrintPreviewWidget_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_focusNextPrevChild, "QPrintPreviewWidget.focusNextPrevChild(bool) -> bool");

extern "C" {static PyObject *meth_QPrintPreviewWidget_focusNextPrevChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_focusNextPrevChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_focusNextPrevChild, doc_QPrintPreviewWidget_focusNextPrevChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_focusNextChild, "QPrintPreviewWidget.focusNextChild() -> bool");

extern "C" {static PyObject *meth_QPrintPreviewWidget_focusNextChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_focusNextChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusNextChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_focusNextChild, doc_QPrintPreviewWidget_focusNextChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_focusPreviousChild, "QPrintPreviewWidget.focusPreviousChild() -> bool");

extern "C" {static PyObject *meth_QPrintPreviewWidget_focusPreviousChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_focusPreviousChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusPreviousChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_focusPreviousChild, doc_QPrintPreviewWidget_focusPreviousChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_nativeEvent, "QPrintPreviewWidget.nativeEvent(QByteArray, sip.voidptr) -> (bool, int)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_nativeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_nativeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        void* a1;
        long a2;
        sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1v", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_nativeEvent(sipSelfWasArg,*a0,a1,&a2);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipBuildResult(0,"(bl)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_nativeEvent, doc_QPrintPreviewWidget_nativeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_sharedPainter, "QPrintPreviewWidget.sharedPainter() -> QPainter");

extern "C" {static PyObject *meth_QPrintPreviewWidget_sharedPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_sharedPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            QPainter*sipRes;

            sipRes = sipCpp->sipProtectVirt_sharedPainter(sipSelfWasArg);

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_sharedPainter, doc_QPrintPreviewWidget_sharedPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_initPainter, "QPrintPreviewWidget.initPainter(QPainter)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_initPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_initPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPainter* a0;
        const sipQPrintPreviewWidget *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QPainter, &a0))
        {
            sipCpp->sipProtectVirt_initPainter(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_initPainter, doc_QPrintPreviewWidget_initPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_zoomFactor, "QPrintPreviewWidget.zoomFactor() -> float");

extern "C" {static PyObject *meth_QPrintPreviewWidget_zoomFactor(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_zoomFactor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->zoomFactor();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_zoomFactor, doc_QPrintPreviewWidget_zoomFactor);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_orientation, "QPrintPreviewWidget.orientation() -> QPrinter.Orientation");

extern "C" {static PyObject *meth_QPrintPreviewWidget_orientation(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_orientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            QPrinter::Orientation sipRes;

            sipRes = sipCpp->orientation();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_Orientation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_orientation, doc_QPrintPreviewWidget_orientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_viewMode, "QPrintPreviewWidget.viewMode() -> QPrintPreviewWidget.ViewMode");

extern "C" {static PyObject *meth_QPrintPreviewWidget_viewMode(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_viewMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            QPrintPreviewWidget::ViewMode sipRes;

            sipRes = sipCpp->viewMode();

            return sipConvertFromEnum(sipRes,sipType_QPrintPreviewWidget_ViewMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_viewMode, doc_QPrintPreviewWidget_viewMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_zoomMode, "QPrintPreviewWidget.zoomMode() -> QPrintPreviewWidget.ZoomMode");

extern "C" {static PyObject *meth_QPrintPreviewWidget_zoomMode(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_zoomMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            QPrintPreviewWidget::ZoomMode sipRes;

            sipRes = sipCpp->zoomMode();

            return sipConvertFromEnum(sipRes,sipType_QPrintPreviewWidget_ZoomMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_zoomMode, doc_QPrintPreviewWidget_zoomMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_currentPage, "QPrintPreviewWidget.currentPage() -> int");

extern "C" {static PyObject *meth_QPrintPreviewWidget_currentPage(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_currentPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->currentPage();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_currentPage, doc_QPrintPreviewWidget_currentPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setVisible, "QPrintPreviewWidget.setVisible(bool)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setVisible(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPrintPreviewWidget::setVisible(a0) : sipCpp->setVisible(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setVisible, doc_QPrintPreviewWidget_setVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_print_, "QPrintPreviewWidget.print_()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_print_(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_print_(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->print();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_print_, doc_QPrintPreviewWidget_print_);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_zoomIn, "QPrintPreviewWidget.zoomIn(float factor=1.1)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_zoomIn(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_zoomIn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0 = 1.1;
        QPrintPreviewWidget *sipCpp;

        static const char *sipKwdList[] = {
            sipName_factor,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|d", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0))
        {
            sipCpp->zoomIn(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_zoomIn, doc_QPrintPreviewWidget_zoomIn);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_zoomOut, "QPrintPreviewWidget.zoomOut(float factor=1.1)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_zoomOut(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_zoomOut(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0 = 1.1;
        QPrintPreviewWidget *sipCpp;

        static const char *sipKwdList[] = {
            sipName_factor,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|d", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0))
        {
            sipCpp->zoomOut(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_zoomOut, doc_QPrintPreviewWidget_zoomOut);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setZoomFactor, "QPrintPreviewWidget.setZoomFactor(float)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setZoomFactor(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setZoomFactor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0))
        {
            sipCpp->setZoomFactor(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setZoomFactor, doc_QPrintPreviewWidget_setZoomFactor);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setOrientation, "QPrintPreviewWidget.setOrientation(QPrinter.Orientation)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setOrientation(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::Orientation a0;
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QPrinter_Orientation, &a0))
        {
            sipCpp->setOrientation(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setOrientation, doc_QPrintPreviewWidget_setOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setViewMode, "QPrintPreviewWidget.setViewMode(QPrintPreviewWidget.ViewMode)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setViewMode(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setViewMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget::ViewMode a0;
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QPrintPreviewWidget_ViewMode, &a0))
        {
            sipCpp->setViewMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setViewMode, doc_QPrintPreviewWidget_setViewMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setZoomMode, "QPrintPreviewWidget.setZoomMode(QPrintPreviewWidget.ZoomMode)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setZoomMode(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setZoomMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget::ZoomMode a0;
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, sipType_QPrintPreviewWidget_ZoomMode, &a0))
        {
            sipCpp->setZoomMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setZoomMode, doc_QPrintPreviewWidget_setZoomMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setCurrentPage, "QPrintPreviewWidget.setCurrentPage(int)");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setCurrentPage(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setCurrentPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp, &a0))
        {
            sipCpp->setCurrentPage(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setCurrentPage, doc_QPrintPreviewWidget_setCurrentPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_fitToWidth, "QPrintPreviewWidget.fitToWidth()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_fitToWidth(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_fitToWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->fitToWidth();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_fitToWidth, doc_QPrintPreviewWidget_fitToWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_fitInView, "QPrintPreviewWidget.fitInView()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_fitInView(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_fitInView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->fitInView();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_fitInView, doc_QPrintPreviewWidget_fitInView);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setLandscapeOrientation, "QPrintPreviewWidget.setLandscapeOrientation()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setLandscapeOrientation(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setLandscapeOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->setLandscapeOrientation();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setLandscapeOrientation, doc_QPrintPreviewWidget_setLandscapeOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setPortraitOrientation, "QPrintPreviewWidget.setPortraitOrientation()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setPortraitOrientation(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setPortraitOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->setPortraitOrientation();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setPortraitOrientation, doc_QPrintPreviewWidget_setPortraitOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setSinglePageViewMode, "QPrintPreviewWidget.setSinglePageViewMode()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setSinglePageViewMode(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setSinglePageViewMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->setSinglePageViewMode();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setSinglePageViewMode, doc_QPrintPreviewWidget_setSinglePageViewMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setFacingPagesViewMode, "QPrintPreviewWidget.setFacingPagesViewMode()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setFacingPagesViewMode(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setFacingPagesViewMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->setFacingPagesViewMode();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setFacingPagesViewMode, doc_QPrintPreviewWidget_setFacingPagesViewMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_setAllPagesViewMode, "QPrintPreviewWidget.setAllPagesViewMode()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_setAllPagesViewMode(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_setAllPagesViewMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->setAllPagesViewMode();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_setAllPagesViewMode, doc_QPrintPreviewWidget_setAllPagesViewMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_updatePreview, "QPrintPreviewWidget.updatePreview()");

extern "C" {static PyObject *meth_QPrintPreviewWidget_updatePreview(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_updatePreview(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            sipCpp->updatePreview();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_updatePreview, doc_QPrintPreviewWidget_updatePreview);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewWidget_pageCount, "QPrintPreviewWidget.pageCount() -> int");

extern "C" {static PyObject *meth_QPrintPreviewWidget_pageCount(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewWidget_pageCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrintPreviewWidget *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewWidget, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->pageCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewWidget, sipName_pageCount, doc_QPrintPreviewWidget_pageCount);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPrintPreviewWidget(void *, const sipTypeDef *);}
static void *cast_QPrintPreviewWidget(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPrintPreviewWidget)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QWidget)->ctd_cast((QWidget *)(QPrintPreviewWidget *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPrintPreviewWidget(void *, int);}
static void release_QPrintPreviewWidget(void *sipCppV,int)
{
    QPrintPreviewWidget *sipCpp = reinterpret_cast<QPrintPreviewWidget *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QPrintPreviewWidget(sipSimpleWrapper *);}
static void dealloc_QPrintPreviewWidget(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPrintPreviewWidget *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPrintPreviewWidget(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPrintPreviewWidget(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPrintPreviewWidget(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQPrintPreviewWidget *sipCpp = 0;

    {
        QPrinter* a0;
        QWidget* a1 = 0;
        Qt::WindowFlags a2def = 0;
        Qt::WindowFlags* a2 = &a2def;
        int a2State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
            sipName_flags,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|JHJ1", sipType_QPrinter, &a0, sipType_QWidget, &a1, sipOwner, sipType_Qt_WindowFlags, &a2, &a2State))
        {
            sipCpp = new sipQPrintPreviewWidget(a0,a1,*a2);
            sipReleaseType(a2,sipType_Qt_WindowFlags,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWidget* a0 = 0;
        Qt::WindowFlags a1def = 0;
        Qt::WindowFlags* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
            sipName_flags,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JHJ1", sipType_QWidget, &a0, sipOwner, sipType_Qt_WindowFlags, &a1, &a1State))
        {
            sipCpp = new sipQPrintPreviewWidget(a0,*a1);
            sipReleaseType(a1,sipType_Qt_WindowFlags,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPrintPreviewWidget[] = {{454, 2, 1}};


static PyMethodDef methods_QPrintPreviewWidget[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), (PyCFunction)meth_QPrintPreviewWidget_actionEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), (PyCFunction)meth_QPrintPreviewWidget_changeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QPrintPreviewWidget_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), (PyCFunction)meth_QPrintPreviewWidget_closeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QPrintPreviewWidget_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), (PyCFunction)meth_QPrintPreviewWidget_contextMenuEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_QPrintPreviewWidget_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_currentPage), meth_QPrintPreviewWidget_currentPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_currentPage)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QPrintPreviewWidget_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_QPrintPreviewWidget_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QPrintPreviewWidget_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), (PyCFunction)meth_QPrintPreviewWidget_dragEnterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), (PyCFunction)meth_QPrintPreviewWidget_dragLeaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), (PyCFunction)meth_QPrintPreviewWidget_dragMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), (PyCFunction)meth_QPrintPreviewWidget_dropEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), (PyCFunction)meth_QPrintPreviewWidget_enterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QPrintPreviewWidget_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_fitInView), meth_QPrintPreviewWidget_fitInView, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_fitInView)},
    {SIP_MLNAME_CAST(sipName_fitToWidth), meth_QPrintPreviewWidget_fitToWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_fitToWidth)},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QPrintPreviewWidget_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), (PyCFunction)meth_QPrintPreviewWidget_focusNextChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), (PyCFunction)meth_QPrintPreviewWidget_focusNextPrevChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QPrintPreviewWidget_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), (PyCFunction)meth_QPrintPreviewWidget_focusPreviousChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QPrintPreviewWidget_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initPainter), (PyCFunction)meth_QPrintPreviewWidget_initPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), (PyCFunction)meth_QPrintPreviewWidget_inputMethodEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QPrintPreviewWidget_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QPrintPreviewWidget_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QPrintPreviewWidget_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), (PyCFunction)meth_QPrintPreviewWidget_leaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPrintPreviewWidget_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QPrintPreviewWidget_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QPrintPreviewWidget_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QPrintPreviewWidget_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QPrintPreviewWidget_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QPrintPreviewWidget_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_nativeEvent), (PyCFunction)meth_QPrintPreviewWidget_nativeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_orientation), meth_QPrintPreviewWidget_orientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_orientation)},
    {SIP_MLNAME_CAST(sipName_pageCount), meth_QPrintPreviewWidget_pageCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_pageCount)},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_QPrintPreviewWidget_paintEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_print_), meth_QPrintPreviewWidget_print_, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_print_)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QPrintPreviewWidget_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QPrintPreviewWidget_resizeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QPrintPreviewWidget_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QPrintPreviewWidget_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setAllPagesViewMode), meth_QPrintPreviewWidget_setAllPagesViewMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setAllPagesViewMode)},
    {SIP_MLNAME_CAST(sipName_setCurrentPage), meth_QPrintPreviewWidget_setCurrentPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setCurrentPage)},
    {SIP_MLNAME_CAST(sipName_setFacingPagesViewMode), meth_QPrintPreviewWidget_setFacingPagesViewMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setFacingPagesViewMode)},
    {SIP_MLNAME_CAST(sipName_setLandscapeOrientation), meth_QPrintPreviewWidget_setLandscapeOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setLandscapeOrientation)},
    {SIP_MLNAME_CAST(sipName_setOrientation), meth_QPrintPreviewWidget_setOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setOrientation)},
    {SIP_MLNAME_CAST(sipName_setPortraitOrientation), meth_QPrintPreviewWidget_setPortraitOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setPortraitOrientation)},
    {SIP_MLNAME_CAST(sipName_setSinglePageViewMode), meth_QPrintPreviewWidget_setSinglePageViewMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setSinglePageViewMode)},
    {SIP_MLNAME_CAST(sipName_setViewMode), meth_QPrintPreviewWidget_setViewMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setViewMode)},
    {SIP_MLNAME_CAST(sipName_setVisible), meth_QPrintPreviewWidget_setVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setVisible)},
    {SIP_MLNAME_CAST(sipName_setZoomFactor), meth_QPrintPreviewWidget_setZoomFactor, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setZoomFactor)},
    {SIP_MLNAME_CAST(sipName_setZoomMode), meth_QPrintPreviewWidget_setZoomMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_setZoomMode)},
    {SIP_MLNAME_CAST(sipName_sharedPainter), (PyCFunction)meth_QPrintPreviewWidget_sharedPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QPrintPreviewWidget_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QPrintPreviewWidget_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QPrintPreviewWidget_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), (PyCFunction)meth_QPrintPreviewWidget_updateMicroFocus, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updatePreview), meth_QPrintPreviewWidget_updatePreview, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_updatePreview)},
    {SIP_MLNAME_CAST(sipName_viewMode), meth_QPrintPreviewWidget_viewMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_viewMode)},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QPrintPreviewWidget_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_zoomFactor), meth_QPrintPreviewWidget_zoomFactor, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_zoomFactor)},
    {SIP_MLNAME_CAST(sipName_zoomIn), (PyCFunction)meth_QPrintPreviewWidget_zoomIn, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_zoomIn)},
    {SIP_MLNAME_CAST(sipName_zoomMode), meth_QPrintPreviewWidget_zoomMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_zoomMode)},
    {SIP_MLNAME_CAST(sipName_zoomOut), (PyCFunction)meth_QPrintPreviewWidget_zoomOut, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPrintPreviewWidget_zoomOut)}
};

static sipEnumMemberDef enummembers_QPrintPreviewWidget[] = {
    {sipName_AllPagesView, static_cast<int>(QPrintPreviewWidget::AllPagesView), 15},
    {sipName_CustomZoom, static_cast<int>(QPrintPreviewWidget::CustomZoom), 16},
    {sipName_FacingPagesView, static_cast<int>(QPrintPreviewWidget::FacingPagesView), 15},
    {sipName_FitInView, static_cast<int>(QPrintPreviewWidget::FitInView), 16},
    {sipName_FitToWidth, static_cast<int>(QPrintPreviewWidget::FitToWidth), 16},
    {sipName_SinglePageView, static_cast<int>(QPrintPreviewWidget::SinglePageView), 15},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QPrintPreviewWidget[] = {
    {"previewChanged()", "\1QPrintPreviewWidget.previewChanged", 0, 0},
    {"paintRequested(QPrinter*)", "\1QPrintPreviewWidget.paintRequested[QPrinter]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QPrintPreviewWidget, "\1QPrintPreviewWidget(QPrinter, QWidget parent=None, Qt.WindowFlags flags=0)\n"
    "QPrintPreviewWidget(QWidget parent=None, Qt.WindowFlags flags=0)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QPrintPreviewWidget = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPrintPreviewWidget,
        {0}
    },
    {
        sipNameNr_QPrintPreviewWidget,
        {0, 0, 1},
        69, methods_QPrintPreviewWidget,
        6, enummembers_QPrintPreviewWidget,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPrintPreviewWidget,
    -1,
    -1,
    supers_QPrintPreviewWidget,
    0,
    init_type_QPrintPreviewWidget,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPrintPreviewWidget,
    0,
    0,
    0,
    release_QPrintPreviewWidget,
    cast_QPrintPreviewWidget,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QPrintPreviewWidget::staticMetaObject,
    0,
    signals_QPrintPreviewWidget,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintpreviewdialog.sip"
#include <qprintpreviewdialog.h>
#line 5421 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 5425 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5428 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 5431 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5434 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 452 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5440 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 395 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5443 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 430 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 408 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5449 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 333 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 5455 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5458 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qicon.sip"
#include <qicon.h>
#line 5461 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 5464 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5467 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 5470 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 5473 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 5476 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5479 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 5482 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5485 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5488 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 5491 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 5494 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 5497 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5500 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 5503 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 5506 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qregion.sip"
#include <qregion.h>
#line 5509 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 5512 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 5515 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 5518 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qfont.sip"
#include <qfont.h>
#line 5521 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5524 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 479 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5527 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 441 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5530 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 534 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5533 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 583 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5536 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 556 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5539 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 572 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5542 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 635 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5545 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 275 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5548 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 382 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5551 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 368 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5554 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 354 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5557 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 247 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5560 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 202 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 5563 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 56 "sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 5566 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 5569 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qaction.sip"
#include <qaction.h>
#line 5572 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qlayout.sip"
#include <qlayout.h>
#line 5575 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 5578 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5581 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 5584 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 5587 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 5590 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 5593 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qstyle.sip"
#include <qstyle.h>
#line 5596 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 5599 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5602 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5605 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 5608 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 5611 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5614 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5617 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5620 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 5623 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5626 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


class sipQPrintPreviewDialog : public QPrintPreviewDialog
{
public:
    sipQPrintPreviewDialog(QWidget*,Qt::WindowFlags);
    sipQPrintPreviewDialog(QPrinter*,QWidget*,Qt::WindowFlags);
    virtual ~sipQPrintPreviewDialog();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    bool sipProtectVirt_event(bool,QEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_enterEvent(bool,QEvent*);
    void sipProtectVirt_leaveEvent(bool,QEvent*);
    void sipProtectVirt_paintEvent(bool,QPaintEvent*);
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);
    void sipProtectVirt_actionEvent(bool,QActionEvent*);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent*);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent*);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent*);
    void sipProtectVirt_dropEvent(bool,QDropEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    void sipProtectVirt_changeEvent(bool,QEvent*);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent*);
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    bool sipProtectVirt_nativeEvent(bool,const QByteArray&,void*,long*);
    QPainter* sipProtectVirt_sharedPainter(bool) const;
    void sipProtectVirt_initPainter(bool,QPainter*) const;
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_closeEvent(bool,QCloseEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent*);
    bool sipProtectVirt_eventFilter(bool,QObject*,QEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    void initPainter(QPainter*) const;
    QPainter* sharedPainter() const;
    bool nativeEvent(const QByteArray&,void*,long*);
    bool hasHeightForWidth() const;
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    int devType() const;
    bool eventFilter(QObject*,QEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void resizeEvent(QResizeEvent*);
    void showEvent(QShowEvent*);
    void closeEvent(QCloseEvent*);
    void keyPressEvent(QKeyEvent*);
    void reject();
    void accept();
    int exec();
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void done(int);
    void open();
    void setVisible(bool);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPrintPreviewDialog(const sipQPrintPreviewDialog &);
    sipQPrintPreviewDialog &operator = (const sipQPrintPreviewDialog &);

    char sipPyMethods[51];
};

sipQPrintPreviewDialog::sipQPrintPreviewDialog(QWidget*a0,Qt::WindowFlags a1): QPrintPreviewDialog(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintPreviewDialog::sipQPrintPreviewDialog(QPrinter*a0,QWidget*a1,Qt::WindowFlags a2): QPrintPreviewDialog(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintPreviewDialog::~sipQPrintPreviewDialog()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQPrintPreviewDialog::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtPrintSupport_qt_metaobject(sipPySelf,sipType_QPrintPreviewDialog);
}

int sipQPrintPreviewDialog::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QPrintPreviewDialog::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtPrintSupport_qt_metacall(sipPySelf,sipType_QPrintPreviewDialog,_c,_id,_a);

    return _id;
}

void *sipQPrintPreviewDialog::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtPrintSupport_qt_metacast(sipPySelf, sipType_QPrintPreviewDialog, _clname, &sipCpp) ? sipCpp : QPrintPreviewDialog::qt_metacast(_clname));
}

void sipQPrintPreviewDialog::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QPrintPreviewDialog::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QPrintPreviewDialog::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::initPainter(QPainter*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_initPainter);

    if (!sipMeth)
    {
        QPrintPreviewDialog::initPainter(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*);

    ((sipVH_QtWidgets_3)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPainter* sipQPrintPreviewDialog::sharedPainter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_sharedPainter);

    if (!sipMeth)
        return QPrintPreviewDialog::sharedPainter();

    typedef QPainter* (*sipVH_QtWidgets_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtWidgets_4)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintPreviewDialog::nativeEvent(const QByteArray& a0,void*a1,long*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_nativeEvent);

    if (!sipMeth)
        return QPrintPreviewDialog::nativeEvent(a0,a1,a2);

    typedef bool (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&,void*,long*);

    return ((sipVH_QtCore_58)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[58]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQPrintPreviewDialog::hasHeightForWidth() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_hasHeightForWidth);

    if (!sipMeth)
        return QPrintPreviewDialog::hasHeightForWidth();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintPreviewDialog::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return QPrintPreviewDialog::focusNextPrevChild(a0);

    typedef bool (*sipVH_QtWidgets_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtWidgets_5)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QVariant sipQPrintPreviewDialog::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return QPrintPreviewDialog::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtWidgets_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtWidgets_6)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtWidgets_7)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPrintPreviewDialog::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPrintPreviewDialog::metric(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_28)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::changeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

    ((sipVH_QtWidgets_8)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

    ((sipVH_QtWidgets_9)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

    ((sipVH_QtWidgets_10)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[10]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtWidgets_11)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

    ((sipVH_QtWidgets_12)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    ((sipVH_QtGui_8)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_52)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[52]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::leaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::enterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_2)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[2]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPrintPreviewDialog::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QPrintPreviewDialog::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPrintPreviewDialog::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPrintPreviewDialog::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_29)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[29]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPrintPreviewDialog::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return QPrintPreviewDialog::heightForWidth(a0);

    typedef int (*sipVH_QtCore_61)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_61)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[61]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPrintPreviewDialog::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QPrintPreviewDialog::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintPreviewDialog::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QPrintPreviewDialog::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPrintPreviewDialog::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

    ((sipVH_QtWidgets_13)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[13]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    ((sipVH_QtGui_9)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_6)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtWidgets_14)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[14]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QPrintPreviewDialog::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::reject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_reject);

    if (!sipMeth)
    {
        QPrintPreviewDialog::reject();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPrintPreviewDialog::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_accept);

    if (!sipMeth)
    {
        QPrintPreviewDialog::accept();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPrintPreviewDialog::exec()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_exec_);

    if (!sipMeth)
        return QPrintPreviewDialog::exec();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQPrintPreviewDialog::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[46]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return QPrintPreviewDialog::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQPrintPreviewDialog::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[47]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return QPrintPreviewDialog::sizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPrintPreviewDialog::done(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_done);

    if (!sipMeth)
    {
        QPrintPreviewDialog::done(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintPreviewDialog::open()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
    {
        QPrintPreviewDialog::open();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPrintPreviewDialog::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        QPrintPreviewDialog::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtWidgets_0)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQPrintPreviewDialog::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQPrintPreviewDialog::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQPrintPreviewDialog::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQPrintPreviewDialog::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQPrintPreviewDialog::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

bool sipQPrintPreviewDialog::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QWidget::event(a0) : event(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent*a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent*a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent*a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWidget::hideEvent(a0) : hideEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipQPrintPreviewDialog::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent*a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipQPrintPreviewDialog::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipQPrintPreviewDialog::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipQPrintPreviewDialog::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipQPrintPreviewDialog::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipQPrintPreviewDialog::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipQPrintPreviewDialog::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

bool sipQPrintPreviewDialog::sipProtectVirt_nativeEvent(bool sipSelfWasArg,const QByteArray& a0,void*a1,long*a2)
{
    return (sipSelfWasArg ? QWidget::nativeEvent(a0,a1,a2) : nativeEvent(a0,a1,a2));
}

QPainter* sipQPrintPreviewDialog::sipProtectVirt_sharedPainter(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? QWidget::sharedPainter() : sharedPainter());
}

void sipQPrintPreviewDialog::sipProtectVirt_initPainter(bool sipSelfWasArg,QPainter*a0) const
{
    (sipSelfWasArg ? QWidget::initPainter(a0) : initPainter(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QDialog::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent*a0)
{
    (sipSelfWasArg ? QDialog::closeEvent(a0) : closeEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QDialog::showEvent(a0) : showEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QDialog::resizeEvent(a0) : resizeEvent(a0));
}

void sipQPrintPreviewDialog::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent*a0)
{
    (sipSelfWasArg ? QDialog::contextMenuEvent(a0) : contextMenuEvent(a0));
}

bool sipQPrintPreviewDialog::sipProtectVirt_eventFilter(bool sipSelfWasArg,QObject*a0,QEvent*a1)
{
    return (sipSelfWasArg ? QDialog::eventFilter(a0,a1) : eventFilter(a0,a1));
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_sender, "QPrintPreviewDialog.sender() -> QObject");

extern "C" {static PyObject *meth_QPrintPreviewDialog_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 6948 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_sender, doc_QPrintPreviewDialog_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_receivers, "QPrintPreviewDialog.receivers(signal) -> int");

extern "C" {static PyObject *meth_QPrintPreviewDialog_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 7007 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_receivers, doc_QPrintPreviewDialog_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_timerEvent, "QPrintPreviewDialog.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_timerEvent, doc_QPrintPreviewDialog_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_childEvent, "QPrintPreviewDialog.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_childEvent, doc_QPrintPreviewDialog_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_customEvent, "QPrintPreviewDialog.customEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_customEvent, doc_QPrintPreviewDialog_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_connectNotify, "QPrintPreviewDialog.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_connectNotify, doc_QPrintPreviewDialog_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_disconnectNotify, "QPrintPreviewDialog.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_disconnectNotify, doc_QPrintPreviewDialog_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_senderSignalIndex, "QPrintPreviewDialog.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QPrintPreviewDialog_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_senderSignalIndex, doc_QPrintPreviewDialog_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_isSignalConnected, "QPrintPreviewDialog.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QPrintPreviewDialog_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_isSignalConnected, doc_QPrintPreviewDialog_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_event, "QPrintPreviewDialog.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QPrintPreviewDialog_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_event, doc_QPrintPreviewDialog_event);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_mousePressEvent, "QPrintPreviewDialog.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_mousePressEvent, doc_QPrintPreviewDialog_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_mouseReleaseEvent, "QPrintPreviewDialog.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_mouseReleaseEvent, doc_QPrintPreviewDialog_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_mouseDoubleClickEvent, "QPrintPreviewDialog.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_mouseDoubleClickEvent, doc_QPrintPreviewDialog_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_mouseMoveEvent, "QPrintPreviewDialog.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_mouseMoveEvent, doc_QPrintPreviewDialog_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_wheelEvent, "QPrintPreviewDialog.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_wheelEvent, doc_QPrintPreviewDialog_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_keyReleaseEvent, "QPrintPreviewDialog.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_keyReleaseEvent, doc_QPrintPreviewDialog_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_focusInEvent, "QPrintPreviewDialog.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_focusInEvent, doc_QPrintPreviewDialog_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_focusOutEvent, "QPrintPreviewDialog.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_focusOutEvent, doc_QPrintPreviewDialog_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_enterEvent, "QPrintPreviewDialog.enterEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_enterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_enterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_enterEvent, doc_QPrintPreviewDialog_enterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_leaveEvent, "QPrintPreviewDialog.leaveEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_leaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_leaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_leaveEvent, doc_QPrintPreviewDialog_leaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_paintEvent, "QPrintPreviewDialog.paintEvent(QPaintEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_paintEvent, doc_QPrintPreviewDialog_paintEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_moveEvent, "QPrintPreviewDialog.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_moveEvent, doc_QPrintPreviewDialog_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_tabletEvent, "QPrintPreviewDialog.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_tabletEvent, doc_QPrintPreviewDialog_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_actionEvent, "QPrintPreviewDialog.actionEvent(QActionEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_actionEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_actionEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QActionEvent, &a0))
        {
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_actionEvent, doc_QPrintPreviewDialog_actionEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_dragEnterEvent, "QPrintPreviewDialog.dragEnterEvent(QDragEnterEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_dragEnterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_dragEnterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_dragEnterEvent, doc_QPrintPreviewDialog_dragEnterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_dragMoveEvent, "QPrintPreviewDialog.dragMoveEvent(QDragMoveEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_dragMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_dragMoveEvent, doc_QPrintPreviewDialog_dragMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_dragLeaveEvent, "QPrintPreviewDialog.dragLeaveEvent(QDragLeaveEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_dragLeaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_dragLeaveEvent, doc_QPrintPreviewDialog_dragLeaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_dropEvent, "QPrintPreviewDialog.dropEvent(QDropEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_dropEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_dropEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QDropEvent, &a0))
        {
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_dropEvent, doc_QPrintPreviewDialog_dropEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_hideEvent, "QPrintPreviewDialog.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_hideEvent, doc_QPrintPreviewDialog_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_changeEvent, "QPrintPreviewDialog.changeEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_changeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_changeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_changeEvent, doc_QPrintPreviewDialog_changeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_metric, "QPrintPreviewDialog.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPrintPreviewDialog_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_metric, doc_QPrintPreviewDialog_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_inputMethodEvent, "QPrintPreviewDialog.inputMethodEvent(QInputMethodEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_inputMethodEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_inputMethodEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_inputMethodEvent, doc_QPrintPreviewDialog_inputMethodEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_updateMicroFocus, "QPrintPreviewDialog.updateMicroFocus()");

extern "C" {static PyObject *meth_QPrintPreviewDialog_updateMicroFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_updateMicroFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            sipCpp->sipProtect_updateMicroFocus();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_updateMicroFocus, doc_QPrintPreviewDialog_updateMicroFocus);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_create, "QPrintPreviewDialog.create(sip.voidptr window=0, bool initializeWindow=True, bool destroyOldWindow=True)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        WId a0def = 0;
        WId* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipQPrintPreviewDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1bb", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_quintptr,&a0, &a0State, &a1, &a2))
        {
            sipCpp->sipProtect_create(*a0,a1,a2);
            sipReleaseType(a0,sipType_quintptr,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_create, doc_QPrintPreviewDialog_create);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_destroy, "QPrintPreviewDialog.destroy(bool destroyWindow=True, bool destroySubWindows=True)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_destroy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_destroy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipQPrintPreviewDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, &a0, &a1))
        {
            sipCpp->sipProtect_destroy(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_destroy, doc_QPrintPreviewDialog_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_focusNextPrevChild, "QPrintPreviewDialog.focusNextPrevChild(bool) -> bool");

extern "C" {static PyObject *meth_QPrintPreviewDialog_focusNextPrevChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_focusNextPrevChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_focusNextPrevChild, doc_QPrintPreviewDialog_focusNextPrevChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_focusNextChild, "QPrintPreviewDialog.focusNextChild() -> bool");

extern "C" {static PyObject *meth_QPrintPreviewDialog_focusNextChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_focusNextChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusNextChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_focusNextChild, doc_QPrintPreviewDialog_focusNextChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_focusPreviousChild, "QPrintPreviewDialog.focusPreviousChild() -> bool");

extern "C" {static PyObject *meth_QPrintPreviewDialog_focusPreviousChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_focusPreviousChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusPreviousChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_focusPreviousChild, doc_QPrintPreviewDialog_focusPreviousChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_nativeEvent, "QPrintPreviewDialog.nativeEvent(QByteArray, sip.voidptr) -> (bool, int)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_nativeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_nativeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        void* a1;
        long a2;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1v", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_nativeEvent(sipSelfWasArg,*a0,a1,&a2);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipBuildResult(0,"(bl)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_nativeEvent, doc_QPrintPreviewDialog_nativeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_sharedPainter, "QPrintPreviewDialog.sharedPainter() -> QPainter");

extern "C" {static PyObject *meth_QPrintPreviewDialog_sharedPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_sharedPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            QPainter*sipRes;

            sipRes = sipCpp->sipProtectVirt_sharedPainter(sipSelfWasArg);

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_sharedPainter, doc_QPrintPreviewDialog_sharedPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_initPainter, "QPrintPreviewDialog.initPainter(QPainter)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_initPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_initPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPainter* a0;
        const sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QPainter, &a0))
        {
            sipCpp->sipProtectVirt_initPainter(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_initPainter, doc_QPrintPreviewDialog_initPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_keyPressEvent, "QPrintPreviewDialog.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_keyPressEvent, doc_QPrintPreviewDialog_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_closeEvent, "QPrintPreviewDialog.closeEvent(QCloseEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_closeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_closeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QCloseEvent, &a0))
        {
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_closeEvent, doc_QPrintPreviewDialog_closeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_showEvent, "QPrintPreviewDialog.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_showEvent, doc_QPrintPreviewDialog_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_resizeEvent, "QPrintPreviewDialog.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_resizeEvent, doc_QPrintPreviewDialog_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_contextMenuEvent, "QPrintPreviewDialog.contextMenuEvent(QContextMenuEvent)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_contextMenuEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_contextMenuEvent, doc_QPrintPreviewDialog_contextMenuEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_eventFilter, "QPrintPreviewDialog.eventFilter(QObject, QEvent) -> bool");

extern "C" {static PyObject *meth_QPrintPreviewDialog_eventFilter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_eventFilter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject* a0;
        QEvent* a1;
        sipQPrintPreviewDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J8", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_eventFilter(sipSelfWasArg,a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_eventFilter, doc_QPrintPreviewDialog_eventFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_setVisible, "QPrintPreviewDialog.setVisible(bool)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_setVisible(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_setVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        QPrintPreviewDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPrintPreviewDialog::setVisible(a0) : sipCpp->setVisible(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_setVisible, doc_QPrintPreviewDialog_setVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_open, "QPrintPreviewDialog.open()\n"
    "QPrintPreviewDialog.open(slot)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_open(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPrintPreviewDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            (sipSelfWasArg ? sipCpp->QPrintPreviewDialog::open() : sipCpp->open());

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        PyObject * a0;
        QPrintPreviewDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BP0", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 39 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintpreviewdialog.sip"
        QObject *receiver;
        QByteArray slot_signature;
        
        if ((sipError = pyqt5_qtprintsupport_get_connection_parts(a0, sipCpp, "()", false, &receiver, slot_signature)) == sipErrorNone)
        {
            sipCpp->open(receiver, slot_signature.constData());
        }
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 8377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_open, doc_QPrintPreviewDialog_open);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_printer, "QPrintPreviewDialog.printer() -> QPrinter");

extern "C" {static PyObject *meth_QPrintPreviewDialog_printer(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_printer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintPreviewDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp))
        {
            QPrinter*sipRes;

            sipRes = sipCpp->printer();

            return sipConvertFromType(sipRes,sipType_QPrinter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_printer, doc_QPrintPreviewDialog_printer);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintPreviewDialog_done, "QPrintPreviewDialog.done(int)");

extern "C" {static PyObject *meth_QPrintPreviewDialog_done(PyObject *, PyObject *);}
static PyObject *meth_QPrintPreviewDialog_done(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        QPrintPreviewDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPrintPreviewDialog, &sipCpp, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPrintPreviewDialog::done(a0) : sipCpp->done(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintPreviewDialog, sipName_done, doc_QPrintPreviewDialog_done);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPrintPreviewDialog(void *, const sipTypeDef *);}
static void *cast_QPrintPreviewDialog(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPrintPreviewDialog)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDialog)->ctd_cast((QDialog *)(QPrintPreviewDialog *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPrintPreviewDialog(void *, int);}
static void release_QPrintPreviewDialog(void *sipCppV,int)
{
    QPrintPreviewDialog *sipCpp = reinterpret_cast<QPrintPreviewDialog *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QPrintPreviewDialog(sipSimpleWrapper *);}
static void dealloc_QPrintPreviewDialog(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPrintPreviewDialog *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPrintPreviewDialog(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPrintPreviewDialog(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPrintPreviewDialog(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQPrintPreviewDialog *sipCpp = 0;

    {
        QWidget* a0 = 0;
        Qt::WindowFlags a1def = 0;
        Qt::WindowFlags* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
            sipName_flags,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JHJ1", sipType_QWidget, &a0, sipOwner, sipType_Qt_WindowFlags, &a1, &a1State))
        {
            sipCpp = new sipQPrintPreviewDialog(a0,*a1);
            sipReleaseType(a1,sipType_Qt_WindowFlags,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QPrinter* a0;
        QWidget* a1 = 0;
        Qt::WindowFlags a2def = 0;
        Qt::WindowFlags* a2 = &a2def;
        int a2State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
            sipName_flags,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|JHJ1", sipType_QPrinter, &a0, sipType_QWidget, &a1, sipOwner, sipType_Qt_WindowFlags, &a2, &a2State))
        {
            sipCpp = new sipQPrintPreviewDialog(a0,a1,*a2);
            sipReleaseType(a2,sipType_Qt_WindowFlags,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPrintPreviewDialog[] = {{60, 2, 1}};


static PyMethodDef methods_QPrintPreviewDialog[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), (PyCFunction)meth_QPrintPreviewDialog_actionEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), (PyCFunction)meth_QPrintPreviewDialog_changeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QPrintPreviewDialog_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), (PyCFunction)meth_QPrintPreviewDialog_closeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QPrintPreviewDialog_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), (PyCFunction)meth_QPrintPreviewDialog_contextMenuEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_QPrintPreviewDialog_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QPrintPreviewDialog_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_QPrintPreviewDialog_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QPrintPreviewDialog_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_done), meth_QPrintPreviewDialog_done, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewDialog_done)},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), (PyCFunction)meth_QPrintPreviewDialog_dragEnterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), (PyCFunction)meth_QPrintPreviewDialog_dragLeaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), (PyCFunction)meth_QPrintPreviewDialog_dragMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), (PyCFunction)meth_QPrintPreviewDialog_dropEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), (PyCFunction)meth_QPrintPreviewDialog_enterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QPrintPreviewDialog_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), (PyCFunction)meth_QPrintPreviewDialog_eventFilter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QPrintPreviewDialog_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), (PyCFunction)meth_QPrintPreviewDialog_focusNextChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), (PyCFunction)meth_QPrintPreviewDialog_focusNextPrevChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QPrintPreviewDialog_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), (PyCFunction)meth_QPrintPreviewDialog_focusPreviousChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QPrintPreviewDialog_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initPainter), (PyCFunction)meth_QPrintPreviewDialog_initPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), (PyCFunction)meth_QPrintPreviewDialog_inputMethodEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QPrintPreviewDialog_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QPrintPreviewDialog_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QPrintPreviewDialog_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), (PyCFunction)meth_QPrintPreviewDialog_leaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPrintPreviewDialog_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QPrintPreviewDialog_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QPrintPreviewDialog_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QPrintPreviewDialog_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QPrintPreviewDialog_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QPrintPreviewDialog_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_nativeEvent), (PyCFunction)meth_QPrintPreviewDialog_nativeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_QPrintPreviewDialog_open, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewDialog_open)},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_QPrintPreviewDialog_paintEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_printer), meth_QPrintPreviewDialog_printer, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewDialog_printer)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QPrintPreviewDialog_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QPrintPreviewDialog_resizeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QPrintPreviewDialog_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QPrintPreviewDialog_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setVisible), meth_QPrintPreviewDialog_setVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintPreviewDialog_setVisible)},
    {SIP_MLNAME_CAST(sipName_sharedPainter), (PyCFunction)meth_QPrintPreviewDialog_sharedPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QPrintPreviewDialog_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QPrintPreviewDialog_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QPrintPreviewDialog_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), (PyCFunction)meth_QPrintPreviewDialog_updateMicroFocus, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QPrintPreviewDialog_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QPrintPreviewDialog[] = {
    {"paintRequested(QPrinter*)", "\1QPrintPreviewDialog.paintRequested[QPrinter]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QPrintPreviewDialog, "\1QPrintPreviewDialog(QWidget parent=None, Qt.WindowFlags flags=0)\n"
    "QPrintPreviewDialog(QPrinter, QWidget parent=None, Qt.WindowFlags flags=0)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QPrintPreviewDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPrintPreviewDialog,
        {0}
    },
    {
        sipNameNr_QPrintPreviewDialog,
        {0, 0, 1},
        51, methods_QPrintPreviewDialog,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPrintPreviewDialog,
    -1,
    -1,
    supers_QPrintPreviewDialog,
    0,
    init_type_QPrintPreviewDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPrintPreviewDialog,
    0,
    0,
    0,
    release_QPrintPreviewDialog,
    cast_QPrintPreviewDialog,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QPrintPreviewDialog::staticMetaObject,
    0,
    signals_QPrintPreviewDialog,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 8677 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 8681 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 129 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
#include <qprinterinfo.h>
#line 8684 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 8687 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 8690 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 629 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8693 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 34 "sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 8696 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8699 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8702 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 252 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 8706 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 8709 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpyprintsupport_qlist.sip"
#include <qprinterinfo.h>
#line 8712 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 8715 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


PyDoc_STRVAR(doc_QPrinterInfo_printerName, "QPrinterInfo.printerName() -> str");

extern "C" {static PyObject *meth_QPrinterInfo_printerName(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_printerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->printerName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_printerName, doc_QPrinterInfo_printerName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_isNull, "QPrinterInfo.isNull() -> bool");

extern "C" {static PyObject *meth_QPrinterInfo_isNull(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_isNull, doc_QPrinterInfo_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_isDefault, "QPrinterInfo.isDefault() -> bool");

extern "C" {static PyObject *meth_QPrinterInfo_isDefault(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_isDefault(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDefault();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_isDefault, doc_QPrinterInfo_isDefault);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_supportedPaperSizes, "QPrinterInfo.supportedPaperSizes() -> list-of-QPagedPaintDevice.PageSize");

extern "C" {static PyObject *meth_QPrinterInfo_supportedPaperSizes(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_supportedPaperSizes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QList<QPagedPaintDevice::PageSize>*sipRes;

            sipRes = new QList<QPagedPaintDevice::PageSize>(sipCpp->supportedPaperSizes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPagedPaintDevice_PageSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_supportedPaperSizes, doc_QPrinterInfo_supportedPaperSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_supportedSizesWithNames, "QPrinterInfo.supportedSizesWithNames() -> list-of-tuple-of-QString-QSizeF");

extern "C" {static PyObject *meth_QPrinterInfo_supportedSizesWithNames(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_supportedSizesWithNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QList<QPair<QString,QSizeF> >*sipRes;

            sipRes = new QList<QPair<QString,QSizeF> >(sipCpp->supportedSizesWithNames());

            return sipConvertFromNewType(sipRes,sipType_QList_0600QPair_0100QString_0100QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_supportedSizesWithNames, doc_QPrinterInfo_supportedSizesWithNames);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_availablePrinters, "QPrinterInfo.availablePrinters() -> list-of-QPrinterInfo");

extern "C" {static PyObject *meth_QPrinterInfo_availablePrinters(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_availablePrinters(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QPrinterInfo>*sipRes;

            sipRes = new QList<QPrinterInfo>(QPrinterInfo::availablePrinters());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPrinterInfo,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_availablePrinters, doc_QPrinterInfo_availablePrinters);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_defaultPrinter, "QPrinterInfo.defaultPrinter() -> QPrinterInfo");

extern "C" {static PyObject *meth_QPrinterInfo_defaultPrinter(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_defaultPrinter(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QPrinterInfo*sipRes;

            sipRes = new QPrinterInfo(QPrinterInfo::defaultPrinter());

            return sipConvertFromNewType(sipRes,sipType_QPrinterInfo,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_defaultPrinter, doc_QPrinterInfo_defaultPrinter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_description, "QPrinterInfo.description() -> str");

extern "C" {static PyObject *meth_QPrinterInfo_description(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_description(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->description());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_description, doc_QPrinterInfo_description);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_location, "QPrinterInfo.location() -> str");

extern "C" {static PyObject *meth_QPrinterInfo_location(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_location(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->location());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_location, doc_QPrinterInfo_location);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_makeAndModel, "QPrinterInfo.makeAndModel() -> str");

extern "C" {static PyObject *meth_QPrinterInfo_makeAndModel(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_makeAndModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->makeAndModel());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_makeAndModel, doc_QPrinterInfo_makeAndModel);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_printerInfo, "QPrinterInfo.printerInfo(str) -> QPrinterInfo");

extern "C" {static PyObject *meth_QPrinterInfo_printerInfo(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_printerInfo(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QPrinterInfo*sipRes;

            sipRes = new QPrinterInfo(QPrinterInfo::printerInfo(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPrinterInfo,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_printerInfo, doc_QPrinterInfo_printerInfo);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_isRemote, "QPrinterInfo.isRemote() -> bool");

extern "C" {static PyObject *meth_QPrinterInfo_isRemote(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_isRemote(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isRemote();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_isRemote, doc_QPrinterInfo_isRemote);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_state, "QPrinterInfo.state() -> QPrinter.PrinterState");

extern "C" {static PyObject *meth_QPrinterInfo_state(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QPrinter::PrinterState sipRes;

            sipRes = sipCpp->state();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_PrinterState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_state, doc_QPrinterInfo_state);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_supportedPageSizes, "QPrinterInfo.supportedPageSizes() -> list-of-QPageSize");

extern "C" {static PyObject *meth_QPrinterInfo_supportedPageSizes(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_supportedPageSizes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QList<QPageSize>*sipRes;

            sipRes = new QList<QPageSize>(sipCpp->supportedPageSizes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPageSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_supportedPageSizes, doc_QPrinterInfo_supportedPageSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_defaultPageSize, "QPrinterInfo.defaultPageSize() -> QPageSize");

extern "C" {static PyObject *meth_QPrinterInfo_defaultPageSize(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_defaultPageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QPageSize*sipRes;

            sipRes = new QPageSize(sipCpp->defaultPageSize());

            return sipConvertFromNewType(sipRes,sipType_QPageSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_defaultPageSize, doc_QPrinterInfo_defaultPageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_supportsCustomPageSizes, "QPrinterInfo.supportsCustomPageSizes() -> bool");

extern "C" {static PyObject *meth_QPrinterInfo_supportsCustomPageSizes(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_supportsCustomPageSizes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsCustomPageSizes();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_supportsCustomPageSizes, doc_QPrinterInfo_supportsCustomPageSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_minimumPhysicalPageSize, "QPrinterInfo.minimumPhysicalPageSize() -> QPageSize");

extern "C" {static PyObject *meth_QPrinterInfo_minimumPhysicalPageSize(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_minimumPhysicalPageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QPageSize*sipRes;

            sipRes = new QPageSize(sipCpp->minimumPhysicalPageSize());

            return sipConvertFromNewType(sipRes,sipType_QPageSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_minimumPhysicalPageSize, doc_QPrinterInfo_minimumPhysicalPageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_maximumPhysicalPageSize, "QPrinterInfo.maximumPhysicalPageSize() -> QPageSize");

extern "C" {static PyObject *meth_QPrinterInfo_maximumPhysicalPageSize(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_maximumPhysicalPageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QPageSize*sipRes;

            sipRes = new QPageSize(sipCpp->maximumPhysicalPageSize());

            return sipConvertFromNewType(sipRes,sipType_QPageSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_maximumPhysicalPageSize, doc_QPrinterInfo_maximumPhysicalPageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_supportedResolutions, "QPrinterInfo.supportedResolutions() -> list-of-int");

extern "C" {static PyObject *meth_QPrinterInfo_supportedResolutions(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_supportedResolutions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QList<int>*sipRes;

            sipRes = new QList<int>(sipCpp->supportedResolutions());

            return sipConvertFromNewType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_supportedResolutions, doc_QPrinterInfo_supportedResolutions);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_availablePrinterNames, "QPrinterInfo.availablePrinterNames() -> list-of-str");

extern "C" {static PyObject *meth_QPrinterInfo_availablePrinterNames(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_availablePrinterNames(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QStringList*sipRes;

            sipRes = new QStringList(QPrinterInfo::availablePrinterNames());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_availablePrinterNames, doc_QPrinterInfo_availablePrinterNames);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_defaultPrinterName, "QPrinterInfo.defaultPrinterName() -> str");

extern "C" {static PyObject *meth_QPrinterInfo_defaultPrinterName(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_defaultPrinterName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            sipRes = new QString(QPrinterInfo::defaultPrinterName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_defaultPrinterName, doc_QPrinterInfo_defaultPrinterName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_defaultDuplexMode, "QPrinterInfo.defaultDuplexMode() -> QPrinter.DuplexMode");

extern "C" {static PyObject *meth_QPrinterInfo_defaultDuplexMode(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_defaultDuplexMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QPrinter::DuplexMode sipRes;

            sipRes = sipCpp->defaultDuplexMode();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_DuplexMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_defaultDuplexMode, doc_QPrinterInfo_defaultDuplexMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinterInfo_supportedDuplexModes, "QPrinterInfo.supportedDuplexModes() -> list-of-QPrinter.DuplexMode");

extern "C" {static PyObject *meth_QPrinterInfo_supportedDuplexModes(PyObject *, PyObject *);}
static PyObject *meth_QPrinterInfo_supportedDuplexModes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinterInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinterInfo, &sipCpp))
        {
            QList<QPrinter::DuplexMode>*sipRes;

            sipRes = new QList<QPrinter::DuplexMode>(sipCpp->supportedDuplexModes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPrinter_DuplexMode,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinterInfo, sipName_supportedDuplexModes, doc_QPrinterInfo_supportedDuplexModes);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPrinterInfo(void *, const sipTypeDef *);}
static void *cast_QPrinterInfo(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPrinterInfo)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPrinterInfo(void *, int);}
static void release_QPrinterInfo(void *sipCppV,int)
{
    delete reinterpret_cast<QPrinterInfo *>(sipCppV);
}


extern "C" {static void assign_QPrinterInfo(void *, SIP_SSIZE_T, const void *);}
static void assign_QPrinterInfo(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPrinterInfo *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPrinterInfo *>(sipSrc);
}


extern "C" {static void *array_QPrinterInfo(SIP_SSIZE_T);}
static void *array_QPrinterInfo(SIP_SSIZE_T sipNrElem)
{
    return new QPrinterInfo[sipNrElem];
}


extern "C" {static void *copy_QPrinterInfo(const void *, SIP_SSIZE_T);}
static void *copy_QPrinterInfo(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPrinterInfo(reinterpret_cast<const QPrinterInfo *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPrinterInfo(sipSimpleWrapper *);}
static void dealloc_QPrinterInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPrinterInfo(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPrinterInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPrinterInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPrinterInfo *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPrinterInfo();

            return sipCpp;
        }
    }

    {
        const QPrinterInfo* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPrinterInfo, &a0))
        {
            sipCpp = new QPrinterInfo(*a0);

            return sipCpp;
        }
    }

    {
        const QPrinter* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPrinter, &a0))
        {
            sipCpp = new QPrinterInfo(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPrinterInfo[] = {
    {SIP_MLNAME_CAST(sipName_availablePrinterNames), meth_QPrinterInfo_availablePrinterNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_availablePrinterNames)},
    {SIP_MLNAME_CAST(sipName_availablePrinters), meth_QPrinterInfo_availablePrinters, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_availablePrinters)},
    {SIP_MLNAME_CAST(sipName_defaultDuplexMode), meth_QPrinterInfo_defaultDuplexMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_defaultDuplexMode)},
    {SIP_MLNAME_CAST(sipName_defaultPageSize), meth_QPrinterInfo_defaultPageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_defaultPageSize)},
    {SIP_MLNAME_CAST(sipName_defaultPrinter), meth_QPrinterInfo_defaultPrinter, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_defaultPrinter)},
    {SIP_MLNAME_CAST(sipName_defaultPrinterName), meth_QPrinterInfo_defaultPrinterName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_defaultPrinterName)},
    {SIP_MLNAME_CAST(sipName_description), meth_QPrinterInfo_description, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_description)},
    {SIP_MLNAME_CAST(sipName_isDefault), meth_QPrinterInfo_isDefault, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_isDefault)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QPrinterInfo_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_isNull)},
    {SIP_MLNAME_CAST(sipName_isRemote), meth_QPrinterInfo_isRemote, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_isRemote)},
    {SIP_MLNAME_CAST(sipName_location), meth_QPrinterInfo_location, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_location)},
    {SIP_MLNAME_CAST(sipName_makeAndModel), meth_QPrinterInfo_makeAndModel, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_makeAndModel)},
    {SIP_MLNAME_CAST(sipName_maximumPhysicalPageSize), meth_QPrinterInfo_maximumPhysicalPageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_maximumPhysicalPageSize)},
    {SIP_MLNAME_CAST(sipName_minimumPhysicalPageSize), meth_QPrinterInfo_minimumPhysicalPageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_minimumPhysicalPageSize)},
    {SIP_MLNAME_CAST(sipName_printerInfo), meth_QPrinterInfo_printerInfo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_printerInfo)},
    {SIP_MLNAME_CAST(sipName_printerName), meth_QPrinterInfo_printerName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_printerName)},
    {SIP_MLNAME_CAST(sipName_state), meth_QPrinterInfo_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_state)},
    {SIP_MLNAME_CAST(sipName_supportedDuplexModes), meth_QPrinterInfo_supportedDuplexModes, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_supportedDuplexModes)},
    {SIP_MLNAME_CAST(sipName_supportedPageSizes), meth_QPrinterInfo_supportedPageSizes, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_supportedPageSizes)},
    {SIP_MLNAME_CAST(sipName_supportedPaperSizes), meth_QPrinterInfo_supportedPaperSizes, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_supportedPaperSizes)},
    {SIP_MLNAME_CAST(sipName_supportedResolutions), meth_QPrinterInfo_supportedResolutions, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_supportedResolutions)},
    {SIP_MLNAME_CAST(sipName_supportedSizesWithNames), meth_QPrinterInfo_supportedSizesWithNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_supportedSizesWithNames)},
    {SIP_MLNAME_CAST(sipName_supportsCustomPageSizes), meth_QPrinterInfo_supportsCustomPageSizes, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinterInfo_supportsCustomPageSizes)}
};

PyDoc_STRVAR(doc_QPrinterInfo, "\1QPrinterInfo()\n"
    "QPrinterInfo(QPrinterInfo)\n"
    "QPrinterInfo(QPrinter)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QPrinterInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPrinterInfo,
        {0}
    },
    {
        sipNameNr_QPrinterInfo,
        {0, 0, 1},
        23, methods_QPrinterInfo,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPrinterInfo,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPrinterInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPrinterInfo,
    assign_QPrinterInfo,
    array_QPrinterInfo,
    copy_QPrinterInfo,
    release_QPrinterInfo,
    cast_QPrinterInfo,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 9511 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 9515 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 9518 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintengine.sip"
#include <qprintengine.h>
#line 9521 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 56 "sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 9524 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 9527 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 9532 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 9535 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 9538 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 629 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9541 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 9544 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 9547 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 34 "sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 9550 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 34 "sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 9553 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


class sipQPrinter : public QPrinter
{
public:
    sipQPrinter(QPrinter::PrinterMode);
    sipQPrinter(const QPrinterInfo&,QPrinter::PrinterMode);
    virtual ~sipQPrinter();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtect_setEngines(QPrintEngine*,QPaintEngine*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setPageSize(QPagedPaintDevice::PageSize);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void setMargins(const QPagedPaintDevice::Margins&);
    QPaintEngine* paintEngine() const;
    bool newPage();
    void setPageSizeMM(const QSizeF&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPrinter(const sipQPrinter &);
    sipQPrinter &operator = (const sipQPrinter &);

    char sipPyMethods[6];
};

sipQPrinter::sipQPrinter(QPrinter::PrinterMode a0): QPrinter(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrinter::sipQPrinter(const QPrinterInfo& a0,QPrinter::PrinterMode a1): QPrinter(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrinter::~sipQPrinter()
{
    sipCommonDtor(sipPySelf);
}

void sipQPrinter::setPageSize(QPagedPaintDevice::PageSize a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setPageSize);

    if (!sipMeth)
    {
        QPrinter::setPageSize(a0);
        return;
    }

    typedef void (*sipVH_QtGui_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPagedPaintDevice::PageSize);

    ((sipVH_QtGui_33)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[33]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPrinter::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPrinter::metric(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_28)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrinter::setMargins(const QPagedPaintDevice::Margins& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setMargins);

    if (!sipMeth)
    {
        QPrinter::setMargins(a0);
        return;
    }

    typedef void (*sipVH_QtGui_31)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPagedPaintDevice::Margins&);

    ((sipVH_QtGui_31)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[31]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPrinter::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPrinter::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_29)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[29]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrinter::newPage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_newPage);

    if (!sipMeth)
        return QPrinter::newPage();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPrinter::setPageSizeMM(const QSizeF& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_setPageSizeMM);

    if (!sipMeth)
    {
        QPrinter::setPageSizeMM(a0);
        return;
    }

    typedef void (*sipVH_QtGui_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QSizeF&);

    ((sipVH_QtGui_32)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[32]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPrinter::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QPrinter::metric(a0) : metric(a0));
}

void sipQPrinter::sipProtect_setEngines(QPrintEngine*a0,QPaintEngine*a1)
{
    QPrinter::setEngines(a0,a1);
}


PyDoc_STRVAR(doc_QPrinter_setOutputFormat, "QPrinter.setOutputFormat(QPrinter.OutputFormat)");

extern "C" {static PyObject *meth_QPrinter_setOutputFormat(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setOutputFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::OutputFormat a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_OutputFormat, &a0))
        {
            sipCpp->setOutputFormat(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setOutputFormat, doc_QPrinter_setOutputFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_outputFormat, "QPrinter.outputFormat() -> QPrinter.OutputFormat");

extern "C" {static PyObject *meth_QPrinter_outputFormat(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_outputFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::OutputFormat sipRes;

            sipRes = sipCpp->outputFormat();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_OutputFormat);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_outputFormat, doc_QPrinter_outputFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPrinterName, "QPrinter.setPrinterName(str)");

extern "C" {static PyObject *meth_QPrinter_setPrinterName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPrinterName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setPrinterName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPrinterName, doc_QPrinter_setPrinterName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_printerName, "QPrinter.printerName() -> str");

extern "C" {static PyObject *meth_QPrinter_printerName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_printerName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->printerName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_printerName, doc_QPrinter_printerName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_isValid, "QPrinter.isValid() -> bool");

extern "C" {static PyObject *meth_QPrinter_isValid(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_isValid, doc_QPrinter_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setOutputFileName, "QPrinter.setOutputFileName(str)");

extern "C" {static PyObject *meth_QPrinter_setOutputFileName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setOutputFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setOutputFileName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setOutputFileName, doc_QPrinter_setOutputFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_outputFileName, "QPrinter.outputFileName() -> str");

extern "C" {static PyObject *meth_QPrinter_outputFileName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_outputFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->outputFileName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_outputFileName, doc_QPrinter_outputFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPrintProgram, "QPrinter.setPrintProgram(str)");

extern "C" {static PyObject *meth_QPrinter_setPrintProgram(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPrintProgram(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setPrintProgram(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPrintProgram, doc_QPrinter_setPrintProgram);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_printProgram, "QPrinter.printProgram() -> str");

extern "C" {static PyObject *meth_QPrinter_printProgram(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_printProgram(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->printProgram());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_printProgram, doc_QPrinter_printProgram);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setDocName, "QPrinter.setDocName(str)");

extern "C" {static PyObject *meth_QPrinter_setDocName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setDocName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setDocName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setDocName, doc_QPrinter_setDocName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_docName, "QPrinter.docName() -> str");

extern "C" {static PyObject *meth_QPrinter_docName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_docName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->docName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_docName, doc_QPrinter_docName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setCreator, "QPrinter.setCreator(str)");

extern "C" {static PyObject *meth_QPrinter_setCreator(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setCreator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setCreator(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setCreator, doc_QPrinter_setCreator);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_creator, "QPrinter.creator() -> str");

extern "C" {static PyObject *meth_QPrinter_creator(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_creator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->creator());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_creator, doc_QPrinter_creator);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setOrientation, "QPrinter.setOrientation(QPrinter.Orientation)");

extern "C" {static PyObject *meth_QPrinter_setOrientation(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::Orientation a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_Orientation, &a0))
        {
            sipCpp->setOrientation(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setOrientation, doc_QPrinter_setOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_orientation, "QPrinter.orientation() -> QPrinter.Orientation");

extern "C" {static PyObject *meth_QPrinter_orientation(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_orientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::Orientation sipRes;

            sipRes = sipCpp->orientation();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_Orientation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_orientation, doc_QPrinter_orientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPageSizeMM, "QPrinter.setPageSizeMM(QSizeF)");

extern "C" {static PyObject *meth_QPrinter_setPageSizeMM(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPageSizeMM(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QSizeF* a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QSizeF, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPrinter::setPageSizeMM(*a0) : sipCpp->setPageSizeMM(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPageSizeMM, doc_QPrinter_setPageSizeMM);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPaperSize, "QPrinter.setPaperSize(QPagedPaintDevice.PageSize)\n"
    "QPrinter.setPaperSize(QSizeF, QPrinter.Unit)");

extern "C" {static PyObject *meth_QPrinter_setPaperSize(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPaperSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPagedPaintDevice::PageSize a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPagedPaintDevice_PageSize, &a0))
        {
            sipCpp->setPaperSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QSizeF* a0;
        QPrinter::Unit a1;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QSizeF, &a0, sipType_QPrinter_Unit, &a1))
        {
            sipCpp->setPaperSize(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPaperSize, doc_QPrinter_setPaperSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_paperSize, "QPrinter.paperSize() -> QPagedPaintDevice.PageSize\n"
    "QPrinter.paperSize(QPrinter.Unit) -> QSizeF");

extern "C" {static PyObject *meth_QPrinter_paperSize(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_paperSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPagedPaintDevice::PageSize sipRes;

            sipRes = sipCpp->paperSize();

            return sipConvertFromEnum(sipRes,sipType_QPagedPaintDevice_PageSize);
        }
    }

    {
        QPrinter::Unit a0;
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_Unit, &a0))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->paperSize(a0));

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_paperSize, doc_QPrinter_paperSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPageOrder, "QPrinter.setPageOrder(QPrinter.PageOrder)");

extern "C" {static PyObject *meth_QPrinter_setPageOrder(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPageOrder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::PageOrder a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_PageOrder, &a0))
        {
            sipCpp->setPageOrder(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPageOrder, doc_QPrinter_setPageOrder);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_pageOrder, "QPrinter.pageOrder() -> QPrinter.PageOrder");

extern "C" {static PyObject *meth_QPrinter_pageOrder(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_pageOrder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::PageOrder sipRes;

            sipRes = sipCpp->pageOrder();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_PageOrder);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_pageOrder, doc_QPrinter_pageOrder);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setResolution, "QPrinter.setResolution(int)");

extern "C" {static PyObject *meth_QPrinter_setResolution(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setResolution(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPrinter, &sipCpp, &a0))
        {
            sipCpp->setResolution(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setResolution, doc_QPrinter_setResolution);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_resolution, "QPrinter.resolution() -> int");

extern "C" {static PyObject *meth_QPrinter_resolution(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_resolution(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->resolution();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_resolution, doc_QPrinter_resolution);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setColorMode, "QPrinter.setColorMode(QPrinter.ColorMode)");

extern "C" {static PyObject *meth_QPrinter_setColorMode(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setColorMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::ColorMode a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_ColorMode, &a0))
        {
            sipCpp->setColorMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setColorMode, doc_QPrinter_setColorMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_colorMode, "QPrinter.colorMode() -> QPrinter.ColorMode");

extern "C" {static PyObject *meth_QPrinter_colorMode(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_colorMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::ColorMode sipRes;

            sipRes = sipCpp->colorMode();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_ColorMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_colorMode, doc_QPrinter_colorMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setCollateCopies, "QPrinter.setCollateCopies(bool)");

extern "C" {static PyObject *meth_QPrinter_setCollateCopies(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setCollateCopies(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPrinter, &sipCpp, &a0))
        {
            sipCpp->setCollateCopies(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setCollateCopies, doc_QPrinter_setCollateCopies);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_collateCopies, "QPrinter.collateCopies() -> bool");

extern "C" {static PyObject *meth_QPrinter_collateCopies(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_collateCopies(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->collateCopies();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_collateCopies, doc_QPrinter_collateCopies);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setFullPage, "QPrinter.setFullPage(bool)");

extern "C" {static PyObject *meth_QPrinter_setFullPage(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setFullPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPrinter, &sipCpp, &a0))
        {
            sipCpp->setFullPage(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setFullPage, doc_QPrinter_setFullPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_fullPage, "QPrinter.fullPage() -> bool");

extern "C" {static PyObject *meth_QPrinter_fullPage(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_fullPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fullPage();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_fullPage, doc_QPrinter_fullPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setCopyCount, "QPrinter.setCopyCount(int)");

extern "C" {static PyObject *meth_QPrinter_setCopyCount(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setCopyCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPrinter, &sipCpp, &a0))
        {
            sipCpp->setCopyCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setCopyCount, doc_QPrinter_setCopyCount);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_copyCount, "QPrinter.copyCount() -> int");

extern "C" {static PyObject *meth_QPrinter_copyCount(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_copyCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->copyCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_copyCount, doc_QPrinter_copyCount);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_supportsMultipleCopies, "QPrinter.supportsMultipleCopies() -> bool");

extern "C" {static PyObject *meth_QPrinter_supportsMultipleCopies(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_supportsMultipleCopies(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsMultipleCopies();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_supportsMultipleCopies, doc_QPrinter_supportsMultipleCopies);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPaperSource, "QPrinter.setPaperSource(QPrinter.PaperSource)");

extern "C" {static PyObject *meth_QPrinter_setPaperSource(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPaperSource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::PaperSource a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_PaperSource, &a0))
        {
            sipCpp->setPaperSource(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPaperSource, doc_QPrinter_setPaperSource);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_paperSource, "QPrinter.paperSource() -> QPrinter.PaperSource");

extern "C" {static PyObject *meth_QPrinter_paperSource(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_paperSource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::PaperSource sipRes;

            sipRes = sipCpp->paperSource();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_PaperSource);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_paperSource, doc_QPrinter_paperSource);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setDuplex, "QPrinter.setDuplex(QPrinter.DuplexMode)");

extern "C" {static PyObject *meth_QPrinter_setDuplex(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setDuplex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::DuplexMode a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_DuplexMode, &a0))
        {
            sipCpp->setDuplex(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setDuplex, doc_QPrinter_setDuplex);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_duplex, "QPrinter.duplex() -> QPrinter.DuplexMode");

extern "C" {static PyObject *meth_QPrinter_duplex(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_duplex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::DuplexMode sipRes;

            sipRes = sipCpp->duplex();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_DuplexMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_duplex, doc_QPrinter_duplex);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_supportedResolutions, "QPrinter.supportedResolutions() -> list-of-int");

extern "C" {static PyObject *meth_QPrinter_supportedResolutions(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_supportedResolutions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QList<int>*sipRes;

            sipRes = new QList<int>(sipCpp->supportedResolutions());

            return sipConvertFromNewType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_supportedResolutions, doc_QPrinter_supportedResolutions);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setFontEmbeddingEnabled, "QPrinter.setFontEmbeddingEnabled(bool)");

extern "C" {static PyObject *meth_QPrinter_setFontEmbeddingEnabled(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setFontEmbeddingEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPrinter, &sipCpp, &a0))
        {
            sipCpp->setFontEmbeddingEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setFontEmbeddingEnabled, doc_QPrinter_setFontEmbeddingEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_fontEmbeddingEnabled, "QPrinter.fontEmbeddingEnabled() -> bool");

extern "C" {static PyObject *meth_QPrinter_fontEmbeddingEnabled(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_fontEmbeddingEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fontEmbeddingEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_fontEmbeddingEnabled, doc_QPrinter_fontEmbeddingEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setDoubleSidedPrinting, "QPrinter.setDoubleSidedPrinting(bool)");

extern "C" {static PyObject *meth_QPrinter_setDoubleSidedPrinting(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setDoubleSidedPrinting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPrinter, &sipCpp, &a0))
        {
            sipCpp->setDoubleSidedPrinting(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setDoubleSidedPrinting, doc_QPrinter_setDoubleSidedPrinting);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_doubleSidedPrinting, "QPrinter.doubleSidedPrinting() -> bool");

extern "C" {static PyObject *meth_QPrinter_doubleSidedPrinting(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_doubleSidedPrinting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->doubleSidedPrinting();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_doubleSidedPrinting, doc_QPrinter_doubleSidedPrinting);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_paperRect, "QPrinter.paperRect() -> QRect\n"
    "QPrinter.paperRect(QPrinter.Unit) -> QRectF");

extern "C" {static PyObject *meth_QPrinter_paperRect(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_paperRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->paperRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    {
        QPrinter::Unit a0;
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_Unit, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->paperRect(a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_paperRect, doc_QPrinter_paperRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_pageRect, "QPrinter.pageRect() -> QRect\n"
    "QPrinter.pageRect(QPrinter.Unit) -> QRectF");

extern "C" {static PyObject *meth_QPrinter_pageRect(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_pageRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->pageRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    {
        QPrinter::Unit a0;
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_Unit, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->pageRect(a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_pageRect, doc_QPrinter_pageRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_printerSelectionOption, "QPrinter.printerSelectionOption() -> str");

extern "C" {static PyObject *meth_QPrinter_printerSelectionOption(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_printerSelectionOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->printerSelectionOption());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_printerSelectionOption, doc_QPrinter_printerSelectionOption);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPrinterSelectionOption, "QPrinter.setPrinterSelectionOption(str)");

extern "C" {static PyObject *meth_QPrinter_setPrinterSelectionOption(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPrinterSelectionOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setPrinterSelectionOption(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPrinterSelectionOption, doc_QPrinter_setPrinterSelectionOption);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_newPage, "QPrinter.newPage() -> bool");

extern "C" {static PyObject *meth_QPrinter_newPage(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_newPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QPrinter::newPage() : sipCpp->newPage());

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_newPage, doc_QPrinter_newPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_abort, "QPrinter.abort() -> bool");

extern "C" {static PyObject *meth_QPrinter_abort(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->abort();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_abort, doc_QPrinter_abort);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_printerState, "QPrinter.printerState() -> QPrinter.PrinterState");

extern "C" {static PyObject *meth_QPrinter_printerState(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_printerState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::PrinterState sipRes;

            sipRes = sipCpp->printerState();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_PrinterState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_printerState, doc_QPrinter_printerState);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_paintEngine, "QPrinter.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QPrinter_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPaintEngine*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QPrinter::paintEngine() : sipCpp->paintEngine());

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_paintEngine, doc_QPrinter_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_printEngine, "QPrinter.printEngine() -> QPrintEngine");

extern "C" {static PyObject *meth_QPrinter_printEngine(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_printEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrintEngine*sipRes;

            sipRes = sipCpp->printEngine();

            return sipConvertFromType(sipRes,sipType_QPrintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_printEngine, doc_QPrinter_printEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setFromTo, "QPrinter.setFromTo(int, int)");

extern "C" {static PyObject *meth_QPrinter_setFromTo(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setFromTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QPrinter, &sipCpp, &a0, &a1))
        {
            sipCpp->setFromTo(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setFromTo, doc_QPrinter_setFromTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_fromPage, "QPrinter.fromPage() -> int");

extern "C" {static PyObject *meth_QPrinter_fromPage(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_fromPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->fromPage();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_fromPage, doc_QPrinter_fromPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_toPage, "QPrinter.toPage() -> int");

extern "C" {static PyObject *meth_QPrinter_toPage(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_toPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->toPage();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_toPage, doc_QPrinter_toPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPrintRange, "QPrinter.setPrintRange(QPrinter.PrintRange)");

extern "C" {static PyObject *meth_QPrinter_setPrintRange(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPrintRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrinter::PrintRange a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_PrintRange, &a0))
        {
            sipCpp->setPrintRange(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPrintRange, doc_QPrinter_setPrintRange);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_printRange, "QPrinter.printRange() -> QPrinter.PrintRange");

extern "C" {static PyObject *meth_QPrinter_printRange(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_printRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QPrinter::PrintRange sipRes;

            sipRes = sipCpp->printRange();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_PrintRange);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_printRange, doc_QPrinter_printRange);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setMargins, "QPrinter.setMargins(QPagedPaintDevice.Margins)");

extern "C" {static PyObject *meth_QPrinter_setMargins(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPagedPaintDevice::Margins* a0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPagedPaintDevice_Margins, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPrinter::setMargins(*a0) : sipCpp->setMargins(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setMargins, doc_QPrinter_setMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPageMargins, "QPrinter.setPageMargins(float, float, float, float, QPrinter.Unit)");

extern "C" {static PyObject *meth_QPrinter_setPageMargins(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPageMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        QPrinter::Unit a4;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BddddE", &sipSelf, sipType_QPrinter, &sipCpp, &a0, &a1, &a2, &a3, sipType_QPrinter_Unit, &a4))
        {
            sipCpp->setPageMargins(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPageMargins, doc_QPrinter_setPageMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_getPageMargins, "QPrinter.getPageMargins(QPrinter.Unit) -> (float, float, float, float)");

extern "C" {static PyObject *meth_QPrinter_getPageMargins(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_getPageMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        QPrinter::Unit a4;
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrinter_Unit, &a4))
        {
            sipCpp->getPageMargins(&a0,&a1,&a2,&a3,a4);

            return sipBuildResult(0,"(dddd)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_getPageMargins, doc_QPrinter_getPageMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_metric, "QPrinter.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPrinter_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrinter_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPrinter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_metric, doc_QPrinter_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setEngines, "QPrinter.setEngines(QPrintEngine, QPaintEngine)");

extern "C" {static PyObject *meth_QPrinter_setEngines(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setEngines(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintEngine* a0;
        QPaintEngine* a1;
        sipQPrinter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J8", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QPrintEngine, &a0, sipType_QPaintEngine, &a1))
        {
            sipCpp->sipProtect_setEngines(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setEngines, doc_QPrinter_setEngines);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_setPaperName, "QPrinter.setPaperName(str)");

extern "C" {static PyObject *meth_QPrinter_setPaperName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_setPaperName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrinter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setPaperName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_setPaperName, doc_QPrinter_setPaperName);

    return NULL;
}


PyDoc_STRVAR(doc_QPrinter_paperName, "QPrinter.paperName() -> str");

extern "C" {static PyObject *meth_QPrinter_paperName(PyObject *, PyObject *);}
static PyObject *meth_QPrinter_paperName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrinter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrinter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->paperName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrinter, sipName_paperName, doc_QPrinter_paperName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPrinter(void *, const sipTypeDef *);}
static void *cast_QPrinter(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPrinter)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPagedPaintDevice)->ctd_cast((QPagedPaintDevice *)(QPrinter *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPrinter(void *, int);}
static void release_QPrinter(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPrinter *>(sipCppV);
    else
        delete reinterpret_cast<QPrinter *>(sipCppV);
}


extern "C" {static void dealloc_QPrinter(sipSimpleWrapper *);}
static void dealloc_QPrinter(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPrinter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPrinter(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPrinter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPrinter(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPrinter *sipCpp = 0;

    {
        QPrinter::PrinterMode a0 = QPrinter::ScreenResolution;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|E", sipType_QPrinter_PrinterMode, &a0))
        {
            sipCpp = new sipQPrinter(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QPrinterInfo* a0;
        QPrinter::PrinterMode a1 = QPrinter::ScreenResolution;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|E", sipType_QPrinterInfo, &a0, sipType_QPrinter_PrinterMode, &a1))
        {
            sipCpp = new sipQPrinter(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPrinter[] = {{180, 1, 1}};


static PyMethodDef methods_QPrinter[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QPrinter_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_abort)},
    {SIP_MLNAME_CAST(sipName_collateCopies), meth_QPrinter_collateCopies, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_collateCopies)},
    {SIP_MLNAME_CAST(sipName_colorMode), meth_QPrinter_colorMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_colorMode)},
    {SIP_MLNAME_CAST(sipName_copyCount), meth_QPrinter_copyCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_copyCount)},
    {SIP_MLNAME_CAST(sipName_creator), meth_QPrinter_creator, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_creator)},
    {SIP_MLNAME_CAST(sipName_docName), meth_QPrinter_docName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_docName)},
    {SIP_MLNAME_CAST(sipName_doubleSidedPrinting), meth_QPrinter_doubleSidedPrinting, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_doubleSidedPrinting)},
    {SIP_MLNAME_CAST(sipName_duplex), meth_QPrinter_duplex, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_duplex)},
    {SIP_MLNAME_CAST(sipName_fontEmbeddingEnabled), meth_QPrinter_fontEmbeddingEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_fontEmbeddingEnabled)},
    {SIP_MLNAME_CAST(sipName_fromPage), meth_QPrinter_fromPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_fromPage)},
    {SIP_MLNAME_CAST(sipName_fullPage), meth_QPrinter_fullPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_fullPage)},
    {SIP_MLNAME_CAST(sipName_getPageMargins), meth_QPrinter_getPageMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_getPageMargins)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QPrinter_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_isValid)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPrinter_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPrinter_metric)},
    {SIP_MLNAME_CAST(sipName_newPage), meth_QPrinter_newPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_newPage)},
    {SIP_MLNAME_CAST(sipName_orientation), meth_QPrinter_orientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_orientation)},
    {SIP_MLNAME_CAST(sipName_outputFileName), meth_QPrinter_outputFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_outputFileName)},
    {SIP_MLNAME_CAST(sipName_outputFormat), meth_QPrinter_outputFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_outputFormat)},
    {SIP_MLNAME_CAST(sipName_pageOrder), meth_QPrinter_pageOrder, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_pageOrder)},
    {SIP_MLNAME_CAST(sipName_pageRect), meth_QPrinter_pageRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_pageRect)},
    {SIP_MLNAME_CAST(sipName_paintEngine), meth_QPrinter_paintEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_paintEngine)},
    {SIP_MLNAME_CAST(sipName_paperName), meth_QPrinter_paperName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_paperName)},
    {SIP_MLNAME_CAST(sipName_paperRect), meth_QPrinter_paperRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_paperRect)},
    {SIP_MLNAME_CAST(sipName_paperSize), meth_QPrinter_paperSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_paperSize)},
    {SIP_MLNAME_CAST(sipName_paperSource), meth_QPrinter_paperSource, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_paperSource)},
    {SIP_MLNAME_CAST(sipName_printEngine), meth_QPrinter_printEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_printEngine)},
    {SIP_MLNAME_CAST(sipName_printProgram), meth_QPrinter_printProgram, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_printProgram)},
    {SIP_MLNAME_CAST(sipName_printRange), meth_QPrinter_printRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_printRange)},
    {SIP_MLNAME_CAST(sipName_printerName), meth_QPrinter_printerName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_printerName)},
    {SIP_MLNAME_CAST(sipName_printerSelectionOption), meth_QPrinter_printerSelectionOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_printerSelectionOption)},
    {SIP_MLNAME_CAST(sipName_printerState), meth_QPrinter_printerState, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_printerState)},
    {SIP_MLNAME_CAST(sipName_resolution), meth_QPrinter_resolution, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_resolution)},
    {SIP_MLNAME_CAST(sipName_setCollateCopies), meth_QPrinter_setCollateCopies, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setCollateCopies)},
    {SIP_MLNAME_CAST(sipName_setColorMode), meth_QPrinter_setColorMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setColorMode)},
    {SIP_MLNAME_CAST(sipName_setCopyCount), meth_QPrinter_setCopyCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setCopyCount)},
    {SIP_MLNAME_CAST(sipName_setCreator), meth_QPrinter_setCreator, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setCreator)},
    {SIP_MLNAME_CAST(sipName_setDocName), meth_QPrinter_setDocName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setDocName)},
    {SIP_MLNAME_CAST(sipName_setDoubleSidedPrinting), meth_QPrinter_setDoubleSidedPrinting, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setDoubleSidedPrinting)},
    {SIP_MLNAME_CAST(sipName_setDuplex), meth_QPrinter_setDuplex, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setDuplex)},
    {SIP_MLNAME_CAST(sipName_setEngines), (PyCFunction)meth_QPrinter_setEngines, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPrinter_setEngines)},
    {SIP_MLNAME_CAST(sipName_setFontEmbeddingEnabled), meth_QPrinter_setFontEmbeddingEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setFontEmbeddingEnabled)},
    {SIP_MLNAME_CAST(sipName_setFromTo), meth_QPrinter_setFromTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setFromTo)},
    {SIP_MLNAME_CAST(sipName_setFullPage), meth_QPrinter_setFullPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setFullPage)},
    {SIP_MLNAME_CAST(sipName_setMargins), meth_QPrinter_setMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setMargins)},
    {SIP_MLNAME_CAST(sipName_setOrientation), meth_QPrinter_setOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setOrientation)},
    {SIP_MLNAME_CAST(sipName_setOutputFileName), meth_QPrinter_setOutputFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setOutputFileName)},
    {SIP_MLNAME_CAST(sipName_setOutputFormat), meth_QPrinter_setOutputFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setOutputFormat)},
    {SIP_MLNAME_CAST(sipName_setPageMargins), meth_QPrinter_setPageMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPageMargins)},
    {SIP_MLNAME_CAST(sipName_setPageOrder), meth_QPrinter_setPageOrder, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPageOrder)},
    {SIP_MLNAME_CAST(sipName_setPageSizeMM), meth_QPrinter_setPageSizeMM, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPageSizeMM)},
    {SIP_MLNAME_CAST(sipName_setPaperName), meth_QPrinter_setPaperName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPaperName)},
    {SIP_MLNAME_CAST(sipName_setPaperSize), meth_QPrinter_setPaperSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPaperSize)},
    {SIP_MLNAME_CAST(sipName_setPaperSource), meth_QPrinter_setPaperSource, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPaperSource)},
    {SIP_MLNAME_CAST(sipName_setPrintProgram), meth_QPrinter_setPrintProgram, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPrintProgram)},
    {SIP_MLNAME_CAST(sipName_setPrintRange), meth_QPrinter_setPrintRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPrintRange)},
    {SIP_MLNAME_CAST(sipName_setPrinterName), meth_QPrinter_setPrinterName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPrinterName)},
    {SIP_MLNAME_CAST(sipName_setPrinterSelectionOption), meth_QPrinter_setPrinterSelectionOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setPrinterSelectionOption)},
    {SIP_MLNAME_CAST(sipName_setResolution), meth_QPrinter_setResolution, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_setResolution)},
    {SIP_MLNAME_CAST(sipName_supportedResolutions), meth_QPrinter_supportedResolutions, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_supportedResolutions)},
    {SIP_MLNAME_CAST(sipName_supportsMultipleCopies), meth_QPrinter_supportsMultipleCopies, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_supportsMultipleCopies)},
    {SIP_MLNAME_CAST(sipName_toPage), meth_QPrinter_toPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrinter_toPage)}
};

static sipEnumMemberDef enummembers_QPrinter[] = {
    {sipName_Aborted, static_cast<int>(QPrinter::Aborted), 26},
    {sipName_Active, static_cast<int>(QPrinter::Active), 26},
    {sipName_AllPages, static_cast<int>(QPrinter::AllPages), 24},
    {sipName_Auto, static_cast<int>(QPrinter::Auto), 23},
    {sipName_Cassette, static_cast<int>(QPrinter::Cassette), 23},
    {sipName_Cicero, static_cast<int>(QPrinter::Cicero), 27},
    {sipName_Color, static_cast<int>(QPrinter::Color), 18},
    {sipName_CurrentPage, static_cast<int>(QPrinter::CurrentPage), 24},
    {sipName_CustomSource, static_cast<int>(QPrinter::CustomSource), 23},
    {sipName_DevicePixel, static_cast<int>(QPrinter::DevicePixel), 27},
    {sipName_Didot, static_cast<int>(QPrinter::Didot), 27},
    {sipName_DuplexAuto, static_cast<int>(QPrinter::DuplexAuto), 19},
    {sipName_DuplexLongSide, static_cast<int>(QPrinter::DuplexLongSide), 19},
    {sipName_DuplexNone, static_cast<int>(QPrinter::DuplexNone), 19},
    {sipName_DuplexShortSide, static_cast<int>(QPrinter::DuplexShortSide), 19},
    {sipName_Envelope, static_cast<int>(QPrinter::Envelope), 23},
    {sipName_EnvelopeManual, static_cast<int>(QPrinter::EnvelopeManual), 23},
    {sipName_Error, static_cast<int>(QPrinter::Error), 26},
    {sipName_FirstPageFirst, static_cast<int>(QPrinter::FirstPageFirst), 22},
    {sipName_FormSource, static_cast<int>(QPrinter::FormSource), 23},
    {sipName_GrayScale, static_cast<int>(QPrinter::GrayScale), 18},
    {sipName_HighResolution, static_cast<int>(QPrinter::HighResolution), 25},
    {sipName_Idle, static_cast<int>(QPrinter::Idle), 26},
    {sipName_Inch, static_cast<int>(QPrinter::Inch), 27},
    {sipName_Landscape, static_cast<int>(QPrinter::Landscape), 20},
    {sipName_LargeCapacity, static_cast<int>(QPrinter::LargeCapacity), 23},
    {sipName_LargeFormat, static_cast<int>(QPrinter::LargeFormat), 23},
    {sipName_LastPageFirst, static_cast<int>(QPrinter::LastPageFirst), 22},
    {sipName_LastPaperSource, static_cast<int>(QPrinter::LastPaperSource), 23},
    {sipName_Lower, static_cast<int>(QPrinter::Lower), 23},
    {sipName_Manual, static_cast<int>(QPrinter::Manual), 23},
    {sipName_MaxPageSource, static_cast<int>(QPrinter::MaxPageSource), 23},
    {sipName_Middle, static_cast<int>(QPrinter::Middle), 23},
    {sipName_Millimeter, static_cast<int>(QPrinter::Millimeter), 27},
    {sipName_NativeFormat, static_cast<int>(QPrinter::NativeFormat), 21},
    {sipName_OnlyOne, static_cast<int>(QPrinter::OnlyOne), 23},
    {sipName_PageRange, static_cast<int>(QPrinter::PageRange), 24},
    {sipName_PdfFormat, static_cast<int>(QPrinter::PdfFormat), 21},
    {sipName_Pica, static_cast<int>(QPrinter::Pica), 27},
    {sipName_Point, static_cast<int>(QPrinter::Point), 27},
    {sipName_Portrait, static_cast<int>(QPrinter::Portrait), 20},
    {sipName_PrinterResolution, static_cast<int>(QPrinter::PrinterResolution), 25},
    {sipName_ScreenResolution, static_cast<int>(QPrinter::ScreenResolution), 25},
    {sipName_Selection, static_cast<int>(QPrinter::Selection), 24},
    {sipName_SmallFormat, static_cast<int>(QPrinter::SmallFormat), 23},
    {sipName_Tractor, static_cast<int>(QPrinter::Tractor), 23},
    {sipName_Upper, static_cast<int>(QPrinter::Upper), 23},
};

PyDoc_STRVAR(doc_QPrinter, "\1QPrinter(QPrinter.PrinterMode mode=QPrinter.ScreenResolution)\n"
    "QPrinter(QPrinterInfo, QPrinter.PrinterMode mode=QPrinter.ScreenResolution)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QPrinter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPrinter,
        {0}
    },
    {
        sipNameNr_QPrinter,
        {0, 0, 1},
        61, methods_QPrinter,
        47, enummembers_QPrinter,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPrinter,
    -1,
    -1,
    supers_QPrinter,
    0,
    init_type_QPrinter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPrinter,
    0,
    0,
    0,
    release_QPrinter,
    cast_QPrinter,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintengine.sip"
#include <qprintengine.h>
#line 11717 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 11721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 11724 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 11727 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


class sipQPrintEngine : public QPrintEngine
{
public:
    sipQPrintEngine();
    sipQPrintEngine(const QPrintEngine&);
    virtual ~sipQPrintEngine();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QPrinter::PrinterState printerState() const;
    int metric(QPaintDevice::PaintDeviceMetric) const;
    bool abort();
    bool newPage();
    QVariant property(QPrintEngine::PrintEnginePropertyKey) const;
    void setProperty(QPrintEngine::PrintEnginePropertyKey,const QVariant&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPrintEngine(const sipQPrintEngine &);
    sipQPrintEngine &operator = (const sipQPrintEngine &);

    char sipPyMethods[6];
};

sipQPrintEngine::sipQPrintEngine(): QPrintEngine(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintEngine::sipQPrintEngine(const QPrintEngine& a0): QPrintEngine(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintEngine::~sipQPrintEngine()
{
    sipCommonDtor(sipPySelf);
}

QPrinter::PrinterState sipQPrintEngine::printerState() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_QPrintEngine,sipName_printerState);

    if (!sipMeth)
        return (QPrinter::PrinterState)0;

    extern QPrinter::PrinterState sipVH_QtPrintSupport_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtPrintSupport_0(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPrintEngine::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_QPrintEngine,sipName_metric);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_28)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPrintEngine::abort()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_QPrintEngine,sipName_abort);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintEngine::newPage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_QPrintEngine,sipName_newPage);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QVariant sipQPrintEngine::property(QPrintEngine::PrintEnginePropertyKey a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_QPrintEngine,sipName_property);

    if (!sipMeth)
        return QVariant();

    extern QVariant sipVH_QtPrintSupport_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPrintEngine::PrintEnginePropertyKey);

    return sipVH_QtPrintSupport_1(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintEngine::setProperty(QPrintEngine::PrintEnginePropertyKey a0,const QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_QPrintEngine,sipName_setProperty);

    if (!sipMeth)
        return;

    extern void sipVH_QtPrintSupport_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPrintEngine::PrintEnginePropertyKey,const QVariant&);

    sipVH_QtPrintSupport_2(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}


PyDoc_STRVAR(doc_QPrintEngine_setProperty, "QPrintEngine.setProperty(QPrintEngine.PrintEnginePropertyKey, QVariant)");

extern "C" {static PyObject *meth_QPrintEngine_setProperty(PyObject *, PyObject *);}
static PyObject *meth_QPrintEngine_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPrintEngine::PrintEnginePropertyKey a0;
        const QVariant* a1;
        int a1State = 0;
        QPrintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QPrintEngine, &sipCpp, sipType_QPrintEngine_PrintEnginePropertyKey, &a0, sipType_QVariant, &a1, &a1State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPrintEngine, sipName_setProperty);
                return NULL;
            }

            sipCpp->setProperty(a0,*a1);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintEngine, sipName_setProperty, doc_QPrintEngine_setProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintEngine_property, "QPrintEngine.property(QPrintEngine.PrintEnginePropertyKey) -> QVariant");

extern "C" {static PyObject *meth_QPrintEngine_property(PyObject *, PyObject *);}
static PyObject *meth_QPrintEngine_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPrintEngine::PrintEnginePropertyKey a0;
        const QPrintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrintEngine, &sipCpp, sipType_QPrintEngine_PrintEnginePropertyKey, &a0))
        {
            QVariant*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPrintEngine, sipName_property);
                return NULL;
            }

            sipRes = new QVariant(sipCpp->property(a0));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintEngine, sipName_property, doc_QPrintEngine_property);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintEngine_newPage, "QPrintEngine.newPage() -> bool");

extern "C" {static PyObject *meth_QPrintEngine_newPage(PyObject *, PyObject *);}
static PyObject *meth_QPrintEngine_newPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPrintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintEngine, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPrintEngine, sipName_newPage);
                return NULL;
            }

            sipRes = sipCpp->newPage();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintEngine, sipName_newPage, doc_QPrintEngine_newPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintEngine_abort, "QPrintEngine.abort() -> bool");

extern "C" {static PyObject *meth_QPrintEngine_abort(PyObject *, PyObject *);}
static PyObject *meth_QPrintEngine_abort(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPrintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintEngine, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPrintEngine, sipName_abort);
                return NULL;
            }

            sipRes = sipCpp->abort();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintEngine, sipName_abort, doc_QPrintEngine_abort);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintEngine_metric, "QPrintEngine.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPrintEngine_metric(PyObject *, PyObject *);}
static PyObject *meth_QPrintEngine_metric(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPaintDevice::PaintDeviceMetric a0;
        const QPrintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrintEngine, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPrintEngine, sipName_metric);
                return NULL;
            }

            sipRes = sipCpp->metric(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintEngine, sipName_metric, doc_QPrintEngine_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintEngine_printerState, "QPrintEngine.printerState() -> QPrinter.PrinterState");

extern "C" {static PyObject *meth_QPrintEngine_printerState(PyObject *, PyObject *);}
static PyObject *meth_QPrintEngine_printerState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QPrintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintEngine, &sipCpp))
        {
            QPrinter::PrinterState sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPrintEngine, sipName_printerState);
                return NULL;
            }

            sipRes = sipCpp->printerState();

            return sipConvertFromEnum(sipRes,sipType_QPrinter_PrinterState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintEngine, sipName_printerState, doc_QPrintEngine_printerState);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPrintEngine(void *, const sipTypeDef *);}
static void *cast_QPrintEngine(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPrintEngine)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPrintEngine(void *, int);}
static void release_QPrintEngine(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPrintEngine *>(sipCppV);
    else
        delete reinterpret_cast<QPrintEngine *>(sipCppV);
}


extern "C" {static void dealloc_QPrintEngine(sipSimpleWrapper *);}
static void dealloc_QPrintEngine(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPrintEngine *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPrintEngine(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPrintEngine(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPrintEngine(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPrintEngine *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQPrintEngine();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QPrintEngine* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPrintEngine, &a0))
        {
            sipCpp = new sipQPrintEngine(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPrintEngine[] = {
    {SIP_MLNAME_CAST(sipName_abort), meth_QPrintEngine_abort, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintEngine_abort)},
    {SIP_MLNAME_CAST(sipName_metric), meth_QPrintEngine_metric, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintEngine_metric)},
    {SIP_MLNAME_CAST(sipName_newPage), meth_QPrintEngine_newPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintEngine_newPage)},
    {SIP_MLNAME_CAST(sipName_printerState), meth_QPrintEngine_printerState, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintEngine_printerState)},
    {SIP_MLNAME_CAST(sipName_property), meth_QPrintEngine_property, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintEngine_property)},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_QPrintEngine_setProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintEngine_setProperty)}
};

static sipEnumMemberDef enummembers_QPrintEngine[] = {
    {sipName_PPK_CollateCopies, static_cast<int>(QPrintEngine::PPK_CollateCopies), 12},
    {sipName_PPK_ColorMode, static_cast<int>(QPrintEngine::PPK_ColorMode), 12},
    {sipName_PPK_CopyCount, static_cast<int>(QPrintEngine::PPK_CopyCount), 12},
    {sipName_PPK_Creator, static_cast<int>(QPrintEngine::PPK_Creator), 12},
    {sipName_PPK_CustomBase, static_cast<int>(QPrintEngine::PPK_CustomBase), 12},
    {sipName_PPK_CustomPaperSize, static_cast<int>(QPrintEngine::PPK_CustomPaperSize), 12},
    {sipName_PPK_DocumentName, static_cast<int>(QPrintEngine::PPK_DocumentName), 12},
    {sipName_PPK_Duplex, static_cast<int>(QPrintEngine::PPK_Duplex), 12},
    {sipName_PPK_FontEmbedding, static_cast<int>(QPrintEngine::PPK_FontEmbedding), 12},
    {sipName_PPK_FullPage, static_cast<int>(QPrintEngine::PPK_FullPage), 12},
    {sipName_PPK_NumberOfCopies, static_cast<int>(QPrintEngine::PPK_NumberOfCopies), 12},
    {sipName_PPK_Orientation, static_cast<int>(QPrintEngine::PPK_Orientation), 12},
    {sipName_PPK_OutputFileName, static_cast<int>(QPrintEngine::PPK_OutputFileName), 12},
    {sipName_PPK_PageMargins, static_cast<int>(QPrintEngine::PPK_PageMargins), 12},
    {sipName_PPK_PageOrder, static_cast<int>(QPrintEngine::PPK_PageOrder), 12},
    {sipName_PPK_PageRect, static_cast<int>(QPrintEngine::PPK_PageRect), 12},
    {sipName_PPK_PageSize, static_cast<int>(QPrintEngine::PPK_PageSize), 12},
    {sipName_PPK_PaperName, static_cast<int>(QPrintEngine::PPK_PaperName), 12},
    {sipName_PPK_PaperRect, static_cast<int>(QPrintEngine::PPK_PaperRect), 12},
    {sipName_PPK_PaperSize, static_cast<int>(QPrintEngine::PPK_PaperSize), 12},
    {sipName_PPK_PaperSource, static_cast<int>(QPrintEngine::PPK_PaperSource), 12},
    {sipName_PPK_PaperSources, static_cast<int>(QPrintEngine::PPK_PaperSources), 12},
    {sipName_PPK_PrinterName, static_cast<int>(QPrintEngine::PPK_PrinterName), 12},
    {sipName_PPK_PrinterProgram, static_cast<int>(QPrintEngine::PPK_PrinterProgram), 12},
    {sipName_PPK_QPageLayout, static_cast<int>(QPrintEngine::PPK_QPageLayout), 12},
    {sipName_PPK_QPageMargins, static_cast<int>(QPrintEngine::PPK_QPageMargins), 12},
    {sipName_PPK_QPageSize, static_cast<int>(QPrintEngine::PPK_QPageSize), 12},
    {sipName_PPK_Resolution, static_cast<int>(QPrintEngine::PPK_Resolution), 12},
    {sipName_PPK_SelectionOption, static_cast<int>(QPrintEngine::PPK_SelectionOption), 12},
    {sipName_PPK_SupportedResolutions, static_cast<int>(QPrintEngine::PPK_SupportedResolutions), 12},
    {sipName_PPK_SupportsMultipleCopies, static_cast<int>(QPrintEngine::PPK_SupportsMultipleCopies), 12},
    {sipName_PPK_WindowsPageSize, static_cast<int>(QPrintEngine::PPK_WindowsPageSize), 12},
};

PyDoc_STRVAR(doc_QPrintEngine, "\1QPrintEngine()\n"
    "QPrintEngine(QPrintEngine)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QPrintEngine = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPrintEngine,
        {0}
    },
    {
        sipNameNr_QPrintEngine,
        {0, 0, 1},
        6, methods_QPrintEngine,
        32, enummembers_QPrintEngine,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPrintEngine,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPrintEngine,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPrintEngine,
    0,
    0,
    0,
    release_QPrintEngine,
    cast_QPrintEngine,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintdialog.sip"
#include <qprintdialog.h>
#line 12247 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 12251 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 12254 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
#include <qabstractprintdialog.h>
#line 12257 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
#include <qabstractprintdialog.h>
#line 12260 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12263 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 12266 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12269 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 452 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12272 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 395 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12275 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 430 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12278 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 408 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12281 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 333 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12284 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 12287 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 12290 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qicon.sip"
#include <qicon.h>
#line 12293 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 12296 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 12299 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 12302 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12305 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 12308 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 12311 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12314 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 12317 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12320 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12323 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 12326 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 12329 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 12332 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 12335 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 12338 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 12341 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qregion.sip"
#include <qregion.h>
#line 12344 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 12347 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 12350 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 12353 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qfont.sip"
#include <qfont.h>
#line 12356 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 12359 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 479 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12362 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 441 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12365 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 534 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12368 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 583 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12371 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 556 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12374 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 572 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12377 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 635 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12380 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 275 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12383 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 382 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12386 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 368 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12389 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 354 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12392 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 247 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12395 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 202 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12398 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 56 "sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 12401 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12404 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qaction.sip"
#include <qaction.h>
#line 12407 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qlayout.sip"
#include <qlayout.h>
#line 12410 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 12413 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12416 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 12419 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 12422 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 12425 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 12428 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qstyle.sip"
#include <qstyle.h>
#line 12431 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 12434 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12437 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 12440 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12443 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12446 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 12449 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 12452 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 12455 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 12458 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 12461 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


class sipQPrintDialog : public QPrintDialog
{
public:
    sipQPrintDialog(QPrinter*,QWidget*);
    sipQPrintDialog(QWidget*);
    virtual ~sipQPrintDialog();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    bool sipProtectVirt_event(bool,QEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_enterEvent(bool,QEvent*);
    void sipProtectVirt_leaveEvent(bool,QEvent*);
    void sipProtectVirt_paintEvent(bool,QPaintEvent*);
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);
    void sipProtectVirt_actionEvent(bool,QActionEvent*);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent*);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent*);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent*);
    void sipProtectVirt_dropEvent(bool,QDropEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    void sipProtectVirt_changeEvent(bool,QEvent*);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent*);
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    bool sipProtectVirt_nativeEvent(bool,const QByteArray&,void*,long*);
    QPainter* sipProtectVirt_sharedPainter(bool) const;
    void sipProtectVirt_initPainter(bool,QPainter*) const;
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_closeEvent(bool,QCloseEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent*);
    bool sipProtectVirt_eventFilter(bool,QObject*,QEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    void initPainter(QPainter*) const;
    QPainter* sharedPainter() const;
    bool nativeEvent(const QByteArray&,void*,long*);
    bool hasHeightForWidth() const;
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    int devType() const;
    bool eventFilter(QObject*,QEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void resizeEvent(QResizeEvent*);
    void showEvent(QShowEvent*);
    void closeEvent(QCloseEvent*);
    void keyPressEvent(QKeyEvent*);
    void reject();
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void open();
    void setVisible(bool);
    void done(int);
    void accept();
    int exec();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPrintDialog(const sipQPrintDialog &);
    sipQPrintDialog &operator = (const sipQPrintDialog &);

    char sipPyMethods[51];
};

sipQPrintDialog::sipQPrintDialog(QPrinter*a0,QWidget*a1): QPrintDialog(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintDialog::sipQPrintDialog(QWidget*a0): QPrintDialog(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPrintDialog::~sipQPrintDialog()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQPrintDialog::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtPrintSupport_qt_metaobject(sipPySelf,sipType_QPrintDialog);
}

int sipQPrintDialog::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QPrintDialog::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtPrintSupport_qt_metacall(sipPySelf,sipType_QPrintDialog,_c,_id,_a);

    return _id;
}

void *sipQPrintDialog::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtPrintSupport_qt_metacast(sipPySelf, sipType_QPrintDialog, _clname, &sipCpp) ? sipCpp : QPrintDialog::qt_metacast(_clname));
}

void sipQPrintDialog::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QPrintDialog::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QPrintDialog::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QPrintDialog::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QPrintDialog::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QPrintDialog::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::initPainter(QPainter*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_initPainter);

    if (!sipMeth)
    {
        QPrintDialog::initPainter(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*);

    ((sipVH_QtWidgets_3)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPainter* sipQPrintDialog::sharedPainter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_sharedPainter);

    if (!sipMeth)
        return QPrintDialog::sharedPainter();

    typedef QPainter* (*sipVH_QtWidgets_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtWidgets_4)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintDialog::nativeEvent(const QByteArray& a0,void*a1,long*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_nativeEvent);

    if (!sipMeth)
        return QPrintDialog::nativeEvent(a0,a1,a2);

    typedef bool (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&,void*,long*);

    return ((sipVH_QtCore_58)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[58]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQPrintDialog::hasHeightForWidth() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_hasHeightForWidth);

    if (!sipMeth)
        return QPrintDialog::hasHeightForWidth();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintDialog::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return QPrintDialog::focusNextPrevChild(a0);

    typedef bool (*sipVH_QtWidgets_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtWidgets_5)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QVariant sipQPrintDialog::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return QPrintDialog::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtWidgets_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtWidgets_6)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        QPrintDialog::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtWidgets_7)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPrintDialog::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPrintDialog::metric(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_28)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        QPrintDialog::changeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QPrintDialog::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        QPrintDialog::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

    ((sipVH_QtWidgets_8)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        QPrintDialog::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

    ((sipVH_QtWidgets_9)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        QPrintDialog::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

    ((sipVH_QtWidgets_10)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[10]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        QPrintDialog::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtWidgets_11)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        QPrintDialog::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

    ((sipVH_QtWidgets_12)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QPrintDialog::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QPrintDialog::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    ((sipVH_QtGui_8)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        QPrintDialog::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_52)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[52]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        QPrintDialog::leaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        QPrintDialog::enterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QPrintDialog::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QPrintDialog::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QPrintDialog::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QPrintDialog::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_2)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[2]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QPrintDialog::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QPrintDialog::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QPrintDialog::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QPrintDialog::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPrintDialog::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QPrintDialog::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPrintDialog::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPrintDialog::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_29)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[29]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPrintDialog::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return QPrintDialog::heightForWidth(a0);

    typedef int (*sipVH_QtCore_61)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_61)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[61]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPrintDialog::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QPrintDialog::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPrintDialog::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QPrintDialog::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPrintDialog::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        QPrintDialog::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

    ((sipVH_QtWidgets_13)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[13]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QPrintDialog::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    ((sipVH_QtGui_9)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QPrintDialog::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_6)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        QPrintDialog::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtWidgets_14)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[14]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QPrintDialog::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::reject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_reject);

    if (!sipMeth)
    {
        QPrintDialog::reject();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQPrintDialog::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[44]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return QPrintDialog::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQPrintDialog::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[45]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return QPrintDialog::sizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPrintDialog::open()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
    {
        QPrintDialog::open();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPrintDialog::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        QPrintDialog::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtWidgets_0)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::done(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_done);

    if (!sipMeth)
    {
        QPrintDialog::done(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPrintDialog::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_accept);

    if (!sipMeth)
    {
        QPrintDialog::accept();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPrintDialog::exec()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_exec_);

    if (!sipMeth)
        return QPrintDialog::exec();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQPrintDialog::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQPrintDialog::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQPrintDialog::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQPrintDialog::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQPrintDialog::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQPrintDialog::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

bool sipQPrintDialog::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QWidget::event(a0) : event(a0));
}

void sipQPrintDialog::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent*a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent*a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent*a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWidget::hideEvent(a0) : hideEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipQPrintDialog::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipQPrintDialog::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent*a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipQPrintDialog::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipQPrintDialog::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipQPrintDialog::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipQPrintDialog::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipQPrintDialog::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipQPrintDialog::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

bool sipQPrintDialog::sipProtectVirt_nativeEvent(bool sipSelfWasArg,const QByteArray& a0,void*a1,long*a2)
{
    return (sipSelfWasArg ? QWidget::nativeEvent(a0,a1,a2) : nativeEvent(a0,a1,a2));
}

QPainter* sipQPrintDialog::sipProtectVirt_sharedPainter(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? QWidget::sharedPainter() : sharedPainter());
}

void sipQPrintDialog::sipProtectVirt_initPainter(bool sipSelfWasArg,QPainter*a0) const
{
    (sipSelfWasArg ? QWidget::initPainter(a0) : initPainter(a0));
}

void sipQPrintDialog::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QDialog::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent*a0)
{
    (sipSelfWasArg ? QDialog::closeEvent(a0) : closeEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QDialog::showEvent(a0) : showEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QDialog::resizeEvent(a0) : resizeEvent(a0));
}

void sipQPrintDialog::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent*a0)
{
    (sipSelfWasArg ? QDialog::contextMenuEvent(a0) : contextMenuEvent(a0));
}

bool sipQPrintDialog::sipProtectVirt_eventFilter(bool sipSelfWasArg,QObject*a0,QEvent*a1)
{
    return (sipSelfWasArg ? QDialog::eventFilter(a0,a1) : eventFilter(a0,a1));
}


PyDoc_STRVAR(doc_QPrintDialog_sender, "QPrintDialog.sender() -> QObject");

extern "C" {static PyObject *meth_QPrintDialog_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 13783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_sender, doc_QPrintDialog_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_receivers, "QPrintDialog.receivers(signal) -> int");

extern "C" {static PyObject *meth_QPrintDialog_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QPrintDialog, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 13842 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_receivers, doc_QPrintDialog_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_timerEvent, "QPrintDialog.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QPrintDialog_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_timerEvent, doc_QPrintDialog_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_childEvent, "QPrintDialog.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QPrintDialog_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_childEvent, doc_QPrintDialog_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_customEvent, "QPrintDialog.customEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintDialog_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_customEvent, doc_QPrintDialog_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_connectNotify, "QPrintDialog.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPrintDialog_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_connectNotify, doc_QPrintDialog_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_disconnectNotify, "QPrintDialog.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPrintDialog_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_disconnectNotify, doc_QPrintDialog_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_senderSignalIndex, "QPrintDialog.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QPrintDialog_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_senderSignalIndex, doc_QPrintDialog_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_isSignalConnected, "QPrintDialog.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QPrintDialog_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_isSignalConnected, doc_QPrintDialog_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_event, "QPrintDialog.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QPrintDialog_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_event, doc_QPrintDialog_event);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_mousePressEvent, "QPrintDialog.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintDialog_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_mousePressEvent, doc_QPrintDialog_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_mouseReleaseEvent, "QPrintDialog.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintDialog_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_mouseReleaseEvent, doc_QPrintDialog_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_mouseDoubleClickEvent, "QPrintDialog.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintDialog_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_mouseDoubleClickEvent, doc_QPrintDialog_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_mouseMoveEvent, "QPrintDialog.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPrintDialog_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_mouseMoveEvent, doc_QPrintDialog_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_wheelEvent, "QPrintDialog.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QPrintDialog_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_wheelEvent, doc_QPrintDialog_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_keyReleaseEvent, "QPrintDialog.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPrintDialog_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_keyReleaseEvent, doc_QPrintDialog_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_focusInEvent, "QPrintDialog.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPrintDialog_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_focusInEvent, doc_QPrintDialog_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_focusOutEvent, "QPrintDialog.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPrintDialog_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_focusOutEvent, doc_QPrintDialog_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_enterEvent, "QPrintDialog.enterEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintDialog_enterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_enterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_enterEvent, doc_QPrintDialog_enterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_leaveEvent, "QPrintDialog.leaveEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintDialog_leaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_leaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_leaveEvent, doc_QPrintDialog_leaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_paintEvent, "QPrintDialog.paintEvent(QPaintEvent)");

extern "C" {static PyObject *meth_QPrintDialog_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_paintEvent, doc_QPrintDialog_paintEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_moveEvent, "QPrintDialog.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QPrintDialog_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_moveEvent, doc_QPrintDialog_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_tabletEvent, "QPrintDialog.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QPrintDialog_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_tabletEvent, doc_QPrintDialog_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_actionEvent, "QPrintDialog.actionEvent(QActionEvent)");

extern "C" {static PyObject *meth_QPrintDialog_actionEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_actionEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QActionEvent, &a0))
        {
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_actionEvent, doc_QPrintDialog_actionEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_dragEnterEvent, "QPrintDialog.dragEnterEvent(QDragEnterEvent)");

extern "C" {static PyObject *meth_QPrintDialog_dragEnterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_dragEnterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_dragEnterEvent, doc_QPrintDialog_dragEnterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_dragMoveEvent, "QPrintDialog.dragMoveEvent(QDragMoveEvent)");

extern "C" {static PyObject *meth_QPrintDialog_dragMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_dragMoveEvent, doc_QPrintDialog_dragMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_dragLeaveEvent, "QPrintDialog.dragLeaveEvent(QDragLeaveEvent)");

extern "C" {static PyObject *meth_QPrintDialog_dragLeaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_dragLeaveEvent, doc_QPrintDialog_dragLeaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_dropEvent, "QPrintDialog.dropEvent(QDropEvent)");

extern "C" {static PyObject *meth_QPrintDialog_dropEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_dropEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QDropEvent, &a0))
        {
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_dropEvent, doc_QPrintDialog_dropEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_hideEvent, "QPrintDialog.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QPrintDialog_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_hideEvent, doc_QPrintDialog_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_changeEvent, "QPrintDialog.changeEvent(QEvent)");

extern "C" {static PyObject *meth_QPrintDialog_changeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_changeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_changeEvent, doc_QPrintDialog_changeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_metric, "QPrintDialog.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPrintDialog_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_metric, doc_QPrintDialog_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_inputMethodEvent, "QPrintDialog.inputMethodEvent(QInputMethodEvent)");

extern "C" {static PyObject *meth_QPrintDialog_inputMethodEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_inputMethodEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_inputMethodEvent, doc_QPrintDialog_inputMethodEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_updateMicroFocus, "QPrintDialog.updateMicroFocus()");

extern "C" {static PyObject *meth_QPrintDialog_updateMicroFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_updateMicroFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            sipCpp->sipProtect_updateMicroFocus();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_updateMicroFocus, doc_QPrintDialog_updateMicroFocus);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_create, "QPrintDialog.create(sip.voidptr window=0, bool initializeWindow=True, bool destroyOldWindow=True)");

extern "C" {static PyObject *meth_QPrintDialog_create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        WId a0def = 0;
        WId* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipQPrintDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1bb", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_quintptr,&a0, &a0State, &a1, &a2))
        {
            sipCpp->sipProtect_create(*a0,a1,a2);
            sipReleaseType(a0,sipType_quintptr,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_create, doc_QPrintDialog_create);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_destroy, "QPrintDialog.destroy(bool destroyWindow=True, bool destroySubWindows=True)");

extern "C" {static PyObject *meth_QPrintDialog_destroy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_destroy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipQPrintDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_QPrintDialog, &sipCpp, &a0, &a1))
        {
            sipCpp->sipProtect_destroy(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_destroy, doc_QPrintDialog_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_focusNextPrevChild, "QPrintDialog.focusNextPrevChild(bool) -> bool");

extern "C" {static PyObject *meth_QPrintDialog_focusNextPrevChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_focusNextPrevChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QPrintDialog, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_focusNextPrevChild, doc_QPrintDialog_focusNextPrevChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_focusNextChild, "QPrintDialog.focusNextChild() -> bool");

extern "C" {static PyObject *meth_QPrintDialog_focusNextChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_focusNextChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusNextChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_focusNextChild, doc_QPrintDialog_focusNextChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_focusPreviousChild, "QPrintDialog.focusPreviousChild() -> bool");

extern "C" {static PyObject *meth_QPrintDialog_focusPreviousChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_focusPreviousChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusPreviousChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_focusPreviousChild, doc_QPrintDialog_focusPreviousChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_nativeEvent, "QPrintDialog.nativeEvent(QByteArray, sip.voidptr) -> (bool, int)");

extern "C" {static PyObject *meth_QPrintDialog_nativeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_nativeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        void* a1;
        long a2;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1v", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_nativeEvent(sipSelfWasArg,*a0,a1,&a2);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipBuildResult(0,"(bl)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_nativeEvent, doc_QPrintDialog_nativeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_sharedPainter, "QPrintDialog.sharedPainter() -> QPainter");

extern "C" {static PyObject *meth_QPrintDialog_sharedPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_sharedPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            QPainter*sipRes;

            sipRes = sipCpp->sipProtectVirt_sharedPainter(sipSelfWasArg);

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_sharedPainter, doc_QPrintDialog_sharedPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_initPainter, "QPrintDialog.initPainter(QPainter)");

extern "C" {static PyObject *meth_QPrintDialog_initPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_initPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPainter* a0;
        const sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QPainter, &a0))
        {
            sipCpp->sipProtectVirt_initPainter(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_initPainter, doc_QPrintDialog_initPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_keyPressEvent, "QPrintDialog.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPrintDialog_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_keyPressEvent, doc_QPrintDialog_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_closeEvent, "QPrintDialog.closeEvent(QCloseEvent)");

extern "C" {static PyObject *meth_QPrintDialog_closeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_closeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QCloseEvent, &a0))
        {
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_closeEvent, doc_QPrintDialog_closeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_showEvent, "QPrintDialog.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QPrintDialog_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_showEvent, doc_QPrintDialog_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_resizeEvent, "QPrintDialog.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QPrintDialog_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_resizeEvent, doc_QPrintDialog_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_contextMenuEvent, "QPrintDialog.contextMenuEvent(QContextMenuEvent)");

extern "C" {static PyObject *meth_QPrintDialog_contextMenuEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_contextMenuEvent, doc_QPrintDialog_contextMenuEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_eventFilter, "QPrintDialog.eventFilter(QObject, QEvent) -> bool");

extern "C" {static PyObject *meth_QPrintDialog_eventFilter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_eventFilter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject* a0;
        QEvent* a1;
        sipQPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J8", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_eventFilter(sipSelfWasArg,a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_eventFilter, doc_QPrintDialog_eventFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_exec_, "QPrintDialog.exec_() -> int");

extern "C" {static PyObject *meth_QPrintDialog_exec_(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_exec_(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            int sipRes = 0;

            sipCallHook("__pyQtPreEventLoopHook__");

#line 37 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintdialog.sip"
        // Transfer ownership back to Python (a modal dialog will probably have the
        // main window as it's parent).  This means the Qt dialog will be deleted when
        // the Python wrapper is garbage collected.  Although this is a little
        // inconsistent, it saves having to code it explicitly to avoid the memory
        // leak.
        sipTransferBack(sipSelf);
        
        Py_BEGIN_ALLOW_THREADS
        sipRes = sipSelfWasArg ? sipCpp->QPrintDialog::exec()
                               : sipCpp->exec();
        Py_END_ALLOW_THREADS
#line 15172 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


            sipCallHook("__pyQtPostEventLoopHook__");
            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_exec_, doc_QPrintDialog_exec_);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_accept, "QPrintDialog.accept()");

extern "C" {static PyObject *meth_QPrintDialog_accept(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_accept(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            (sipSelfWasArg ? sipCpp->QPrintDialog::accept() : sipCpp->accept());

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_accept, doc_QPrintDialog_accept);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_done, "QPrintDialog.done(int)");

extern "C" {static PyObject *meth_QPrintDialog_done(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_done(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPrintDialog, &sipCpp, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPrintDialog::done(a0) : sipCpp->done(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_done, doc_QPrintDialog_done);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_setOption, "QPrintDialog.setOption(QAbstractPrintDialog.PrintDialogOption, bool on=True)");

extern "C" {static PyObject *meth_QPrintDialog_setOption(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_setOption(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOption a0;
        bool a1 = 1;
        QPrintDialog *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_on,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|b", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QAbstractPrintDialog_PrintDialogOption, &a0, &a1))
        {
            sipCpp->setOption(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_setOption, doc_QPrintDialog_setOption);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_testOption, "QPrintDialog.testOption(QAbstractPrintDialog.PrintDialogOption) -> bool");

extern "C" {static PyObject *meth_QPrintDialog_testOption(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_testOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOption a0;
        const QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QAbstractPrintDialog_PrintDialogOption, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->testOption(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_testOption, doc_QPrintDialog_testOption);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_setOptions, "QPrintDialog.setOptions(QAbstractPrintDialog.PrintDialogOptions)");

extern "C" {static PyObject *meth_QPrintDialog_setOptions(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_setOptions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPrintDialog, &sipCpp, sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State))
        {
            sipCpp->setOptions(*a0);
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_setOptions, doc_QPrintDialog_setOptions);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_options, "QPrintDialog.options() -> QAbstractPrintDialog.PrintDialogOptions");

extern "C" {static PyObject *meth_QPrintDialog_options(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_options(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes;

            sipRes = new QAbstractPrintDialog::PrintDialogOptions(sipCpp->options());

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_options, doc_QPrintDialog_options);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_setVisible, "QPrintDialog.setVisible(bool)");

extern "C" {static PyObject *meth_QPrintDialog_setVisible(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_setVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPrintDialog, &sipCpp, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPrintDialog::setVisible(a0) : sipCpp->setVisible(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_setVisible, doc_QPrintDialog_setVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_open, "QPrintDialog.open()\n"
    "QPrintDialog.open(slot)");

extern "C" {static PyObject *meth_QPrintDialog_open(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            (sipSelfWasArg ? sipCpp->QPrintDialog::open() : sipCpp->open());

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        PyObject * a0;
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BP0", &sipSelf, sipType_QPrintDialog, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 79 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprintdialog.sip"
        QObject *receiver;
        QByteArray slot_signature;
        
        if ((sipError = pyqt5_qtprintsupport_get_connection_parts(a0, sipCpp, "()", false, &receiver, slot_signature)) == sipErrorNone)
        {
            sipCpp->open(receiver, slot_signature.constData());
        }
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 15428 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_open, doc_QPrintDialog_open);

    return NULL;
}


PyDoc_STRVAR(doc_QPrintDialog_accepted, "QPrintDialog.accepted()");

extern "C" {static PyObject *meth_QPrintDialog_accepted(PyObject *, PyObject *);}
static PyObject *meth_QPrintDialog_accepted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPrintDialog, &sipCpp))
        {
            sipCpp->accepted();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPrintDialog, sipName_accepted, doc_QPrintDialog_accepted);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPrintDialog(void *, const sipTypeDef *);}
static void *cast_QPrintDialog(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPrintDialog)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractPrintDialog)->ctd_cast((QAbstractPrintDialog *)(QPrintDialog *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPrintDialog(void *, int);}
static void release_QPrintDialog(void *sipCppV,int)
{
    QPrintDialog *sipCpp = reinterpret_cast<QPrintDialog *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QPrintDialog(sipSimpleWrapper *);}
static void dealloc_QPrintDialog(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPrintDialog *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPrintDialog(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPrintDialog(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPrintDialog(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQPrintDialog *sipCpp = 0;

    {
        QPrinter* a0;
        QWidget* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|JH", sipType_QPrinter, &a0, sipType_QWidget, &a1, sipOwner))
        {
            sipCpp = new sipQPrintDialog(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWidget* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            sipCpp = new sipQPrintDialog(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPrintDialog[] = {{0, 255, 1}};


static PyMethodDef methods_QPrintDialog[] = {
    {SIP_MLNAME_CAST(sipName_accept), meth_QPrintDialog_accept, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_accept)},
    {SIP_MLNAME_CAST(sipName_accepted), meth_QPrintDialog_accepted, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_accepted)},
    {SIP_MLNAME_CAST(sipName_actionEvent), (PyCFunction)meth_QPrintDialog_actionEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), (PyCFunction)meth_QPrintDialog_changeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QPrintDialog_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), (PyCFunction)meth_QPrintDialog_closeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QPrintDialog_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), (PyCFunction)meth_QPrintDialog_contextMenuEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_QPrintDialog_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QPrintDialog_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_QPrintDialog_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QPrintDialog_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_done), meth_QPrintDialog_done, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_done)},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), (PyCFunction)meth_QPrintDialog_dragEnterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), (PyCFunction)meth_QPrintDialog_dragLeaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), (PyCFunction)meth_QPrintDialog_dragMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), (PyCFunction)meth_QPrintDialog_dropEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), (PyCFunction)meth_QPrintDialog_enterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QPrintDialog_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), (PyCFunction)meth_QPrintDialog_eventFilter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_QPrintDialog_exec_, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_exec_)},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QPrintDialog_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), (PyCFunction)meth_QPrintDialog_focusNextChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), (PyCFunction)meth_QPrintDialog_focusNextPrevChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QPrintDialog_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), (PyCFunction)meth_QPrintDialog_focusPreviousChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QPrintDialog_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initPainter), (PyCFunction)meth_QPrintDialog_initPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), (PyCFunction)meth_QPrintDialog_inputMethodEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QPrintDialog_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QPrintDialog_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QPrintDialog_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), (PyCFunction)meth_QPrintDialog_leaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPrintDialog_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QPrintDialog_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QPrintDialog_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QPrintDialog_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QPrintDialog_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QPrintDialog_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_nativeEvent), (PyCFunction)meth_QPrintDialog_nativeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_QPrintDialog_open, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_open)},
    {SIP_MLNAME_CAST(sipName_options), meth_QPrintDialog_options, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_options)},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_QPrintDialog_paintEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QPrintDialog_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QPrintDialog_resizeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QPrintDialog_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QPrintDialog_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setOption), (PyCFunction)meth_QPrintDialog_setOption, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPrintDialog_setOption)},
    {SIP_MLNAME_CAST(sipName_setOptions), meth_QPrintDialog_setOptions, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_setOptions)},
    {SIP_MLNAME_CAST(sipName_setVisible), meth_QPrintDialog_setVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_setVisible)},
    {SIP_MLNAME_CAST(sipName_sharedPainter), (PyCFunction)meth_QPrintDialog_sharedPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QPrintDialog_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QPrintDialog_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_testOption), meth_QPrintDialog_testOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QPrintDialog_testOption)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QPrintDialog_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), (PyCFunction)meth_QPrintDialog_updateMicroFocus, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QPrintDialog_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QPrintDialog[] = {
    {"accepted(QPrinter*)", "\1QPrintDialog.accepted[QPrinter]", &methods_QPrintDialog[1], 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QPrintDialog, "\1QPrintDialog(QPrinter, QWidget parent=None)\n"
    "QPrintDialog(QWidget parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QPrintDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPrintDialog,
        {0}
    },
    {
        sipNameNr_QPrintDialog,
        {0, 0, 1},
        57, methods_QPrintDialog,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPrintDialog,
    -1,
    -1,
    supers_QPrintDialog,
    0,
    init_type_QPrintDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPrintDialog,
    0,
    0,
    0,
    release_QPrintDialog,
    cast_QPrintDialog,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QPrintDialog::staticMetaObject,
    0,
    signals_QPrintDialog,
    0
};

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpagesetupdialog.sip"
#include <qpagesetupdialog.h>
#line 15695 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 15699 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 15702 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 15705 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15708 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 452 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15711 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 395 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15714 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 430 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15717 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 408 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15720 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 333 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15723 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 15726 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 15729 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qicon.sip"
#include <qicon.h>
#line 15732 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 15735 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 15738 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 15741 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15744 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 15747 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 15750 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15753 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 15756 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15759 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15762 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 15765 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 15768 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 15771 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 15774 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 15777 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 15780 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qregion.sip"
#include <qregion.h>
#line 15783 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 15786 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 15789 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 15792 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qfont.sip"
#include <qfont.h>
#line 15795 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 15798 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 479 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15801 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 441 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15804 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 534 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15807 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 583 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15810 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 556 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15813 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 572 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15816 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 635 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15819 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 275 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15822 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 382 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15825 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 368 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15828 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 354 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15831 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 247 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15834 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 202 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 15837 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 56 "sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 15840 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 15843 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qaction.sip"
#include <qaction.h>
#line 15846 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qlayout.sip"
#include <qlayout.h>
#line 15849 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 15852 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15855 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 15858 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 15861 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 15864 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 15867 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qstyle.sip"
#include <qstyle.h>
#line 15870 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 15873 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15876 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 15879 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 15882 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 15885 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 15888 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 15891 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 15894 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 15897 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 15900 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


class sipQPageSetupDialog : public QPageSetupDialog
{
public:
    sipQPageSetupDialog(QPrinter*,QWidget*);
    sipQPageSetupDialog(QWidget*);
    virtual ~sipQPageSetupDialog();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    bool sipProtectVirt_event(bool,QEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_enterEvent(bool,QEvent*);
    void sipProtectVirt_leaveEvent(bool,QEvent*);
    void sipProtectVirt_paintEvent(bool,QPaintEvent*);
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);
    void sipProtectVirt_actionEvent(bool,QActionEvent*);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent*);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent*);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent*);
    void sipProtectVirt_dropEvent(bool,QDropEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    void sipProtectVirt_changeEvent(bool,QEvent*);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent*);
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    bool sipProtectVirt_nativeEvent(bool,const QByteArray&,void*,long*);
    QPainter* sipProtectVirt_sharedPainter(bool) const;
    void sipProtectVirt_initPainter(bool,QPainter*) const;
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_closeEvent(bool,QCloseEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent*);
    bool sipProtectVirt_eventFilter(bool,QObject*,QEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    void initPainter(QPainter*) const;
    QPainter* sharedPainter() const;
    bool nativeEvent(const QByteArray&,void*,long*);
    bool hasHeightForWidth() const;
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    int devType() const;
    bool eventFilter(QObject*,QEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void resizeEvent(QResizeEvent*);
    void showEvent(QShowEvent*);
    void closeEvent(QCloseEvent*);
    void keyPressEvent(QKeyEvent*);
    void reject();
    void accept();
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void done(int);
    void open();
    int exec();
    void setVisible(bool);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPageSetupDialog(const sipQPageSetupDialog &);
    sipQPageSetupDialog &operator = (const sipQPageSetupDialog &);

    char sipPyMethods[52];
};

sipQPageSetupDialog::sipQPageSetupDialog(QPrinter*a0,QWidget*a1): QPageSetupDialog(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPageSetupDialog::sipQPageSetupDialog(QWidget*a0): QPageSetupDialog(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPageSetupDialog::~sipQPageSetupDialog()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQPageSetupDialog::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtPrintSupport_qt_metaobject(sipPySelf,sipType_QPageSetupDialog);
}

int sipQPageSetupDialog::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QPageSetupDialog::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtPrintSupport_qt_metacall(sipPySelf,sipType_QPageSetupDialog,_c,_id,_a);

    return _id;
}

void *sipQPageSetupDialog::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtPrintSupport_qt_metacast(sipPySelf, sipType_QPageSetupDialog, _clname, &sipCpp) ? sipCpp : QPageSetupDialog::qt_metacast(_clname));
}

void sipQPageSetupDialog::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QPageSetupDialog::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QPageSetupDialog::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::initPainter(QPainter*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_initPainter);

    if (!sipMeth)
    {
        QPageSetupDialog::initPainter(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*);

    ((sipVH_QtWidgets_3)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPainter* sipQPageSetupDialog::sharedPainter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_sharedPainter);

    if (!sipMeth)
        return QPageSetupDialog::sharedPainter();

    typedef QPainter* (*sipVH_QtWidgets_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtWidgets_4)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPageSetupDialog::nativeEvent(const QByteArray& a0,void*a1,long*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_nativeEvent);

    if (!sipMeth)
        return QPageSetupDialog::nativeEvent(a0,a1,a2);

    typedef bool (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&,void*,long*);

    return ((sipVH_QtCore_58)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[58]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQPageSetupDialog::hasHeightForWidth() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_hasHeightForWidth);

    if (!sipMeth)
        return QPageSetupDialog::hasHeightForWidth();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPageSetupDialog::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return QPageSetupDialog::focusNextPrevChild(a0);

    typedef bool (*sipVH_QtWidgets_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtWidgets_5)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QVariant sipQPageSetupDialog::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return QPageSetupDialog::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtWidgets_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtWidgets_6)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtWidgets_7)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPageSetupDialog::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPageSetupDialog::metric(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_28)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::changeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

    ((sipVH_QtWidgets_8)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

    ((sipVH_QtWidgets_9)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

    ((sipVH_QtWidgets_10)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[10]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtWidgets_11)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

    ((sipVH_QtWidgets_12)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    ((sipVH_QtGui_8)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_52)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[52]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::leaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::enterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_2)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[2]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPageSetupDialog::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QPageSetupDialog::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPageSetupDialog::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPageSetupDialog::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_29)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[29]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPageSetupDialog::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return QPageSetupDialog::heightForWidth(a0);

    typedef int (*sipVH_QtCore_61)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_61)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[61]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPageSetupDialog::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QPageSetupDialog::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPageSetupDialog::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QPageSetupDialog::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPageSetupDialog::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

    ((sipVH_QtWidgets_13)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[13]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    ((sipVH_QtGui_9)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_6)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtWidgets_14)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[14]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QPageSetupDialog::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::reject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_reject);

    if (!sipMeth)
    {
        QPageSetupDialog::reject();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPageSetupDialog::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_accept);

    if (!sipMeth)
    {
        QPageSetupDialog::accept();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQPageSetupDialog::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[45]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return QPageSetupDialog::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQPageSetupDialog::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[46]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return QPageSetupDialog::sizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPageSetupDialog::done(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_done);

    if (!sipMeth)
    {
        QPageSetupDialog::done(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPageSetupDialog::open()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
    {
        QPageSetupDialog::open();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPageSetupDialog::exec()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_exec);

    if (!sipMeth)
        return QPageSetupDialog::exec();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPageSetupDialog::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        QPageSetupDialog::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtWidgets_0)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQPageSetupDialog::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQPageSetupDialog::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQPageSetupDialog::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQPageSetupDialog::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQPageSetupDialog::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQPageSetupDialog::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

bool sipQPageSetupDialog::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QWidget::event(a0) : event(a0));
}

void sipQPageSetupDialog::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent*a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent*a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent*a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWidget::hideEvent(a0) : hideEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipQPageSetupDialog::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipQPageSetupDialog::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent*a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipQPageSetupDialog::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipQPageSetupDialog::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipQPageSetupDialog::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipQPageSetupDialog::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipQPageSetupDialog::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipQPageSetupDialog::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

bool sipQPageSetupDialog::sipProtectVirt_nativeEvent(bool sipSelfWasArg,const QByteArray& a0,void*a1,long*a2)
{
    return (sipSelfWasArg ? QWidget::nativeEvent(a0,a1,a2) : nativeEvent(a0,a1,a2));
}

QPainter* sipQPageSetupDialog::sipProtectVirt_sharedPainter(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? QWidget::sharedPainter() : sharedPainter());
}

void sipQPageSetupDialog::sipProtectVirt_initPainter(bool sipSelfWasArg,QPainter*a0) const
{
    (sipSelfWasArg ? QWidget::initPainter(a0) : initPainter(a0));
}

void sipQPageSetupDialog::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QDialog::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent*a0)
{
    (sipSelfWasArg ? QDialog::closeEvent(a0) : closeEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QDialog::showEvent(a0) : showEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QDialog::resizeEvent(a0) : resizeEvent(a0));
}

void sipQPageSetupDialog::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent*a0)
{
    (sipSelfWasArg ? QDialog::contextMenuEvent(a0) : contextMenuEvent(a0));
}

bool sipQPageSetupDialog::sipProtectVirt_eventFilter(bool sipSelfWasArg,QObject*a0,QEvent*a1)
{
    return (sipSelfWasArg ? QDialog::eventFilter(a0,a1) : eventFilter(a0,a1));
}


PyDoc_STRVAR(doc_QPageSetupDialog_sender, "QPageSetupDialog.sender() -> QObject");

extern "C" {static PyObject *meth_QPageSetupDialog_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 17222 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_sender, doc_QPageSetupDialog_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_receivers, "QPageSetupDialog.receivers(signal) -> int");

extern "C" {static PyObject *meth_QPageSetupDialog_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QPageSetupDialog, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 17281 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_receivers, doc_QPageSetupDialog_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_timerEvent, "QPageSetupDialog.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_timerEvent, doc_QPageSetupDialog_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_childEvent, "QPageSetupDialog.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_childEvent, doc_QPageSetupDialog_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_customEvent, "QPageSetupDialog.customEvent(QEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_customEvent, doc_QPageSetupDialog_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_connectNotify, "QPageSetupDialog.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPageSetupDialog_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_connectNotify, doc_QPageSetupDialog_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_disconnectNotify, "QPageSetupDialog.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPageSetupDialog_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_disconnectNotify, doc_QPageSetupDialog_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_senderSignalIndex, "QPageSetupDialog.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QPageSetupDialog_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_senderSignalIndex, doc_QPageSetupDialog_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_isSignalConnected, "QPageSetupDialog.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QPageSetupDialog_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_isSignalConnected, doc_QPageSetupDialog_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_event, "QPageSetupDialog.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QPageSetupDialog_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_event, doc_QPageSetupDialog_event);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_mousePressEvent, "QPageSetupDialog.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_mousePressEvent, doc_QPageSetupDialog_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_mouseReleaseEvent, "QPageSetupDialog.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_mouseReleaseEvent, doc_QPageSetupDialog_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_mouseDoubleClickEvent, "QPageSetupDialog.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_mouseDoubleClickEvent, doc_QPageSetupDialog_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_mouseMoveEvent, "QPageSetupDialog.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_mouseMoveEvent, doc_QPageSetupDialog_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_wheelEvent, "QPageSetupDialog.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_wheelEvent, doc_QPageSetupDialog_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_keyReleaseEvent, "QPageSetupDialog.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_keyReleaseEvent, doc_QPageSetupDialog_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_focusInEvent, "QPageSetupDialog.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_focusInEvent, doc_QPageSetupDialog_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_focusOutEvent, "QPageSetupDialog.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_focusOutEvent, doc_QPageSetupDialog_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_enterEvent, "QPageSetupDialog.enterEvent(QEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_enterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_enterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_enterEvent, doc_QPageSetupDialog_enterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_leaveEvent, "QPageSetupDialog.leaveEvent(QEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_leaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_leaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_leaveEvent, doc_QPageSetupDialog_leaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_paintEvent, "QPageSetupDialog.paintEvent(QPaintEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_paintEvent, doc_QPageSetupDialog_paintEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_moveEvent, "QPageSetupDialog.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_moveEvent, doc_QPageSetupDialog_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_tabletEvent, "QPageSetupDialog.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_tabletEvent, doc_QPageSetupDialog_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_actionEvent, "QPageSetupDialog.actionEvent(QActionEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_actionEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_actionEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QActionEvent, &a0))
        {
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_actionEvent, doc_QPageSetupDialog_actionEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_dragEnterEvent, "QPageSetupDialog.dragEnterEvent(QDragEnterEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_dragEnterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_dragEnterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_dragEnterEvent, doc_QPageSetupDialog_dragEnterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_dragMoveEvent, "QPageSetupDialog.dragMoveEvent(QDragMoveEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_dragMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_dragMoveEvent, doc_QPageSetupDialog_dragMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_dragLeaveEvent, "QPageSetupDialog.dragLeaveEvent(QDragLeaveEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_dragLeaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_dragLeaveEvent, doc_QPageSetupDialog_dragLeaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_dropEvent, "QPageSetupDialog.dropEvent(QDropEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_dropEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_dropEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QDropEvent, &a0))
        {
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_dropEvent, doc_QPageSetupDialog_dropEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_hideEvent, "QPageSetupDialog.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_hideEvent, doc_QPageSetupDialog_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_changeEvent, "QPageSetupDialog.changeEvent(QEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_changeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_changeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_changeEvent, doc_QPageSetupDialog_changeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_metric, "QPageSetupDialog.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPageSetupDialog_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_metric, doc_QPageSetupDialog_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_inputMethodEvent, "QPageSetupDialog.inputMethodEvent(QInputMethodEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_inputMethodEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_inputMethodEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_inputMethodEvent, doc_QPageSetupDialog_inputMethodEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_updateMicroFocus, "QPageSetupDialog.updateMicroFocus()");

extern "C" {static PyObject *meth_QPageSetupDialog_updateMicroFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_updateMicroFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            sipCpp->sipProtect_updateMicroFocus();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_updateMicroFocus, doc_QPageSetupDialog_updateMicroFocus);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_create, "QPageSetupDialog.create(sip.voidptr window=0, bool initializeWindow=True, bool destroyOldWindow=True)");

extern "C" {static PyObject *meth_QPageSetupDialog_create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        WId a0def = 0;
        WId* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipQPageSetupDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1bb", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_quintptr,&a0, &a0State, &a1, &a2))
        {
            sipCpp->sipProtect_create(*a0,a1,a2);
            sipReleaseType(a0,sipType_quintptr,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_create, doc_QPageSetupDialog_create);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_destroy, "QPageSetupDialog.destroy(bool destroyWindow=True, bool destroySubWindows=True)");

extern "C" {static PyObject *meth_QPageSetupDialog_destroy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_destroy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipQPageSetupDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_QPageSetupDialog, &sipCpp, &a0, &a1))
        {
            sipCpp->sipProtect_destroy(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_destroy, doc_QPageSetupDialog_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_focusNextPrevChild, "QPageSetupDialog.focusNextPrevChild(bool) -> bool");

extern "C" {static PyObject *meth_QPageSetupDialog_focusNextPrevChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_focusNextPrevChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QPageSetupDialog, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_focusNextPrevChild, doc_QPageSetupDialog_focusNextPrevChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_focusNextChild, "QPageSetupDialog.focusNextChild() -> bool");

extern "C" {static PyObject *meth_QPageSetupDialog_focusNextChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_focusNextChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusNextChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_focusNextChild, doc_QPageSetupDialog_focusNextChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_focusPreviousChild, "QPageSetupDialog.focusPreviousChild() -> bool");

extern "C" {static PyObject *meth_QPageSetupDialog_focusPreviousChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_focusPreviousChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusPreviousChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_focusPreviousChild, doc_QPageSetupDialog_focusPreviousChild);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_nativeEvent, "QPageSetupDialog.nativeEvent(QByteArray, sip.voidptr) -> (bool, int)");

extern "C" {static PyObject *meth_QPageSetupDialog_nativeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_nativeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        void* a1;
        long a2;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1v", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_nativeEvent(sipSelfWasArg,*a0,a1,&a2);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipBuildResult(0,"(bl)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_nativeEvent, doc_QPageSetupDialog_nativeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_sharedPainter, "QPageSetupDialog.sharedPainter() -> QPainter");

extern "C" {static PyObject *meth_QPageSetupDialog_sharedPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_sharedPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            QPainter*sipRes;

            sipRes = sipCpp->sipProtectVirt_sharedPainter(sipSelfWasArg);

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_sharedPainter, doc_QPageSetupDialog_sharedPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_initPainter, "QPageSetupDialog.initPainter(QPainter)");

extern "C" {static PyObject *meth_QPageSetupDialog_initPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_initPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPainter* a0;
        const sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QPainter, &a0))
        {
            sipCpp->sipProtectVirt_initPainter(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_initPainter, doc_QPageSetupDialog_initPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_keyPressEvent, "QPageSetupDialog.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_keyPressEvent, doc_QPageSetupDialog_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_closeEvent, "QPageSetupDialog.closeEvent(QCloseEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_closeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_closeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QCloseEvent, &a0))
        {
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_closeEvent, doc_QPageSetupDialog_closeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_showEvent, "QPageSetupDialog.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_showEvent, doc_QPageSetupDialog_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_resizeEvent, "QPageSetupDialog.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_resizeEvent, doc_QPageSetupDialog_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_contextMenuEvent, "QPageSetupDialog.contextMenuEvent(QContextMenuEvent)");

extern "C" {static PyObject *meth_QPageSetupDialog_contextMenuEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_contextMenuEvent, doc_QPageSetupDialog_contextMenuEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_eventFilter, "QPageSetupDialog.eventFilter(QObject, QEvent) -> bool");

extern "C" {static PyObject *meth_QPageSetupDialog_eventFilter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_eventFilter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject* a0;
        QEvent* a1;
        sipQPageSetupDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J8", &sipSelf, sipType_QPageSetupDialog, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_eventFilter(sipSelfWasArg,a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_eventFilter, doc_QPageSetupDialog_eventFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_setVisible, "QPageSetupDialog.setVisible(bool)");

extern "C" {static PyObject *meth_QPageSetupDialog_setVisible(PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_setVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        QPageSetupDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPageSetupDialog, &sipCpp, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPageSetupDialog::setVisible(a0) : sipCpp->setVisible(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_setVisible, doc_QPageSetupDialog_setVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_exec_, "QPageSetupDialog.exec_() -> int");

extern "C" {static PyObject *meth_QPageSetupDialog_exec_(PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_exec_(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPageSetupDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            int sipRes = 0;

            sipCallHook("__pyQtPreEventLoopHook__");

#line 38 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpagesetupdialog.sip"
        // Transfer ownership back to Python (a modal dialog will probably have the
        // main window as it's parent).  This means the Qt dialog will be deleted when
        // the Python wrapper is garbage collected.  Although this is a little
        // inconsistent, it saves having to code it explicitly to avoid the memory
        // leak.
        sipTransferBack(sipSelf);
        
        Py_BEGIN_ALLOW_THREADS
        sipRes = sipSelfWasArg ? sipCpp->QPageSetupDialog::exec()
                               : sipCpp->exec();
        Py_END_ALLOW_THREADS
#line 18639 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


            sipCallHook("__pyQtPostEventLoopHook__");
            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_exec_, doc_QPageSetupDialog_exec_);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_exec, "QPageSetupDialog.exec() -> int");

extern "C" {static PyObject *meth_QPageSetupDialog_exec(PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_exec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPageSetupDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            int sipRes = 0;

            sipCallHook("__pyQtPreEventLoopHook__");

#line 53 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpagesetupdialog.sip"
        // Transfer ownership back to Python (a modal dialog will probably have the
        // main window as it's parent).  This means the Qt dialog will be deleted when
        // the Python wrapper is garbage collected.  Although this is a little
        // inconsistent, it saves having to code it explicitly to avoid the memory
        // leak.
        sipTransferBack(sipSelf);
        
        Py_BEGIN_ALLOW_THREADS
        sipRes = sipSelfWasArg ? sipCpp->QPageSetupDialog::exec()
                               : sipCpp->exec();
        Py_END_ALLOW_THREADS
#line 18683 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


            sipCallHook("__pyQtPostEventLoopHook__");
            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_exec, doc_QPageSetupDialog_exec);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_open, "QPageSetupDialog.open()\n"
    "QPageSetupDialog.open(slot)");

extern "C" {static PyObject *meth_QPageSetupDialog_open(PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_open(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPageSetupDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            (sipSelfWasArg ? sipCpp->QPageSetupDialog::open() : sipCpp->open());

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        PyObject * a0;
        QPageSetupDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BP0", &sipSelf, sipType_QPageSetupDialog, &sipCpp, &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 69 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qpagesetupdialog.sip"
        QObject *receiver;
        QByteArray slot_signature;
        
        if ((sipError = pyqt5_qtprintsupport_get_connection_parts(a0, sipCpp, "()", false, &receiver, slot_signature)) == sipErrorNone)
        {
            sipCpp->open(receiver, slot_signature.constData());
        }
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(0, a0);
        }
#line 18739 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_open, doc_QPageSetupDialog_open);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_done, "QPageSetupDialog.done(int)");

extern "C" {static PyObject *meth_QPageSetupDialog_done(PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_done(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        QPageSetupDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPageSetupDialog, &sipCpp, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPageSetupDialog::done(a0) : sipCpp->done(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_done, doc_QPageSetupDialog_done);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSetupDialog_printer, "QPageSetupDialog.printer() -> QPrinter");

extern "C" {static PyObject *meth_QPageSetupDialog_printer(PyObject *, PyObject *);}
static PyObject *meth_QPageSetupDialog_printer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageSetupDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSetupDialog, &sipCpp))
        {
            QPrinter*sipRes;

            sipRes = sipCpp->printer();

            return sipConvertFromType(sipRes,sipType_QPrinter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSetupDialog, sipName_printer, doc_QPageSetupDialog_printer);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPageSetupDialog(void *, const sipTypeDef *);}
static void *cast_QPageSetupDialog(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPageSetupDialog)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDialog)->ctd_cast((QDialog *)(QPageSetupDialog *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPageSetupDialog(void *, int);}
static void release_QPageSetupDialog(void *sipCppV,int)
{
    QPageSetupDialog *sipCpp = reinterpret_cast<QPageSetupDialog *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QPageSetupDialog(sipSimpleWrapper *);}
static void dealloc_QPageSetupDialog(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPageSetupDialog *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPageSetupDialog(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPageSetupDialog(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPageSetupDialog(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQPageSetupDialog *sipCpp = 0;

    {
        QPrinter* a0;
        QWidget* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|JH", sipType_QPrinter, &a0, sipType_QWidget, &a1, sipOwner))
        {
            sipCpp = new sipQPageSetupDialog(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWidget* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            sipCpp = new sipQPageSetupDialog(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPageSetupDialog[] = {{60, 2, 1}};


static PyMethodDef methods_QPageSetupDialog[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), (PyCFunction)meth_QPageSetupDialog_actionEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), (PyCFunction)meth_QPageSetupDialog_changeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QPageSetupDialog_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), (PyCFunction)meth_QPageSetupDialog_closeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QPageSetupDialog_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), (PyCFunction)meth_QPageSetupDialog_contextMenuEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_QPageSetupDialog_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QPageSetupDialog_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_QPageSetupDialog_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QPageSetupDialog_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_done), meth_QPageSetupDialog_done, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSetupDialog_done)},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), (PyCFunction)meth_QPageSetupDialog_dragEnterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), (PyCFunction)meth_QPageSetupDialog_dragLeaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), (PyCFunction)meth_QPageSetupDialog_dragMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), (PyCFunction)meth_QPageSetupDialog_dropEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), (PyCFunction)meth_QPageSetupDialog_enterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QPageSetupDialog_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), (PyCFunction)meth_QPageSetupDialog_eventFilter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_exec), meth_QPageSetupDialog_exec, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSetupDialog_exec)},
    {SIP_MLNAME_CAST(sipName_exec_), meth_QPageSetupDialog_exec_, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSetupDialog_exec_)},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QPageSetupDialog_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), (PyCFunction)meth_QPageSetupDialog_focusNextChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), (PyCFunction)meth_QPageSetupDialog_focusNextPrevChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QPageSetupDialog_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), (PyCFunction)meth_QPageSetupDialog_focusPreviousChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QPageSetupDialog_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initPainter), (PyCFunction)meth_QPageSetupDialog_initPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), (PyCFunction)meth_QPageSetupDialog_inputMethodEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QPageSetupDialog_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QPageSetupDialog_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QPageSetupDialog_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), (PyCFunction)meth_QPageSetupDialog_leaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPageSetupDialog_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QPageSetupDialog_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QPageSetupDialog_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QPageSetupDialog_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QPageSetupDialog_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QPageSetupDialog_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_nativeEvent), (PyCFunction)meth_QPageSetupDialog_nativeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_open), meth_QPageSetupDialog_open, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSetupDialog_open)},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_QPageSetupDialog_paintEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_printer), meth_QPageSetupDialog_printer, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSetupDialog_printer)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QPageSetupDialog_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QPageSetupDialog_resizeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QPageSetupDialog_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QPageSetupDialog_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setVisible), meth_QPageSetupDialog_setVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSetupDialog_setVisible)},
    {SIP_MLNAME_CAST(sipName_sharedPainter), (PyCFunction)meth_QPageSetupDialog_sharedPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QPageSetupDialog_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QPageSetupDialog_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QPageSetupDialog_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), (PyCFunction)meth_QPageSetupDialog_updateMicroFocus, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QPageSetupDialog_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QPageSetupDialog, "\1QPageSetupDialog(QPrinter, QWidget parent=None)\n"
    "QPageSetupDialog(QWidget parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QPageSetupDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPageSetupDialog,
        {0}
    },
    {
        sipNameNr_QPageSetupDialog,
        {0, 0, 1},
        53, methods_QPageSetupDialog,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPageSetupDialog,
    -1,
    -1,
    supers_QPageSetupDialog,
    0,
    init_type_QPageSetupDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPageSetupDialog,
    0,
    0,
    0,
    release_QPageSetupDialog,
    cast_QPageSetupDialog,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QPageSetupDialog::staticMetaObject,
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
#include <qabstractprintdialog.h>
#line 19024 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
#include <qabstractprintdialog.h>
#line 19028 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


extern "C" {static int slot_QAbstractPrintDialog_PrintDialogOptions___bool__(PyObject *);}
static int slot_QAbstractPrintDialog_PrintDialogOptions___bool__(PyObject *sipSelf)
{
    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QAbstractPrintDialog::PrintDialogOptions::Int() != 0);
#line 19046 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QAbstractPrintDialog::PrintDialogOptions::Int() != a0->operator QAbstractPrintDialog::PrintDialogOptions::Int());
#line 19076 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
            sipReleaseType(const_cast<QAbstractPrintDialog::PrintDialogOptions *>(a0),sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtPrintSupport,ne_slot,sipType_QAbstractPrintDialog_PrintDialogOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QAbstractPrintDialog::PrintDialogOptions::Int() == a0->operator QAbstractPrintDialog::PrintDialogOptions::Int());
#line 19112 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
            sipReleaseType(const_cast<QAbstractPrintDialog::PrintDialogOptions *>(a0),sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtPrintSupport,eq_slot,sipType_QAbstractPrintDialog_PrintDialogOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___invert__(PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___invert__(PyObject *sipSelf)
{
    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return 0;


    {
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes;

            sipRes = new QAbstractPrintDialog::PrintDialogOptions(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___and__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State, &a1))
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes;

            sipRes = new QAbstractPrintDialog::PrintDialogOptions((*a0 & a1));
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtPrintSupport,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___xor__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;
        QAbstractPrintDialog::PrintDialogOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State, sipType_QAbstractPrintDialog_PrintDialogOptions, &a1, &a1State))
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes;

            sipRes = new QAbstractPrintDialog::PrintDialogOptions((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);
            sipReleaseType(a1,sipType_QAbstractPrintDialog_PrintDialogOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State, &a1))
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QAbstractPrintDialog::PrintDialogOptions(*a0 ^ a1);
#line 19215 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtPrintSupport,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___or__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;
        QAbstractPrintDialog::PrintDialogOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State, sipType_QAbstractPrintDialog_PrintDialogOptions, &a1, &a1State))
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes;

            sipRes = new QAbstractPrintDialog::PrintDialogOptions((*a0 | *a1));
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);
            sipReleaseType(a1,sipType_QAbstractPrintDialog_PrintDialogOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State, &a1))
        {
            QAbstractPrintDialog::PrintDialogOptions*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QAbstractPrintDialog::PrintDialogOptions(*a0 | a1);
#line 19265 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QAbstractPrintDialog_PrintDialogOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtPrintSupport,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___int__(PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___int__(PyObject *sipSelf)
{
    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QAbstractPrintDialog_PrintDialogOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State))
        {
            sipCpp->QAbstractPrintDialog::PrintDialogOptions::operator^=(*a0);
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QAbstractPrintDialog_PrintDialogOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State))
        {
            sipCpp->QAbstractPrintDialog::PrintDialogOptions::operator|=(*a0);
            sipReleaseType(a0,sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_QAbstractPrintDialog_PrintDialogOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QAbstractPrintDialog_PrintDialogOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QAbstractPrintDialog::PrintDialogOptions *sipCpp = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QAbstractPrintDialog_PrintDialogOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QAbstractPrintDialog::PrintDialogOptions::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractPrintDialog_PrintDialogOptions(void *, const sipTypeDef *);}
static void *cast_QAbstractPrintDialog_PrintDialogOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QAbstractPrintDialog_PrintDialogOptions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractPrintDialog_PrintDialogOptions(void *, int);}
static void release_QAbstractPrintDialog_PrintDialogOptions(void *sipCppV,int)
{
    delete reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipCppV);
}


extern "C" {static void assign_QAbstractPrintDialog_PrintDialogOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_QAbstractPrintDialog_PrintDialogOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QAbstractPrintDialog::PrintDialogOptions *>(sipSrc);
}


extern "C" {static void *array_QAbstractPrintDialog_PrintDialogOptions(SIP_SSIZE_T);}
static void *array_QAbstractPrintDialog_PrintDialogOptions(SIP_SSIZE_T sipNrElem)
{
    return new QAbstractPrintDialog::PrintDialogOptions[sipNrElem];
}


extern "C" {static void *copy_QAbstractPrintDialog_PrintDialogOptions(const void *, SIP_SSIZE_T);}
static void *copy_QAbstractPrintDialog_PrintDialogOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QAbstractPrintDialog::PrintDialogOptions(reinterpret_cast<const QAbstractPrintDialog::PrintDialogOptions *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QAbstractPrintDialog_PrintDialogOptions(sipSimpleWrapper *);}
static void dealloc_QAbstractPrintDialog_PrintDialogOptions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractPrintDialog_PrintDialogOptions(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QAbstractPrintDialog_PrintDialogOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAbstractPrintDialog_PrintDialogOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QAbstractPrintDialog::PrintDialogOptions *sipCpp = 0;

    {
        const QAbstractPrintDialog::PrintDialogOptions* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QAbstractPrintDialog_PrintDialogOptions, &a0, &a0State))
        {
            sipCpp = new QAbstractPrintDialog::PrintDialogOptions(*a0);
            sipReleaseType(const_cast<QAbstractPrintDialog::PrintDialogOptions *>(a0),sipType_QAbstractPrintDialog_PrintDialogOptions,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QAbstractPrintDialog::PrintDialogOptions(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QAbstractPrintDialog::PrintDialogOptions();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QAbstractPrintDialog_PrintDialogOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_QAbstractPrintDialog_PrintDialogOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QAbstractPrintDialog::PrintDialogOptions **sipCppPtr = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QAbstractPrintDialog::PrintDialogOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QAbstractPrintDialog_PrintDialogOption)) ||
            sipCanConvertToType(sipPy, sipType_QAbstractPrintDialog_PrintDialogOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QAbstractPrintDialog_PrintDialogOption)))
{
    *sipCppPtr = new QAbstractPrintDialog::PrintDialogOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QAbstractPrintDialog::PrintDialogOptions *>(sipConvertToType(sipPy, sipType_QAbstractPrintDialog_PrintDialogOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 19542 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QAbstractPrintDialog_PrintDialogOptions[] = {
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___bool__, bool_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___ne__, ne_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___eq__, eq_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___invert__, invert_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___and__, and_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___xor__, xor_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___or__, or_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___int__, int_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___ixor__, ixor_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___ior__, ior_slot},
    {(void *)slot_QAbstractPrintDialog_PrintDialogOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QAbstractPrintDialog_PrintDialogOptions, "\1QAbstractPrintDialog.PrintDialogOptions(QAbstractPrintDialog.PrintDialogOptions)\n"
    "QAbstractPrintDialog.PrintDialogOptions(int)\n"
    "QAbstractPrintDialog.PrintDialogOptions()");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QAbstractPrintDialog_PrintDialogOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QAbstractPrintDialog__PrintDialogOptions,
        {0}
    },
    {
        sipNameNr_PrintDialogOptions,
        {0, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAbstractPrintDialog_PrintDialogOptions,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QAbstractPrintDialog_PrintDialogOptions,
    init_type_QAbstractPrintDialog_PrintDialogOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractPrintDialog_PrintDialogOptions,
    assign_QAbstractPrintDialog_PrintDialogOptions,
    array_QAbstractPrintDialog_PrintDialogOptions,
    copy_QAbstractPrintDialog_PrintDialogOptions,
    release_QAbstractPrintDialog_PrintDialogOptions,
    cast_QAbstractPrintDialog_PrintDialogOptions,
    convertTo_QAbstractPrintDialog_PrintDialogOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 32 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qabstractprintdialog.sip"
#include <qabstractprintdialog.h>
#line 19624 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

#line 28 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/sip/QtPrintSupport/qprinter.sip"
#include <qprinter.h>
#line 19628 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 19631 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19634 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19637 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19640 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 452 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19643 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 395 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19646 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 430 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19649 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 408 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19652 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 333 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19655 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 19658 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19661 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qicon.sip"
#include <qicon.h>
#line 19664 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 19667 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19670 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 19673 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19676 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 19679 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 19682 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19685 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 19688 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19691 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19694 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 19697 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 19700 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 19703 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 19706 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 19709 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 19712 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qregion.sip"
#include <qregion.h>
#line 19715 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 32 "sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 19718 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 19721 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 19724 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qfont.sip"
#include <qfont.h>
#line 19727 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19730 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 479 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19733 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 441 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19736 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 534 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19739 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 583 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19742 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 556 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19745 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 572 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19748 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 635 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19751 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 275 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19754 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 382 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19757 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 368 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19760 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 354 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19763 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 247 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19766 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 202 "sip/QtGui/qevent.sip"
#include <qevent.h>
#line 19769 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 56 "sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 19772 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19775 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qaction.sip"
#include <qaction.h>
#line 19778 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtWidgets/qlayout.sip"
#include <qlayout.h>
#line 19781 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 19784 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19787 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 19790 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 19793 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 19796 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 19799 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtWidgets/qstyle.sip"
#include <qstyle.h>
#line 19802 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 19805 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19808 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19811 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19814 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19817 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 19820 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19823 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 19826 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 19829 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 19832 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"


class sipQAbstractPrintDialog : public QAbstractPrintDialog
{
public:
    sipQAbstractPrintDialog(QPrinter*,QWidget*);
    virtual ~sipQAbstractPrintDialog();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    bool sipProtectVirt_event(bool,QEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_enterEvent(bool,QEvent*);
    void sipProtectVirt_leaveEvent(bool,QEvent*);
    void sipProtectVirt_paintEvent(bool,QPaintEvent*);
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);
    void sipProtectVirt_actionEvent(bool,QActionEvent*);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent*);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent*);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent*);
    void sipProtectVirt_dropEvent(bool,QDropEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    void sipProtectVirt_changeEvent(bool,QEvent*);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent*);
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    bool sipProtectVirt_nativeEvent(bool,const QByteArray&,void*,long*);
    QPainter* sipProtectVirt_sharedPainter(bool) const;
    void sipProtectVirt_initPainter(bool,QPainter*) const;
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_closeEvent(bool,QCloseEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent*);
    bool sipProtectVirt_eventFilter(bool,QObject*,QEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    void initPainter(QPainter*) const;
    QPainter* sharedPainter() const;
    bool nativeEvent(const QByteArray&,void*,long*);
    bool hasHeightForWidth() const;
    bool focusNextPrevChild(bool);
    QVariant inputMethodQuery(Qt::InputMethodQuery) const;
    void inputMethodEvent(QInputMethodEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void changeEvent(QEvent*);
    void hideEvent(QHideEvent*);
    void dropEvent(QDropEvent*);
    void dragLeaveEvent(QDragLeaveEvent*);
    void dragMoveEvent(QDragMoveEvent*);
    void dragEnterEvent(QDragEnterEvent*);
    void actionEvent(QActionEvent*);
    void tabletEvent(QTabletEvent*);
    void moveEvent(QMoveEvent*);
    void paintEvent(QPaintEvent*);
    void leaveEvent(QEvent*);
    void enterEvent(QEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    bool event(QEvent*);
    QPaintEngine* paintEngine() const;
    int heightForWidth(int) const;
    int devType() const;
    bool eventFilter(QObject*,QEvent*);
    void contextMenuEvent(QContextMenuEvent*);
    void resizeEvent(QResizeEvent*);
    void showEvent(QShowEvent*);
    void closeEvent(QCloseEvent*);
    void keyPressEvent(QKeyEvent*);
    void open();
    void reject();
    void accept();
    void done(int);
    QSize minimumSizeHint() const;
    QSize sizeHint() const;
    void setVisible(bool);
    int exec();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQAbstractPrintDialog(const sipQAbstractPrintDialog &);
    sipQAbstractPrintDialog &operator = (const sipQAbstractPrintDialog &);

    char sipPyMethods[51];
};

sipQAbstractPrintDialog::sipQAbstractPrintDialog(QPrinter*a0,QWidget*a1): QAbstractPrintDialog(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQAbstractPrintDialog::~sipQAbstractPrintDialog()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQAbstractPrintDialog::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtPrintSupport_qt_metaobject(sipPySelf,sipType_QAbstractPrintDialog);
}

int sipQAbstractPrintDialog::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QAbstractPrintDialog::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtPrintSupport_qt_metacall(sipPySelf,sipType_QAbstractPrintDialog,_c,_id,_a);

    return _id;
}

void *sipQAbstractPrintDialog::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtPrintSupport_qt_metacast(sipPySelf, sipType_QAbstractPrintDialog, _clname, &sipCpp) ? sipCpp : QAbstractPrintDialog::qt_metacast(_clname));
}

void sipQAbstractPrintDialog::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QAbstractPrintDialog::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QAbstractPrintDialog::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::initPainter(QPainter*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_initPainter);

    if (!sipMeth)
    {
        QAbstractPrintDialog::initPainter(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*);

    ((sipVH_QtWidgets_3)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPainter* sipQAbstractPrintDialog::sharedPainter() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_sharedPainter);

    if (!sipMeth)
        return QAbstractPrintDialog::sharedPainter();

    typedef QPainter* (*sipVH_QtWidgets_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtWidgets_4)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQAbstractPrintDialog::nativeEvent(const QByteArray& a0,void*a1,long*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_nativeEvent);

    if (!sipMeth)
        return QAbstractPrintDialog::nativeEvent(a0,a1,a2);

    typedef bool (*sipVH_QtCore_58)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QByteArray&,void*,long*);

    return ((sipVH_QtCore_58)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[58]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQAbstractPrintDialog::hasHeightForWidth() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_hasHeightForWidth);

    if (!sipMeth)
        return QAbstractPrintDialog::hasHeightForWidth();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQAbstractPrintDialog::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return QAbstractPrintDialog::focusNextPrevChild(a0);

    typedef bool (*sipVH_QtWidgets_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return ((sipVH_QtWidgets_5)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QVariant sipQAbstractPrintDialog::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return QAbstractPrintDialog::inputMethodQuery(a0);

    typedef QVariant (*sipVH_QtWidgets_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, Qt::InputMethodQuery);

    return ((sipVH_QtWidgets_6)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::inputMethodEvent(QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::inputMethodEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QInputMethodEvent*);

    ((sipVH_QtWidgets_7)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQAbstractPrintDialog::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QAbstractPrintDialog::metric(a0);

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return ((sipVH_QtGui_28)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::changeEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::changeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::hideEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    ((sipVH_QtGui_5)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::dropEvent(QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::dropEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDropEvent*);

    ((sipVH_QtWidgets_8)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::dragLeaveEvent(QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::dragLeaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragLeaveEvent*);

    ((sipVH_QtWidgets_9)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::dragMoveEvent(QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::dragMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_10)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragMoveEvent*);

    ((sipVH_QtWidgets_10)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[10]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::dragEnterEvent(QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::dragEnterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDragEnterEvent*);

    ((sipVH_QtWidgets_11)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::actionEvent(QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::actionEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QActionEvent*);

    ((sipVH_QtWidgets_12)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::tabletEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    ((sipVH_QtGui_0)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::moveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_8)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    ((sipVH_QtGui_8)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[8]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::paintEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_52)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    ((sipVH_QtGui_52)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[52]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::leaveEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::leaveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::enterEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::enterEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::focusOutEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::focusInEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    ((sipVH_QtGui_7)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::keyReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::wheelEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    ((sipVH_QtGui_2)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[2]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::mouseMoveEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::mouseDoubleClickEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::mouseReleaseEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::mousePressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    ((sipVH_QtGui_3)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[3]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQAbstractPrintDialog::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QAbstractPrintDialog::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQAbstractPrintDialog::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QAbstractPrintDialog::paintEngine();

    typedef QPaintEngine* (*sipVH_QtGui_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_29)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[29]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQAbstractPrintDialog::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return QAbstractPrintDialog::heightForWidth(a0);

    typedef int (*sipVH_QtCore_61)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_61)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[61]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQAbstractPrintDialog::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QAbstractPrintDialog::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQAbstractPrintDialog::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QAbstractPrintDialog::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQAbstractPrintDialog::contextMenuEvent(QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::contextMenuEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_13)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QContextMenuEvent*);

    ((sipVH_QtWidgets_13)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[13]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::resizeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    ((sipVH_QtGui_9)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::showEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    ((sipVH_QtGui_6)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::closeEvent(QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::closeEvent(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_14)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QCloseEvent*);

    ((sipVH_QtWidgets_14)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[14]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QAbstractPrintDialog::keyPressEvent(a0);
        return;
    }

    typedef void (*sipVH_QtGui_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    ((sipVH_QtGui_4)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractPrintDialog::open()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_open);

    if (!sipMeth)
    {
        QAbstractPrintDialog::open();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQAbstractPrintDialog::reject()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_reject);

    if (!sipMeth)
    {
        QAbstractPrintDialog::reject();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQAbstractPrintDialog::accept()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_accept);

    if (!sipMeth)
    {
        QAbstractPrintDialog::accept();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQAbstractPrintDialog::done(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_done);

    if (!sipMeth)
    {
        QAbstractPrintDialog::done(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    ((sipVH_QtCore_4)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[4]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QSize sipQAbstractPrintDialog::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[47]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return QAbstractPrintDialog::minimumSizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQAbstractPrintDialog::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[48]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return QAbstractPrintDialog::sizeHint();

    typedef QSize (*sipVH_QtGui_12)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtGui_12)(sipModuleAPI_QtPrintSupport_QtGui->em_virthandlers[12]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQAbstractPrintDialog::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
        QAbstractPrintDialog::setVisible(a0);
        return;
    }

    typedef void (*sipVH_QtWidgets_0)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtWidgets_0)(sipModuleAPI_QtPrintSupport_QtWidgets->em_virthandlers[0]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQAbstractPrintDialog::exec()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,sipName_QAbstractPrintDialog,sipName_exec_);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtPrintSupport_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtPrintSupport_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQAbstractPrintDialog::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQAbstractPrintDialog::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQAbstractPrintDialog::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQAbstractPrintDialog::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQAbstractPrintDialog::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

bool sipQAbstractPrintDialog::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QWidget::event(a0) : event(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent*a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent*a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent*a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent*a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWidget::hideEvent(a0) : hideEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipQAbstractPrintDialog::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent*a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipQAbstractPrintDialog::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipQAbstractPrintDialog::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipQAbstractPrintDialog::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipQAbstractPrintDialog::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipQAbstractPrintDialog::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipQAbstractPrintDialog::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

bool sipQAbstractPrintDialog::sipProtectVirt_nativeEvent(bool sipSelfWasArg,const QByteArray& a0,void*a1,long*a2)
{
    return (sipSelfWasArg ? QWidget::nativeEvent(a0,a1,a2) : nativeEvent(a0,a1,a2));
}

QPainter* sipQAbstractPrintDialog::sipProtectVirt_sharedPainter(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? QWidget::sharedPainter() : sharedPainter());
}

void sipQAbstractPrintDialog::sipProtectVirt_initPainter(bool sipSelfWasArg,QPainter*a0) const
{
    (sipSelfWasArg ? QWidget::initPainter(a0) : initPainter(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QDialog::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent*a0)
{
    (sipSelfWasArg ? QDialog::closeEvent(a0) : closeEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QDialog::showEvent(a0) : showEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QDialog::resizeEvent(a0) : resizeEvent(a0));
}

void sipQAbstractPrintDialog::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent*a0)
{
    (sipSelfWasArg ? QDialog::contextMenuEvent(a0) : contextMenuEvent(a0));
}

bool sipQAbstractPrintDialog::sipProtectVirt_eventFilter(bool sipSelfWasArg,QObject*a0,QEvent*a1)
{
    return (sipSelfWasArg ? QDialog::eventFilter(a0,a1) : eventFilter(a0,a1));
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_sender, "QAbstractPrintDialog.sender() -> QObject");

extern "C" {static PyObject *meth_QAbstractPrintDialog_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 21148 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_sender, doc_QAbstractPrintDialog_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_receivers, "QAbstractPrintDialog.receivers(signal) -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 21207 "/usr/src/ports/python-pyqt5/python-pyqt5-5.4.2-1.x86_64/build/QtPrintSupport/sipQtPrintSupportpart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_receivers, doc_QAbstractPrintDialog_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_timerEvent, "QAbstractPrintDialog.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_timerEvent, doc_QAbstractPrintDialog_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_childEvent, "QAbstractPrintDialog.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_childEvent, doc_QAbstractPrintDialog_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_customEvent, "QAbstractPrintDialog.customEvent(QEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_customEvent, doc_QAbstractPrintDialog_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_connectNotify, "QAbstractPrintDialog.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_connectNotify, doc_QAbstractPrintDialog_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_disconnectNotify, "QAbstractPrintDialog.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_disconnectNotify, doc_QAbstractPrintDialog_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_senderSignalIndex, "QAbstractPrintDialog.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_senderSignalIndex, doc_QAbstractPrintDialog_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_isSignalConnected, "QAbstractPrintDialog.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QAbstractPrintDialog_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_isSignalConnected, doc_QAbstractPrintDialog_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_event, "QAbstractPrintDialog.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QAbstractPrintDialog_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_event, doc_QAbstractPrintDialog_event);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_mousePressEvent, "QAbstractPrintDialog.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_mousePressEvent, doc_QAbstractPrintDialog_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_mouseReleaseEvent, "QAbstractPrintDialog.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_mouseReleaseEvent, doc_QAbstractPrintDialog_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_mouseDoubleClickEvent, "QAbstractPrintDialog.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_mouseDoubleClickEvent, doc_QAbstractPrintDialog_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_mouseMoveEvent, "QAbstractPrintDialog.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_mouseMoveEvent, doc_QAbstractPrintDialog_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_wheelEvent, "QAbstractPrintDialog.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_wheelEvent, doc_QAbstractPrintDialog_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_keyReleaseEvent, "QAbstractPrintDialog.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_keyReleaseEvent, doc_QAbstractPrintDialog_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_focusInEvent, "QAbstractPrintDialog.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_focusInEvent, doc_QAbstractPrintDialog_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_focusOutEvent, "QAbstractPrintDialog.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_focusOutEvent, doc_QAbstractPrintDialog_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_enterEvent, "QAbstractPrintDialog.enterEvent(QEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_enterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_enterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_enterEvent, doc_QAbstractPrintDialog_enterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_leaveEvent, "QAbstractPrintDialog.leaveEvent(QEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_leaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_leaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_leaveEvent, doc_QAbstractPrintDialog_leaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_paintEvent, "QAbstractPrintDialog.paintEvent(QPaintEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_paintEvent, doc_QAbstractPrintDialog_paintEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_moveEvent, "QAbstractPrintDialog.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_moveEvent, doc_QAbstractPrintDialog_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_tabletEvent, "QAbstractPrintDialog.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_tabletEvent, doc_QAbstractPrintDialog_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_actionEvent, "QAbstractPrintDialog.actionEvent(QActionEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_actionEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_actionEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QActionEvent, &a0))
        {
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_actionEvent, doc_QAbstractPrintDialog_actionEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_dragEnterEvent, "QAbstractPrintDialog.dragEnterEvent(QDragEnterEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_dragEnterEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_dragEnterEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QDragEnterEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_dragEnterEvent, doc_QAbstractPrintDialog_dragEnterEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_dragMoveEvent, "QAbstractPrintDialog.dragMoveEvent(QDragMoveEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_dragMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QDragMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_dragMoveEvent, doc_QAbstractPrintDialog_dragMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_dragLeaveEvent, "QAbstractPrintDialog.dragLeaveEvent(QDragLeaveEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_dragLeaveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QDragLeaveEvent, &a0))
        {
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_dragLeaveEvent, doc_QAbstractPrintDialog_dragLeaveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_dropEvent, "QAbstractPrintDialog.dropEvent(QDropEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_dropEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_dropEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QDropEvent, &a0))
        {
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_dropEvent, doc_QAbstractPrintDialog_dropEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_hideEvent, "QAbstractPrintDialog.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_hideEvent, doc_QAbstractPrintDialog_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_changeEvent, "QAbstractPrintDialog.changeEvent(QEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_changeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_changeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_changeEvent, doc_QAbstractPrintDialog_changeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_metric, "QAbstractPrintDialog.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_metric, doc_QAbstractPrintDialog_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_inputMethodEvent, "QAbstractPrintDialog.inputMethodEvent(QInputMethodEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_inputMethodEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_inputMethodEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QInputMethodEvent, &a0))
        {
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_inputMethodEvent, doc_QAbstractPrintDialog_inputMethodEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_updateMicroFocus, "QAbstractPrintDialog.updateMicroFocus()");

extern "C" {static PyObject *meth_QAbstractPrintDialog_updateMicroFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_updateMicroFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            sipCpp->sipProtect_updateMicroFocus();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_updateMicroFocus, doc_QAbstractPrintDialog_updateMicroFocus);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_create, "QAbstractPrintDialog.create(sip.voidptr window=0, bool initializeWindow=True, bool destroyOldWindow=True)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        WId a0def = 0;
        WId* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipQAbstractPrintDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1bb", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_quintptr,&a0, &a0State, &a1, &a2))
        {
            sipCpp->sipProtect_create(*a0,a1,a2);
            sipReleaseType(a0,sipType_quintptr,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_create, doc_QAbstractPrintDialog_create);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_destroy, "QAbstractPrintDialog.destroy(bool destroyWindow=True, bool destroySubWindows=True)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_destroy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_destroy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipQAbstractPrintDialog *sipCpp;

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, &a0, &a1))
        {
            sipCpp->sipProtect_destroy(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_destroy, doc_QAbstractPrintDialog_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_focusNextPrevChild, "QAbstractPrintDialog.focusNextPrevChild(bool) -> bool");

extern "C" {static PyObject *meth_QAbstractPrintDialog_focusNextPrevChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_focusNextPrevChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_focusNextPrevChild, doc_QAbstractPrintDialog_focusNextPrevChild);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_focusNextChild, "QAbstractPrintDialog.focusNextChild() -> bool");

extern "C" {static PyObject *meth_QAbstractPrintDialog_focusNextChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_focusNextChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusNextChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_focusNextChild, doc_QAbstractPrintDialog_focusNextChild);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_focusPreviousChild, "QAbstractPrintDialog.focusPreviousChild() -> bool");

extern "C" {static PyObject *meth_QAbstractPrintDialog_focusPreviousChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_focusPreviousChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_focusPreviousChild();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_focusPreviousChild, doc_QAbstractPrintDialog_focusPreviousChild);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_nativeEvent, "QAbstractPrintDialog.nativeEvent(QByteArray, sip.voidptr) -> (bool, int)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_nativeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_nativeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QByteArray* a0;
        int a0State = 0;
        void* a1;
        long a2;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1v", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_nativeEvent(sipSelfWasArg,*a0,a1,&a2);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipBuildResult(0,"(bl)",sipRes,a2);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_nativeEvent, doc_QAbstractPrintDialog_nativeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_sharedPainter, "QAbstractPrintDialog.sharedPainter() -> QPainter");

extern "C" {static PyObject *meth_QAbstractPrintDialog_sharedPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_sharedPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            QPainter*sipRes;

            sipRes = sipCpp->sipProtectVirt_sharedPainter(sipSelfWasArg);

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_sharedPainter, doc_QAbstractPrintDialog_sharedPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_initPainter, "QAbstractPrintDialog.initPainter(QPainter)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_initPainter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_initPainter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPainter* a0;
        const sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QPainter, &a0))
        {
            sipCpp->sipProtectVirt_initPainter(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_initPainter, doc_QAbstractPrintDialog_initPainter);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_keyPressEvent, "QAbstractPrintDialog.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_keyPressEvent, doc_QAbstractPrintDialog_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_closeEvent, "QAbstractPrintDialog.closeEvent(QCloseEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_closeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_closeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QCloseEvent, &a0))
        {
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_closeEvent, doc_QAbstractPrintDialog_closeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_showEvent, "QAbstractPrintDialog.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_showEvent, doc_QAbstractPrintDialog_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_resizeEvent, "QAbstractPrintDialog.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_resizeEvent, doc_QAbstractPrintDialog_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_contextMenuEvent, "QAbstractPrintDialog.contextMenuEvent(QContextMenuEvent)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_contextMenuEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent* a0;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QContextMenuEvent, &a0))
        {
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_contextMenuEvent, doc_QAbstractPrintDialog_contextMenuEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_eventFilter, "QAbstractPrintDialog.eventFilter(QObject, QEvent) -> bool");

extern "C" {static PyObject *meth_QAbstractPrintDialog_eventFilter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_eventFilter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject* a0;
        QEvent* a1;
        sipQAbstractPrintDialog *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J8", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_eventFilter(sipSelfWasArg,a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_eventFilter, doc_QAbstractPrintDialog_eventFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_exec_, "QAbstractPrintDialog.exec_() -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_exec_(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_exec_(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractPrintDialog, sipName_exec_);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exec();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_exec_, doc_QAbstractPrintDialog_exec_);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_setPrintRange, "QAbstractPrintDialog.setPrintRange(QAbstractPrintDialog.PrintRange)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_setPrintRange(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_setPrintRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractPrintDialog::PrintRange a0;
        QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QAbstractPrintDialog_PrintRange, &a0))
        {
            sipCpp->setPrintRange(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_setPrintRange, doc_QAbstractPrintDialog_setPrintRange);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_printRange, "QAbstractPrintDialog.printRange() -> QAbstractPrintDialog.PrintRange");

extern "C" {static PyObject *meth_QAbstractPrintDialog_printRange(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_printRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            QAbstractPrintDialog::PrintRange sipRes;

            sipRes = sipCpp->printRange();

            return sipConvertFromEnum(sipRes,sipType_QAbstractPrintDialog_PrintRange);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_printRange, doc_QAbstractPrintDialog_printRange);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_setMinMax, "QAbstractPrintDialog.setMinMax(int, int)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_setMinMax(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_setMinMax(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, &a0, &a1))
        {
            sipCpp->setMinMax(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_setMinMax, doc_QAbstractPrintDialog_setMinMax);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_minPage, "QAbstractPrintDialog.minPage() -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_minPage(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_minPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->minPage();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_minPage, doc_QAbstractPrintDialog_minPage);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_maxPage, "QAbstractPrintDialog.maxPage() -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_maxPage(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_maxPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maxPage();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_maxPage, doc_QAbstractPrintDialog_maxPage);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_setFromTo, "QAbstractPrintDialog.setFromTo(int, int)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_setFromTo(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_setFromTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, &a0, &a1))
        {
            sipCpp->setFromTo(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_setFromTo, doc_QAbstractPrintDialog_setFromTo);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_fromPage, "QAbstractPrintDialog.fromPage() -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_fromPage(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_fromPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->fromPage();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_fromPage, doc_QAbstractPrintDialog_fromPage);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_toPage, "QAbstractPrintDialog.toPage() -> int");

extern "C" {static PyObject *meth_QAbstractPrintDialog_toPage(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_toPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->toPage();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_toPage, doc_QAbstractPrintDialog_toPage);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_printer, "QAbstractPrintDialog.printer() -> QPrinter");

extern "C" {static PyObject *meth_QAbstractPrintDialog_printer(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_printer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp))
        {
            QPrinter*sipRes;

            sipRes = sipCpp->printer();

            return sipConvertFromType(sipRes,sipType_QPrinter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_printer, doc_QAbstractPrintDialog_printer);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractPrintDialog_setOptionTabs, "QAbstractPrintDialog.setOptionTabs(list-of-QWidget)");

extern "C" {static PyObject *meth_QAbstractPrintDialog_setOptionTabs(PyObject *, PyObject *);}
static PyObject *meth_QAbstractPrintDialog_setOptionTabs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QWidget*>* a0;
        int a0State = 0;
        QAbstractPrintDialog *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QAbstractPrintDialog, &sipCpp, sipType_QList_0101QWidget,&a0, &a0State))
        {
            sipCpp->setOptionTabs(*a0);
            sipReleaseType(const_cast<QList<QWidget*> *>(a0),sipType_QList_0101QWidget,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractPrintDialog, sipName_setOptionTabs, doc_QAbstractPrintDialog_setOptionTabs);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractPrintDialog(void *, const sipTypeDef *);}
static void *cast_QAbstractPrintDialog(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QAbstractPrintDialog)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDialog)->ctd_cast((QDialog *)(QAbstractPrintDialog *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractPrintDialog(void *, int);}
static void release_QAbstractPrintDialog(void *sipCppV,int)
{
    QAbstractPrintDialog *sipCpp = reinterpret_cast<QAbstractPrintDialog *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QAbstractPrintDialog(sipSimpleWrapper *);}
static void dealloc_QAbstractPrintDialog(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQAbstractPrintDialog *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractPrintDialog(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QAbstractPrintDialog(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAbstractPrintDialog(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQAbstractPrintDialog *sipCpp = 0;

    {
        QPrinter* a0;
        QWidget* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|JH", sipType_QPrinter, &a0, sipType_QWidget, &a1, sipOwner))
        {
            sipCpp = new sipQAbstractPrintDialog(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QAbstractPrintDialog[] = {{60, 2, 1}};


static PyMethodDef methods_QAbstractPrintDialog[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), (PyCFunction)meth_QAbstractPrintDialog_actionEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), (PyCFunction)meth_QAbstractPrintDialog_changeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QAbstractPrintDialog_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), (PyCFunction)meth_QAbstractPrintDialog_closeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QAbstractPrintDialog_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), (PyCFunction)meth_QAbstractPrintDialog_contextMenuEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_QAbstractPrintDialog_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QAbstractPrintDialog_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_QAbstractPrintDialog_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QAbstractPrintDialog_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), (PyCFunction)meth_QAbstractPrintDialog_dragEnterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), (PyCFunction)meth_QAbstractPrintDialog_dragLeaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), (PyCFunction)meth_QAbstractPrintDialog_dragMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), (PyCFunction)meth_QAbstractPrintDialog_dropEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), (PyCFunction)meth_QAbstractPrintDialog_enterEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QAbstractPrintDialog_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), (PyCFunction)meth_QAbstractPrintDialog_eventFilter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_exec_), meth_QAbstractPrintDialog_exec_, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_exec_)},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QAbstractPrintDialog_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), (PyCFunction)meth_QAbstractPrintDialog_focusNextChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), (PyCFunction)meth_QAbstractPrintDialog_focusNextPrevChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QAbstractPrintDialog_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), (PyCFunction)meth_QAbstractPrintDialog_focusPreviousChild, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_fromPage), meth_QAbstractPrintDialog_fromPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_fromPage)},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QAbstractPrintDialog_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initPainter), (PyCFunction)meth_QAbstractPrintDialog_initPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), (PyCFunction)meth_QAbstractPrintDialog_inputMethodEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QAbstractPrintDialog_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QAbstractPrintDialog_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QAbstractPrintDialog_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), (PyCFunction)meth_QAbstractPrintDialog_leaveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_maxPage), meth_QAbstractPrintDialog_maxPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_maxPage)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QAbstractPrintDialog_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_minPage), meth_QAbstractPrintDialog_minPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_minPage)},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QAbstractPrintDialog_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QAbstractPrintDialog_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QAbstractPrintDialog_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QAbstractPrintDialog_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QAbstractPrintDialog_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_nativeEvent), (PyCFunction)meth_QAbstractPrintDialog_nativeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_QAbstractPrintDialog_paintEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_printRange), meth_QAbstractPrintDialog_printRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_printRange)},
    {SIP_MLNAME_CAST(sipName_printer), meth_QAbstractPrintDialog_printer, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_printer)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QAbstractPrintDialog_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QAbstractPrintDialog_resizeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QAbstractPrintDialog_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QAbstractPrintDialog_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFromTo), meth_QAbstractPrintDialog_setFromTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_setFromTo)},
    {SIP_MLNAME_CAST(sipName_setMinMax), meth_QAbstractPrintDialog_setMinMax, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_setMinMax)},
    {SIP_MLNAME_CAST(sipName_setOptionTabs), meth_QAbstractPrintDialog_setOptionTabs, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_setOptionTabs)},
    {SIP_MLNAME_CAST(sipName_setPrintRange), meth_QAbstractPrintDialog_setPrintRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_setPrintRange)},
    {SIP_MLNAME_CAST(sipName_sharedPainter), (PyCFunction)meth_QAbstractPrintDialog_sharedPainter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QAbstractPrintDialog_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QAbstractPrintDialog_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QAbstractPrintDialog_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_toPage), meth_QAbstractPrintDialog_toPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractPrintDialog_toPage)},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), (PyCFunction)meth_QAbstractPrintDialog_updateMicroFocus, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QAbstractPrintDialog_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QAbstractPrintDialog[] = {
    {sipName_AllPages, static_cast<int>(QAbstractPrintDialog::AllPages), 3},
    {sipName_CurrentPage, static_cast<int>(QAbstractPrintDialog::CurrentPage), 3},
    {sipName_None, static_cast<int>(QAbstractPrintDialog::None), 1},
    {sipName_None_, static_cast<int>(QAbstractPrintDialog::None), 1},
    {sipName_PageRange, static_cast<int>(QAbstractPrintDialog::PageRange), 3},
    {sipName_PrintCollateCopies, static_cast<int>(QAbstractPrintDialog::PrintCollateCopies), 1},
    {sipName_PrintCurrentPage, static_cast<int>(QAbstractPrintDialog::PrintCurrentPage), 1},
    {sipName_PrintPageRange, static_cast<int>(QAbstractPrintDialog::PrintPageRange), 1},
    {sipName_PrintSelection, static_cast<int>(QAbstractPrintDialog::PrintSelection), 1},
    {sipName_PrintShowPageSize, static_cast<int>(QAbstractPrintDialog::PrintShowPageSize), 1},
    {sipName_PrintToFile, static_cast<int>(QAbstractPrintDialog::PrintToFile), 1},
    {sipName_Selection, static_cast<int>(QAbstractPrintDialog::Selection), 3},
};

PyDoc_STRVAR(doc_QAbstractPrintDialog, "\1QAbstractPrintDialog(QPrinter, QWidget parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtPrintSupport_QAbstractPrintDialog = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QAbstractPrintDialog,
        {0}
    },
    {
        sipNameNr_QAbstractPrintDialog,
        {0, 0, 1},
        58, methods_QAbstractPrintDialog,
        12, enummembers_QAbstractPrintDialog,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAbstractPrintDialog,
    -1,
    -1,
    supers_QAbstractPrintDialog,
    0,
    init_type_QAbstractPrintDialog,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractPrintDialog,
    0,
    0,
    0,
    release_QAbstractPrintDialog,
    cast_QAbstractPrintDialog,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QAbstractPrintDialog::staticMetaObject,
    0,
    0,
    0
};
