From 4b05d93f73905d9990026682ce5f6146fc2782e9 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:24:05 +0200 Subject: [PATCH 01/12] Update QtCore.pyi --- PyQt5-stubs/QtCore.pyi | 725 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 673 insertions(+), 52 deletions(-) diff --git a/PyQt5-stubs/QtCore.pyi b/PyQt5-stubs/QtCore.pyi index 84f6f8f0..7283ff6e 100644 --- a/PyQt5-stubs/QtCore.pyi +++ b/PyQt5-stubs/QtCore.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtCore module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -52,8 +52,48 @@ QtSystemMsg = ... # type: QtMsgType QtInfoMsg = ... # type: QtMsgType +class QCborKnownTags(int): ... +DateTimeString = ... # type: QCborKnownTags +UnixTime_t = ... # type: QCborKnownTags +PositiveBignum = ... # type: QCborKnownTags +NegativeBignum = ... # type: QCborKnownTags +Decimal = ... # type: QCborKnownTags +Bigfloat = ... # type: QCborKnownTags +COSE_Encrypt0 = ... # type: QCborKnownTags +COSE_Mac0 = ... # type: QCborKnownTags +COSE_Sign1 = ... # type: QCborKnownTags +ExpectedBase64url = ... # type: QCborKnownTags +ExpectedBase64 = ... # type: QCborKnownTags +ExpectedBase16 = ... # type: QCborKnownTags +EncodedCbor = ... # type: QCborKnownTags +Url = ... # type: QCborKnownTags +Base64url = ... # type: QCborKnownTags +Base64 = ... # type: QCborKnownTags +RegularExpression = ... # type: QCborKnownTags +MimeMessage = ... # type: QCborKnownTags +Uuid = ... # type: QCborKnownTags +COSE_Encrypt = ... # type: QCborKnownTags +COSE_Mac = ... # type: QCborKnownTags +COSE_Sign = ... # type: QCborKnownTags +Signature = ... # type: QCborKnownTags + + +class QCborSimpleType(int): ... +False_ = ... # type: QCborSimpleType +True_ = ... # type: QCborSimpleType +Null = ... # type: QCborSimpleType +Undefined = ... # type: QCborSimpleType + + class Qt(sip.simplewrapper): + class HighDpiScaleFactorRoundingPolicy(int): ... + Round = ... # type: 'Qt.HighDpiScaleFactorRoundingPolicy' + Ceil = ... # type: 'Qt.HighDpiScaleFactorRoundingPolicy' + Floor = ... # type: 'Qt.HighDpiScaleFactorRoundingPolicy' + RoundPreferFloor = ... # type: 'Qt.HighDpiScaleFactorRoundingPolicy' + PassThrough = ... # type: 'Qt.HighDpiScaleFactorRoundingPolicy' + class ChecksumType(int): ... ChecksumIso3309 = ... # type: 'Qt.ChecksumType' ChecksumItuV41 = ... # type: 'Qt.ChecksumType' @@ -92,6 +132,7 @@ class Qt(sip.simplewrapper): ScrollUpdate = ... # type: 'Qt.ScrollPhase' ScrollEnd = ... # type: 'Qt.ScrollPhase' NoScrollPhase = ... # type: 'Qt.ScrollPhase' + ScrollMomentum = ... # type: 'Qt.ScrollPhase' class NativeGestureType(int): ... BeginNativeGesture = ... # type: 'Qt.NativeGestureType' @@ -205,6 +246,8 @@ class Qt(sip.simplewrapper): ImhPreferLatin = ... # type: 'Qt.InputMethodHint' ImhLatinOnly = ... # type: 'Qt.InputMethodHint' ImhMultiLine = ... # type: 'Qt.InputMethodHint' + ImhNoEditMenu = ... # type: 'Qt.InputMethodHint' + ImhNoTextHandles = ... # type: 'Qt.InputMethodHint' class TileRule(int): ... StretchTile = ... # type: 'Qt.TileRule' @@ -292,6 +335,10 @@ class Qt(sip.simplewrapper): AA_CompressHighFrequencyEvents = ... # type: 'Qt.ApplicationAttribute' AA_DontCheckOpenGLContextThreadAffinity = ... # type: 'Qt.ApplicationAttribute' AA_DisableShaderDiskCache = ... # type: 'Qt.ApplicationAttribute' + AA_DontShowShortcutsInContextMenus = ... # type: 'Qt.ApplicationAttribute' + AA_CompressTabletEvents = ... # type: 'Qt.ApplicationAttribute' + AA_DisableWindowContextHelpButton = ... # type: 'Qt.ApplicationAttribute' + AA_DisableSessionManager = ... # type: 'Qt.ApplicationAttribute' class WindowModality(int): ... NonModal = ... # type: 'Qt.WindowModality' @@ -509,6 +556,7 @@ class Qt(sip.simplewrapper): PlainText = ... # type: 'Qt.TextFormat' RichText = ... # type: 'Qt.TextFormat' AutoText = ... # type: 'Qt.TextFormat' + MarkdownText = ... # type: 'Qt.TextFormat' class CursorShape(int): ... ArrowCursor = ... # type: 'Qt.CursorShape' @@ -1037,6 +1085,36 @@ class Qt(sip.simplewrapper): Key_Find = ... # type: 'Qt.Key' Key_Undo = ... # type: 'Qt.Key' Key_Redo = ... # type: 'Qt.Key' + Key_Dead_Stroke = ... # type: 'Qt.Key' + Key_Dead_Abovecomma = ... # type: 'Qt.Key' + Key_Dead_Abovereversedcomma = ... # type: 'Qt.Key' + Key_Dead_Doublegrave = ... # type: 'Qt.Key' + Key_Dead_Belowring = ... # type: 'Qt.Key' + Key_Dead_Belowmacron = ... # type: 'Qt.Key' + Key_Dead_Belowcircumflex = ... # type: 'Qt.Key' + Key_Dead_Belowtilde = ... # type: 'Qt.Key' + Key_Dead_Belowbreve = ... # type: 'Qt.Key' + Key_Dead_Belowdiaeresis = ... # type: 'Qt.Key' + Key_Dead_Invertedbreve = ... # type: 'Qt.Key' + Key_Dead_Belowcomma = ... # type: 'Qt.Key' + Key_Dead_Currency = ... # type: 'Qt.Key' + Key_Dead_a = ... # type: 'Qt.Key' + Key_Dead_A = ... # type: 'Qt.Key' + Key_Dead_e = ... # type: 'Qt.Key' + Key_Dead_E = ... # type: 'Qt.Key' + Key_Dead_i = ... # type: 'Qt.Key' + Key_Dead_I = ... # type: 'Qt.Key' + Key_Dead_o = ... # type: 'Qt.Key' + Key_Dead_O = ... # type: 'Qt.Key' + Key_Dead_u = ... # type: 'Qt.Key' + Key_Dead_U = ... # type: 'Qt.Key' + Key_Dead_Small_Schwa = ... # type: 'Qt.Key' + Key_Dead_Capital_Schwa = ... # type: 'Qt.Key' + Key_Dead_Greek = ... # type: 'Qt.Key' + Key_Dead_Lowline = ... # type: 'Qt.Key' + Key_Dead_Aboveverticalline = ... # type: 'Qt.Key' + Key_Dead_Belowverticalline = ... # type: 'Qt.Key' + Key_Dead_Longsolidusoverlay = ... # type: 'Qt.Key' class BGMode(int): ... TransparentMode = ... # type: 'Qt.BGMode' @@ -1161,6 +1239,8 @@ class Qt(sip.simplewrapper): WA_MacNoShadow = ... # type: 'Qt.WidgetAttribute' WA_AlwaysStackOnTop = ... # type: 'Qt.WidgetAttribute' WA_TabletTracking = ... # type: 'Qt.WidgetAttribute' + WA_ContentsMarginsRespectsSafeArea = ... # type: 'Qt.WidgetAttribute' + WA_StyleSheetTarget = ... # type: 'Qt.WidgetAttribute' class WindowState(int): ... WindowNoState = ... # type: 'Qt.WindowState' @@ -1672,7 +1752,7 @@ class QObject(sip.wrapper): def __init__(self, parent: typing.Optional['QObject'] = ...) -> None: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore @staticmethod def disconnect(a0: 'QMetaObject.Connection') -> bool: ... @typing.overload @@ -1729,6 +1809,7 @@ class QObject(sip.wrapper): def tr(self, sourceText: str, disambiguation: typing.Optional[str] = ..., n: int = ...) -> str: ... def eventFilter(self, a0: 'QObject', a1: 'QEvent') -> bool: ... def event(self, a0: 'QEvent') -> bool: ... + def __getattr__(self, name: str) -> typing.Any: ... def pyqtConfigure(self, a0: typing.Any) -> None: ... def metaObject(self) -> 'QMetaObject': ... @@ -1828,6 +1909,8 @@ class QModelIndex(sip.simplewrapper): def __init__(self, a0: 'QPersistentModelIndex') -> None: ... def __hash__(self) -> int: ... + def siblingAtRow(self, row: int) -> 'QModelIndex': ... + def siblingAtColumn(self, column: int) -> 'QModelIndex': ... def sibling(self, arow: int, acolumn: int) -> 'QModelIndex': ... def parent(self) -> 'QModelIndex': ... def isValid(self) -> bool: ... @@ -1839,8 +1922,6 @@ class QModelIndex(sip.simplewrapper): def column(self) -> int: ... def row(self) -> int: ... def child(self, arow: int, acolumn: int) -> 'QModelIndex': ... - def siblingAtColumn(self, column: int) -> 'QModelIndex': ... - def siblingAtRow(self, row: int) -> 'QModelIndex': ... class QPersistentModelIndex(sip.simplewrapper): @@ -1867,15 +1948,35 @@ class QPersistentModelIndex(sip.simplewrapper): class QAbstractItemModel(QObject): + class CheckIndexOption(int): ... + NoOption = ... # type: 'QAbstractItemModel.CheckIndexOption' + IndexIsValid = ... # type: 'QAbstractItemModel.CheckIndexOption' + DoNotUseParent = ... # type: 'QAbstractItemModel.CheckIndexOption' + ParentIsInvalid = ... # type: 'QAbstractItemModel.CheckIndexOption' + class LayoutChangeHint(int): ... NoLayoutChangeHint = ... # type: 'QAbstractItemModel.LayoutChangeHint' VerticalSortHint = ... # type: 'QAbstractItemModel.LayoutChangeHint' HorizontalSortHint = ... # type: 'QAbstractItemModel.LayoutChangeHint' - dataChanged: pyqtSignal # fix issue #5 + class CheckIndexOptions(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QAbstractItemModel.CheckIndexOptions', 'QAbstractItemModel.CheckIndexOption']) -> None: ... + @typing.overload + def __init__(self, a0: 'QAbstractItemModel.CheckIndexOptions') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QAbstractItemModel.CheckIndexOptions': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + def checkIndex(self, index: QModelIndex, options: typing.Union['QAbstractItemModel.CheckIndexOptions', 'QAbstractItemModel.CheckIndexOption'] = ...) -> bool: ... def moveColumn(self, sourceParent: QModelIndex, sourceColumn: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... def moveRow(self, sourceParent: QModelIndex, sourceRow: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... def moveColumns(self, sourceParent: QModelIndex, sourceColumn: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... @@ -1927,7 +2028,7 @@ class QAbstractItemModel(QObject): def layoutChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... def layoutAboutToBeChanged(self, parents: typing.Iterable[QPersistentModelIndex] = ..., hint: 'QAbstractItemModel.LayoutChangeHint' = ...) -> None: ... def headerDataChanged(self, orientation: Qt.Orientation, first: int, last: int) -> None: ... - # def dataChanged(self, topLeft: QModelIndex, bottomRight: QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... + dataChanged = pyqtSignal() def span(self, index: QModelIndex) -> 'QSize': ... def match(self, start: QModelIndex, role: int, value: typing.Any, hits: int = ..., flags: typing.Union[Qt.MatchFlags, Qt.MatchFlag] = ...) -> typing.List[QModelIndex]: ... def buddy(self, index: QModelIndex) -> QModelIndex: ... @@ -1966,7 +2067,7 @@ class QAbstractTableModel(QAbstractItemModel): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... - def parent(self) -> QObject: ... # type: ignore # fix issue #1 + def parent(self) -> QObject: ... # type: ignore def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... @@ -1977,7 +2078,7 @@ class QAbstractListModel(QAbstractItemModel): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... - def parent(self) -> QObject: ... # type: ignore # fix issue #1 + def parent(self) -> QObject: ... # type: ignore def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... def index(self, row: int, column: int = ..., parent: QModelIndex = ...) -> QModelIndex: ... @@ -2090,6 +2191,7 @@ class QBasicTimer(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QBasicTimer') -> None: ... + def swap(self, other: 'QBasicTimer') -> None: ... def stop(self) -> None: ... @typing.overload def start(self, msec: int, timerType: Qt.TimerType, obj: QObject) -> None: ... @@ -2108,6 +2210,9 @@ class QBitArray(sip.simplewrapper): @typing.overload def __init__(self, other: 'QBitArray') -> None: ... + @staticmethod + def fromBits(data: str, len: int) -> 'QBitArray': ... + def bits(self) -> bytes: ... def swap(self, other: 'QBitArray') -> None: ... def __hash__(self) -> int: ... def at(self, i: int) -> bool: ... @@ -2150,6 +2255,8 @@ class QIODevice(QObject): Truncate = ... # type: 'QIODevice.OpenModeFlag' Text = ... # type: 'QIODevice.OpenModeFlag' Unbuffered = ... # type: 'QIODevice.OpenModeFlag' + NewOnly = ... # type: 'QIODevice.OpenModeFlag' + ExistingOnly = ... # type: 'QIODevice.OpenModeFlag' class OpenMode(sip.simplewrapper): @@ -2171,6 +2278,7 @@ class QIODevice(QObject): @typing.overload def __init__(self, parent: QObject) -> None: ... + def skip(self, maxSize: int) -> int: ... def channelBytesWritten(self, channel: int, bytes: int) -> None: ... def channelReadyRead(self, channel: int) -> None: ... def isTransactionStarted(self) -> bool: ... @@ -2279,6 +2387,10 @@ class QByteArray(sip.simplewrapper): @typing.overload def __init__(self, a: typing.Union['QByteArray', bytes, bytearray]) -> None: ... + def isLower(self) -> bool: ... + def isUpper(self) -> bool: ... + def compare(self, a: typing.Union['QByteArray', bytes, bytearray], cs: Qt.CaseSensitivity = ...) -> int: ... + def chopped(self, len: int) -> 'QByteArray': ... def swap(self, other: 'QByteArray') -> None: ... def repeated(self, times: int) -> 'QByteArray': ... @staticmethod @@ -2411,6 +2523,217 @@ class QByteArrayMatcher(sip.simplewrapper): def setPattern(self, pattern: typing.Union[QByteArray, bytes, bytearray]) -> None: ... +class QCalendar(sip.simplewrapper): + + class System(int): ... + Gregorian = ... # type: 'QCalendar.System' + Julian = ... # type: 'QCalendar.System' + Milankovic = ... # type: 'QCalendar.System' + Jalali = ... # type: 'QCalendar.System' + IslamicCivil = ... # type: 'QCalendar.System' + + Unspecified = ... # type: int + + class YearMonthDay(sip.simplewrapper): + + day = ... # type: int + month = ... # type: int + year = ... # type: int + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, year: int, month: int = ..., day: int = ...) -> None: ... + @typing.overload + def __init__(self, a0: 'QCalendar.YearMonthDay') -> None: ... + + def isValid(self) -> bool: ... + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, system: 'QCalendar.System') -> None: ... + @typing.overload + def __init__(self, name: str) -> None: ... + @typing.overload + def __init__(self, a0: 'QCalendar') -> None: ... + + @staticmethod + def availableCalendars() -> typing.List[str]: ... + def dateTimeToString(self, format: str, datetime: typing.Union['QDateTime', datetime.datetime], dateOnly: typing.Union['QDate', datetime.date], timeOnly: typing.Union['QTime', datetime.time], locale: 'QLocale') -> str: ... + def standaloneWeekDayName(self, locale: 'QLocale', day: int, format: 'QLocale.FormatType' = ...) -> str: ... + def weekDayName(self, locale: 'QLocale', day: int, format: 'QLocale.FormatType' = ...) -> str: ... + def standaloneMonthName(self, locale: 'QLocale', month: int, year: int = ..., format: 'QLocale.FormatType' = ...) -> str: ... + def monthName(self, locale: 'QLocale', month: int, year: int = ..., format: 'QLocale.FormatType' = ...) -> str: ... + def dayOfWeek(self, date: typing.Union['QDate', datetime.date]) -> int: ... + def partsFromDate(self, date: typing.Union['QDate', datetime.date]) -> 'QCalendar.YearMonthDay': ... + @typing.overload + def dateFromParts(self, year: int, month: int, day: int) -> 'QDate': ... + @typing.overload + def dateFromParts(self, parts: 'QCalendar.YearMonthDay') -> 'QDate': ... + def name(self) -> str: ... + def maximumMonthsInYear(self) -> int: ... + def minimumDaysInMonth(self) -> int: ... + def maximumDaysInMonth(self) -> int: ... + def hasYearZero(self) -> bool: ... + def isProleptic(self) -> bool: ... + def isSolar(self) -> bool: ... + def isLuniSolar(self) -> bool: ... + def isLunar(self) -> bool: ... + def isGregorian(self) -> bool: ... + def isLeapYear(self, year: int) -> bool: ... + def isDateValid(self, year: int, month: int, day: int) -> bool: ... + def monthsInYear(self, year: int) -> int: ... + def daysInYear(self, year: int) -> int: ... + def daysInMonth(self, month: int, year: int = ...) -> int: ... + + +class QCborError(sip.simplewrapper): + + class Code(int): ... + UnknownError = ... # type: 'QCborError.Code' + AdvancePastEnd = ... # type: 'QCborError.Code' + InputOutputError = ... # type: 'QCborError.Code' + GarbageAtEnd = ... # type: 'QCborError.Code' + EndOfFile = ... # type: 'QCborError.Code' + UnexpectedBreak = ... # type: 'QCborError.Code' + UnknownType = ... # type: 'QCborError.Code' + IllegalType = ... # type: 'QCborError.Code' + IllegalNumber = ... # type: 'QCborError.Code' + IllegalSimpleType = ... # type: 'QCborError.Code' + InvalidUtf8String = ... # type: 'QCborError.Code' + DataTooLarge = ... # type: 'QCborError.Code' + NestingTooDeep = ... # type: 'QCborError.Code' + UnsupportedType = ... # type: 'QCborError.Code' + NoError = ... # type: 'QCborError.Code' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, a0: 'QCborError') -> None: ... + + def toString(self) -> str: ... + def code(self) -> 'QCborError.Code': ... + + +class QCborStreamWriter(sip.simplewrapper): + + @typing.overload + def __init__(self, device: QIODevice) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + + def endMap(self) -> bool: ... + @typing.overload + def startMap(self) -> None: ... + @typing.overload + def startMap(self, count: int) -> None: ... + def endArray(self) -> bool: ... + @typing.overload + def startArray(self) -> None: ... + @typing.overload + def startArray(self, count: int) -> None: ... + def appendUndefined(self) -> None: ... + def appendNull(self) -> None: ... + @typing.overload + def append(self, st: QCborSimpleType) -> None: ... + @typing.overload + def append(self, tag: QCborKnownTags) -> None: ... + @typing.overload + def append(self, str: str) -> None: ... + @typing.overload + def append(self, ba: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def append(self, b: bool) -> None: ... + @typing.overload + def append(self, d: float) -> None: ... + @typing.overload + def append(self, a0: int) -> None: ... + def device(self) -> QIODevice: ... + def setDevice(self, device: QIODevice) -> None: ... + + +class QCborStreamReader(sip.simplewrapper): + + class StringResultCode(int): ... + EndOfString = ... # type: 'QCborStreamReader.StringResultCode' + Ok = ... # type: 'QCborStreamReader.StringResultCode' + Error = ... # type: 'QCborStreamReader.StringResultCode' + + class Type(int): ... + UnsignedInteger = ... # type: 'QCborStreamReader.Type' + NegativeInteger = ... # type: 'QCborStreamReader.Type' + ByteString = ... # type: 'QCborStreamReader.Type' + ByteArray = ... # type: 'QCborStreamReader.Type' + TextString = ... # type: 'QCborStreamReader.Type' + String = ... # type: 'QCborStreamReader.Type' + Array = ... # type: 'QCborStreamReader.Type' + Map = ... # type: 'QCborStreamReader.Type' + Tag = ... # type: 'QCborStreamReader.Type' + SimpleType = ... # type: 'QCborStreamReader.Type' + HalfFloat = ... # type: 'QCborStreamReader.Type' + Float16 = ... # type: 'QCborStreamReader.Type' + Float = ... # type: 'QCborStreamReader.Type' + Double = ... # type: 'QCborStreamReader.Type' + Invalid = ... # type: 'QCborStreamReader.Type' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + @typing.overload + def __init__(self, device: QIODevice) -> None: ... + + def toInteger(self) -> int: ... + def toDouble(self) -> float: ... + def toSimpleType(self) -> QCborSimpleType: ... + def toUnsignedInteger(self) -> int: ... + def toBool(self) -> bool: ... + def readByteArray(self) -> typing.Tuple[QByteArray, 'QCborStreamReader.StringResultCode']: ... + def readString(self) -> typing.Tuple[str, 'QCborStreamReader.StringResultCode']: ... + def leaveContainer(self) -> bool: ... + def enterContainer(self) -> bool: ... + def isContainer(self) -> bool: ... + def __len__(self) -> int: ... + def length(self) -> int: ... + def isLengthKnown(self) -> bool: ... + def isUndefined(self) -> bool: ... + def isNull(self) -> bool: ... + def isBool(self) -> bool: ... + def isTrue(self) -> bool: ... + def isFalse(self) -> bool: ... + def isInvalid(self) -> bool: ... + def isDouble(self) -> bool: ... + def isFloat(self) -> bool: ... + def isFloat16(self) -> bool: ... + @typing.overload + def isSimpleType(self) -> bool: ... + @typing.overload + def isSimpleType(self, st: QCborSimpleType) -> bool: ... + def isTag(self) -> bool: ... + def isMap(self) -> bool: ... + def isArray(self) -> bool: ... + def isString(self) -> bool: ... + def isByteArray(self) -> bool: ... + def isInteger(self) -> bool: ... + def isNegativeInteger(self) -> bool: ... + def isUnsignedInteger(self) -> bool: ... + def type(self) -> 'QCborStreamReader.Type': ... + def next(self, maxRecursion: int = ...) -> bool: ... + def hasNext(self) -> bool: ... + def parentContainerType(self) -> 'QCborStreamReader.Type': ... + def containerDepth(self) -> int: ... + def isValid(self) -> bool: ... + def currentOffset(self) -> int: ... + def lastError(self) -> QCborError: ... + def reset(self) -> None: ... + def clear(self) -> None: ... + def reparse(self) -> None: ... + def addData(self, data: typing.Union[QByteArray, bytes, bytearray]) -> None: ... + def device(self) -> QIODevice: ... + def setDevice(self, device: QIODevice) -> None: ... + + class QCollatorSortKey(sip.simplewrapper): def __init__(self, other: 'QCollatorSortKey') -> None: ... @@ -2534,6 +2857,31 @@ class QCommandLineParser(sip.simplewrapper): def setSingleDashWordOptionMode(self, parsingMode: 'QCommandLineParser.SingleDashWordOptionMode') -> None: ... +class QConcatenateTablesProxyModel(QAbstractItemModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def span(self, index: QModelIndex) -> 'QSize': ... + def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def canDropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... + def mimeData(self, indexes: typing.Iterable[QModelIndex]) -> 'QMimeData': ... + def mimeTypes(self) -> typing.List[str]: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + def parent(self, index: QModelIndex) -> QModelIndex: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def itemData(self, proxyIndex: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... + def data(self, index: QModelIndex, role: int = ...) -> typing.Any: ... + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... + def removeSourceModel(self, sourceModel: QAbstractItemModel) -> None: ... + def addSourceModel(self, sourceModel: QAbstractItemModel) -> None: ... + + class QCoreApplication(QObject): def __init__(self, argv: typing.List[str]) -> None: ... @@ -2854,6 +3202,8 @@ class QCryptographicHash(sip.simplewrapper): def __init__(self, method: 'QCryptographicHash.Algorithm') -> None: ... + @staticmethod + def hashLength(method: 'QCryptographicHash.Algorithm') -> int: ... @staticmethod def hash(data: typing.Union[QByteArray, bytes, bytearray], method: 'QCryptographicHash.Algorithm') -> QByteArray: ... def result(self) -> QByteArray: ... @@ -2909,6 +3259,11 @@ class QDataStream(sip.simplewrapper): Qt_5_7 = ... # type: 'QDataStream.Version' Qt_5_8 = ... # type: 'QDataStream.Version' Qt_5_9 = ... # type: 'QDataStream.Version' + Qt_5_10 = ... # type: 'QDataStream.Version' + Qt_5_11 = ... # type: 'QDataStream.Version' + Qt_5_12 = ... # type: 'QDataStream.Version' + Qt_5_13 = ... # type: 'QDataStream.Version' + Qt_5_14 = ... # type: 'QDataStream.Version' @typing.overload def __init__(self) -> None: ... @@ -2991,10 +3346,23 @@ class QDate(sip.simplewrapper): @typing.overload def __init__(self, y: int, m: int, d: int) -> None: ... @typing.overload + def __init__(self, y: int, m: int, d: int, cal: QCalendar) -> None: ... + @typing.overload def __init__(self, a0: 'QDate') -> None: ... + @typing.overload + def endOfDay(self, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + def endOfDay(self, zone: 'QTimeZone') -> 'QDateTime': ... + @typing.overload + def startOfDay(self, spec: Qt.TimeSpec = ..., offsetSeconds: int = ...) -> 'QDateTime': ... + @typing.overload + def startOfDay(self, zone: 'QTimeZone') -> 'QDateTime': ... def getDate(self) -> typing.Tuple[int, int, int]: ... + @typing.overload def setDate(self, year: int, month: int, date: int) -> bool: ... + @typing.overload + def setDate(self, year: int, month: int, day: int, cal: QCalendar) -> bool: ... def toJulianDay(self) -> int: ... @staticmethod def fromJulianDay(jd: int) -> 'QDate': ... @@ -3006,16 +3374,29 @@ class QDate(sip.simplewrapper): @typing.overload @staticmethod def fromString(s: str, format: str) -> 'QDate': ... + @typing.overload + @staticmethod + def fromString(s: str, format: str, cal: QCalendar) -> 'QDate': ... @staticmethod def currentDate() -> 'QDate': ... def daysTo(self, a0: typing.Union['QDate', datetime.date]) -> int: ... + @typing.overload def addYears(self, years: int) -> 'QDate': ... + @typing.overload + def addYears(self, years: int, cal: QCalendar) -> 'QDate': ... + @typing.overload def addMonths(self, months: int) -> 'QDate': ... + @typing.overload + def addMonths(self, months: int, cal: QCalendar) -> 'QDate': ... def addDays(self, days: int) -> 'QDate': ... @typing.overload def toString(self, format: Qt.DateFormat = ...) -> str: ... @typing.overload + def toString(self, f: Qt.DateFormat, cal: QCalendar) -> str: ... + @typing.overload def toString(self, format: str) -> str: ... + @typing.overload + def toString(self, format: str, cal: QCalendar) -> str: ... @staticmethod def longDayName(weekday: int, type: 'QDate.MonthNameType' = ...) -> str: ... @staticmethod @@ -3025,14 +3406,35 @@ class QDate(sip.simplewrapper): @staticmethod def shortMonthName(month: int, type: 'QDate.MonthNameType' = ...) -> str: ... def weekNumber(self) -> typing.Tuple[int, int]: ... + @typing.overload def daysInYear(self) -> int: ... + @typing.overload + def daysInYear(self, cal: QCalendar) -> int: ... + @typing.overload def daysInMonth(self) -> int: ... + @typing.overload + def daysInMonth(self, cal: QCalendar) -> int: ... + @typing.overload def dayOfYear(self) -> int: ... + @typing.overload + def dayOfYear(self, cal: QCalendar) -> int: ... + @typing.overload def dayOfWeek(self) -> int: ... + @typing.overload + def dayOfWeek(self, cal: QCalendar) -> int: ... + @typing.overload def day(self) -> int: ... + @typing.overload + def day(self, cal: QCalendar) -> int: ... + @typing.overload def month(self) -> int: ... + @typing.overload + def month(self, cal: QCalendar) -> int: ... + @typing.overload def year(self) -> int: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload + def year(self, cal: QCalendar) -> int: ... + @typing.overload def isValid(self) -> bool: ... @typing.overload @staticmethod @@ -3080,7 +3482,7 @@ class QTime(sip.simplewrapper): def second(self) -> int: ... def minute(self) -> int: ... def hour(self) -> int: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def isValid(self) -> bool: ... @typing.overload @staticmethod @@ -3094,6 +3496,10 @@ class QTime(sip.simplewrapper): class QDateTime(sip.simplewrapper): + class YearRange(int): ... + First = ... # type: 'QDateTime.YearRange' + Last = ... # type: 'QDateTime.YearRange' + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -3159,6 +3565,9 @@ class QDateTime(sip.simplewrapper): @typing.overload @staticmethod def fromString(s: str, format: str) -> 'QDateTime': ... + @typing.overload + @staticmethod + def fromString(s: str, format: str, cal: QCalendar) -> 'QDateTime': ... @staticmethod def currentDateTime() -> 'QDateTime': ... def secsTo(self, a0: typing.Union['QDateTime', datetime.datetime]) -> int: ... @@ -3609,6 +4018,12 @@ class QEventTransition(QAbstractTransition): class QFileDevice(QIODevice): + class FileTime(int): ... + FileAccessTime = ... # type: 'QFileDevice.FileTime' + FileBirthTime = ... # type: 'QFileDevice.FileTime' + FileMetadataChangeTime = ... # type: 'QFileDevice.FileTime' + FileModificationTime = ... # type: 'QFileDevice.FileTime' + class MemoryMapFlags(int): ... NoOptions = ... # type: 'QFileDevice.MemoryMapFlags' MapPrivateOption = ... # type: 'QFileDevice.MemoryMapFlags' @@ -3678,6 +4093,8 @@ class QFileDevice(QIODevice): def __index__(self) -> int: ... def __int__(self) -> int: ... + def setFileTime(self, newDate: typing.Union[QDateTime, datetime.datetime], fileTime: 'QFileDevice.FileTime') -> bool: ... + def fileTime(self, time: 'QFileDevice.FileTime') -> QDateTime: ... def readLineData(self, maxlen: int) -> bytes: ... def writeData(self, data: bytes) -> int: ... def readData(self, maxlen: int) -> bytes: ... @@ -3710,17 +4127,17 @@ class QFile(QFileDevice): @typing.overload def __init__(self, name: str, parent: QObject) -> None: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def setPermissions(self, permissionSpec: typing.Union[QFileDevice.Permissions, QFileDevice.Permission]) -> bool: ... @typing.overload @staticmethod def setPermissions(filename: str, permissionSpec: typing.Union[QFileDevice.Permissions, QFileDevice.Permission]) -> bool: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def permissions(self) -> QFileDevice.Permissions: ... @typing.overload @staticmethod def permissions(filename: str) -> QFileDevice.Permissions: ... - @typing.overload # type: ignore # fixes issues #1 + @typing.overload # type: ignore def resize(self, sz: int) -> bool: ... @typing.overload @staticmethod @@ -3730,32 +4147,32 @@ class QFile(QFileDevice): def open(self, flags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> bool: ... @typing.overload def open(self, fd: int, ioFlags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag], handleFlags: typing.Union[QFileDevice.FileHandleFlags, QFileDevice.FileHandleFlag] = ...) -> bool: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def copy(self, newName: str) -> bool: ... @typing.overload @staticmethod def copy(fileName: str, newName: str) -> bool: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def link(self, newName: str) -> bool: ... @typing.overload @staticmethod def link(oldname: str, newName: str) -> bool: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def rename(self, newName: str) -> bool: ... @typing.overload @staticmethod def rename(oldName: str, newName: str) -> bool: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def remove(self) -> bool: ... @typing.overload @staticmethod def remove(fileName: str) -> bool: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def symLinkTarget(self) -> str: ... @typing.overload @staticmethod def symLinkTarget(fileName: str) -> str: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def exists(self) -> bool: ... @typing.overload @staticmethod @@ -3785,6 +4202,11 @@ class QFileInfo(sip.simplewrapper): @typing.overload def __init__(self, fileinfo: 'QFileInfo') -> None: ... + def isShortcut(self) -> bool: ... + def isSymbolicLink(self) -> bool: ... + def fileTime(self, time: QFileDevice.FileTime) -> QDateTime: ... + def metadataChangeTime(self) -> QDateTime: ... + def birthTime(self) -> QDateTime: ... def swap(self, other: 'QFileInfo') -> None: ... def isNativePath(self) -> bool: ... def isBundle(self) -> bool: ... @@ -3828,7 +4250,7 @@ class QFileInfo(sip.simplewrapper): def __fspath__(self) -> typing.Any: ... def filePath(self) -> str: ... def refresh(self) -> None: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def exists(self) -> bool: ... @typing.overload @staticmethod @@ -3921,7 +4343,7 @@ class QIdentityProxyModel(QAbstractProxyModel): def mapSelectionFromSource(self, selection: 'QItemSelection') -> 'QItemSelection': ... def dropMimeData(self, data: 'QMimeData', action: Qt.DropAction, row: int, column: int, parent: QModelIndex) -> bool: ... def rowCount(self, parent: QModelIndex = ...) -> int: ... - def parent(self, child: QModelIndex) -> QModelIndex: ... # type: ignore # fix issue #1 + def parent(self, child: QModelIndex) -> QModelIndex: ... # type: ignore def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... @@ -4128,6 +4550,11 @@ class QJsonDocument(sip.simplewrapper): @typing.overload def __init__(self, other: 'QJsonDocument') -> None: ... + @typing.overload + def __getitem__(self, key: str) -> 'QJsonValue': ... + @typing.overload + def __getitem__(self, i: int) -> 'QJsonValue': ... + def swap(self, other: 'QJsonDocument') -> None: ... def isNull(self) -> bool: ... def setArray(self, array: typing.Iterable[typing.Union['QJsonValue', 'QJsonValue.Type', typing.Dict[str, 'QJsonValue'], bool, int, float, str]]) -> None: ... # Keep primitive types def setObject(self, object: typing.Dict[str, typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]]) -> None: ... @@ -4167,8 +4594,14 @@ class QJsonValue(sip.simplewrapper): @typing.overload def __init__(self, type: 'QJsonValue.Type' = ...) -> None: ... @typing.overload - def __init__(self, other: typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], typing.Dict[str, 'QJsonValue'], bool, int, float, str]) -> None: ... # Still have iterables + def __init__(self, other: typing.Union['QJsonValue', 'QJsonValue.Type', typing.Iterable['QJsonValue'], bool, int, float, str]) -> None: ... + def __hash__(self) -> int: ... + @typing.overload + def __getitem__(self, key: str) -> 'QJsonValue': ... + @typing.overload + def __getitem__(self, i: int) -> 'QJsonValue': ... + def swap(self, other: 'QJsonValue') -> None: ... @typing.overload def toString(self) -> str: ... @typing.overload @@ -4239,7 +4672,7 @@ class QLibrary(QObject): @staticmethod def isLibrary(fileName: str) -> bool: ... def unload(self) -> bool: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def resolve(self, symbol: str) -> sip.voidptr: ... @typing.overload @staticmethod @@ -4378,6 +4811,7 @@ class QLineF(sip.simplewrapper): def y1(self) -> float: ... def x1(self) -> float: ... def __repr__(self) -> str: ... + def intersects(self, l: 'QLineF') -> typing.Tuple['QLineF.IntersectType', 'QPointF']: ... def intersect(self, l: 'QLineF', intersectionPoint: typing.Union['QPointF', 'QPoint']) -> 'QLineF.IntersectType': ... def unitVector(self) -> 'QLineF': ... def length(self) -> float: ... @@ -4387,6 +4821,11 @@ class QLineF(sip.simplewrapper): class QLocale(sip.simplewrapper): + class DataSizeFormat(int): ... + DataSizeIecFormat = ... # type: 'QLocale.DataSizeFormat' + DataSizeTraditionalFormat = ... # type: 'QLocale.DataSizeFormat' + DataSizeSIFormat = ... # type: 'QLocale.DataSizeFormat' + class FloatingPointPrecisionOption(int): ... FloatingPointShortest = ... # type: 'QLocale.FloatingPointPrecisionOption' @@ -4835,6 +5274,9 @@ class QLocale(sip.simplewrapper): TuvaluCountry = ... # type: 'QLocale.Country' EuropeanUnion = ... # type: 'QLocale.Country' OutlyingOceania = ... # type: 'QLocale.Country' + LatinAmerica = ... # type: 'QLocale.Country' + World = ... # type: 'QLocale.Country' + Europe = ... # type: 'QLocale.Country' class Language(int): ... C = ... # type: 'QLocale.Language' @@ -5212,6 +5654,16 @@ class QLocale(sip.simplewrapper): Cantonese = ... # type: 'QLocale.Language' Osage = ... # type: 'QLocale.Language' Tangut = ... # type: 'QLocale.Language' + Ido = ... # type: 'QLocale.Language' + Lojban = ... # type: 'QLocale.Language' + Sicilian = ... # type: 'QLocale.Language' + SouthernKurdish = ... # type: 'QLocale.Language' + WesternBalochi = ... # type: 'QLocale.Language' + Cebuano = ... # type: 'QLocale.Language' + Erzya = ... # type: 'QLocale.Language' + Chickasaw = ... # type: 'QLocale.Language' + Muscogee = ... # type: 'QLocale.Language' + Silesian = ... # type: 'QLocale.Language' class NumberOptions(sip.simplewrapper): @@ -5228,6 +5680,21 @@ class QLocale(sip.simplewrapper): def __index__(self) -> int: ... def __int__(self) -> int: ... + class DataSizeFormats(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QLocale.DataSizeFormats', 'QLocale.DataSizeFormat']) -> None: ... + @typing.overload + def __init__(self, a0: 'QLocale.DataSizeFormats') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QLocale.DataSizeFormats': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + @typing.overload def __init__(self) -> None: ... @typing.overload @@ -5239,6 +5706,10 @@ class QLocale(sip.simplewrapper): @typing.overload def __init__(self, language: 'QLocale.Language', script: 'QLocale.Script', country: 'QLocale.Country') -> None: ... + def collation(self) -> 'QLocale': ... + def toULong(self, s: str) -> typing.Tuple[int, bool]: ... + def toLong(self, s: str) -> typing.Tuple[int, bool]: ... + def formattedDataSize(self, bytes: int, precision: int = ..., format: typing.Union['QLocale.DataSizeFormats', 'QLocale.DataSizeFormat'] = ...) -> str: ... def swap(self, other: 'QLocale') -> None: ... def __hash__(self) -> int: ... def createSeparatedList(self, list: typing.Iterable[str]) -> str: ... @@ -5252,7 +5723,7 @@ class QLocale(sip.simplewrapper): def toCurrencyString(self, value: float, symbol: str = ...) -> str: ... @typing.overload def toCurrencyString(self, value: float, symbol: str, precision: int) -> str: ... - # @typing.overload # fix issue #4 + # @typing.overload # def toCurrencyString(self, value: int, symbol: str = ...) -> str: ... def currencySymbol(self, format: 'QLocale.CurrencySymbolFormat' = ...) -> str: ... def toLower(self, str: str) -> str: ... @@ -5285,13 +5756,25 @@ class QLocale(sip.simplewrapper): @typing.overload def toDateTime(self, string: str, format: str) -> QDateTime: ... @typing.overload + def toDateTime(self, string: str, format: 'QLocale.FormatType', cal: QCalendar) -> QDateTime: ... + @typing.overload + def toDateTime(self, string: str, format: str, cal: QCalendar) -> QDateTime: ... + @typing.overload def toTime(self, string: str, format: 'QLocale.FormatType' = ...) -> QTime: ... @typing.overload def toTime(self, string: str, format: str) -> QTime: ... @typing.overload + def toTime(self, string: str, format: 'QLocale.FormatType', cal: QCalendar) -> QTime: ... + @typing.overload + def toTime(self, string: str, format: str, cal: QCalendar) -> QTime: ... + @typing.overload def toDate(self, string: str, format: 'QLocale.FormatType' = ...) -> QDate: ... @typing.overload def toDate(self, string: str, format: str) -> QDate: ... + @typing.overload + def toDate(self, string: str, format: 'QLocale.FormatType', cal: QCalendar) -> QDate: ... + @typing.overload + def toDate(self, string: str, format: str, cal: QCalendar) -> QDate: ... def dateTimeFormat(self, format: 'QLocale.FormatType' = ...) -> str: ... def timeFormat(self, format: 'QLocale.FormatType' = ...) -> str: ... def dateFormat(self, format: 'QLocale.FormatType' = ...) -> str: ... @@ -5310,16 +5793,24 @@ class QLocale(sip.simplewrapper): @typing.overload def toString(self, dateTime: typing.Union[QDateTime, datetime.datetime], format: str) -> str: ... @typing.overload + def toString(self, dateTime: typing.Union[QDateTime, datetime.datetime], formatStr: str, cal: QCalendar) -> str: ... + @typing.overload def toString(self, dateTime: typing.Union[QDateTime, datetime.datetime], format: 'QLocale.FormatType' = ...) -> str: ... @typing.overload + def toString(self, dateTime: typing.Union[QDateTime, datetime.datetime], format: 'QLocale.FormatType', cal: QCalendar) -> str: ... + @typing.overload def toString(self, date: typing.Union[QDate, datetime.date], formatStr: str) -> str: ... @typing.overload + def toString(self, date: typing.Union[QDate, datetime.date], formatStr: str, cal: QCalendar) -> str: ... + @typing.overload def toString(self, date: typing.Union[QDate, datetime.date], format: 'QLocale.FormatType' = ...) -> str: ... @typing.overload + def toString(self, date: typing.Union[QDate, datetime.date], format: 'QLocale.FormatType', cal: QCalendar) -> str: ... + @typing.overload def toString(self, time: typing.Union[QTime, datetime.time], formatStr: str) -> str: ... @typing.overload def toString(self, time: typing.Union[QTime, datetime.time], format: 'QLocale.FormatType' = ...) -> str: ... - # @typing.overload # fix issue #4 + # @typing.overload # def toString(self, i: int) -> str: ... def toDouble(self, s: str) -> typing.Tuple[float, bool]: ... def toFloat(self, s: str) -> typing.Tuple[float, bool]: ... @@ -5512,6 +6003,7 @@ class QMetaEnum(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QMetaEnum') -> None: ... + def enumName(self) -> str: ... def isScoped(self) -> bool: ... def isValid(self) -> bool: ... def valueToKeys(self, value: int) -> QByteArray: ... @@ -5533,6 +6025,7 @@ class QMetaProperty(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QMetaProperty') -> None: ... + def relativePropertyIndex(self) -> int: ... def isFinal(self) -> bool: ... def isConstant(self) -> bool: ... def propertyIndex(self) -> int: ... @@ -5658,6 +6151,10 @@ class QMetaType(sip.simplewrapper): QJsonDocument = ... # type: 'QMetaType.Type' QByteArrayList = ... # type: 'QMetaType.Type' QPersistentModelIndex = ... # type: 'QMetaType.Type' + QCborSimpleType = ... # type: 'QMetaType.Type' + QCborValue = ... # type: 'QMetaType.Type' + QCborArray = ... # type: 'QMetaType.Type' + QCborMap = ... # type: 'QMetaType.Type' User = ... # type: 'QMetaType.Type' class TypeFlags(sip.simplewrapper): @@ -5677,18 +6174,19 @@ class QMetaType(sip.simplewrapper): def __init__(self, type: int) -> None: ... + def id(self) -> int: ... @staticmethod def metaObjectForType(type: int) -> 'QMetaObject': ... def isValid(self) -> bool: ... def flags(self) -> 'QMetaType.TypeFlags': ... @staticmethod def typeFlags(type: int) -> 'QMetaType.TypeFlags': ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def isRegistered(self) -> bool: ... @typing.overload @staticmethod def isRegistered(type: int) -> bool: ... - # @typing.overload # fix issue #4 + # @typing.overload # def isRegistered(self) -> bool: ... @staticmethod def typeName(type: int) -> str: ... @@ -5779,7 +6277,10 @@ class QMimeType(sip.simplewrapper): class QMutexLocker(sip.simplewrapper): + @typing.overload def __init__(self, m: 'QMutex') -> None: ... + @typing.overload + def __init__(self, m: 'QRecursiveMutex') -> None: ... def __exit__(self, type: typing.Any, value: typing.Any, traceback: typing.Any) -> None: ... def __enter__(self) -> typing.Any: ... @@ -5802,6 +6303,11 @@ class QMutex(sip.simplewrapper): def lock(self) -> None: ... +class QRecursiveMutex(sip.simplewrapper): + + def __init__(self) -> None: ... + + class QSignalBlocker(sip.simplewrapper): def __init__(self, o: QObject) -> None: ... @@ -5914,7 +6420,9 @@ class QOperatingSystemVersion(sip.simplewrapper): AndroidNougat = ... # type: 'QOperatingSystemVersion' AndroidNougat_MR1 = ... # type: 'QOperatingSystemVersion' AndroidOreo = ... # type: 'QOperatingSystemVersion' + MacOSCatalina = ... # type: 'QOperatingSystemVersion' MacOSHighSierra = ... # type: 'QOperatingSystemVersion' + MacOSMojave = ... # type: 'QOperatingSystemVersion' MacOSSierra = ... # type: 'QOperatingSystemVersion' OSXElCapitan = ... # type: 'QOperatingSystemVersion' OSXMavericks = ... # type: 'QOperatingSystemVersion' @@ -5936,6 +6444,8 @@ class QOperatingSystemVersion(sip.simplewrapper): def minorVersion(self) -> int: ... def majorVersion(self) -> int: ... @staticmethod + def currentType() -> 'QOperatingSystemVersion.OSType': ... + @staticmethod def current() -> 'QOperatingSystemVersion': ... @@ -6039,6 +6549,7 @@ class QPoint(sip.simplewrapper): def __sub__(self, point: 'QPoint') -> 'QPoint': ... def __mul__(self, factor: float) -> 'QPoint': ... def __truediv__(self, divisor: float) -> 'QPoint': ... + def transposed(self) -> 'QPoint': ... @staticmethod def dotProduct(p1: 'QPoint', p2: 'QPoint') -> int: ... def setY(self, ypos: int) -> None: ... @@ -6068,6 +6579,7 @@ class QPointF(sip.simplewrapper): def __sub__(self, point: 'QPointF') -> 'QPointF': ... def __mul__(self, factor: float) -> 'QPointF': ... def __truediv__(self, divisor: float) -> 'QPointF': ... + def transposed(self) -> 'QPointF': ... @staticmethod def dotProduct(p1: typing.Union['QPointF', QPoint], p2: typing.Union['QPointF', QPoint]) -> float: ... def manhattanLength(self) -> float: ... @@ -6115,13 +6627,6 @@ class QProcess(QIODevice): NormalExit = ... # type: 'QProcess.ExitStatus' CrashExit = ... # type: 'QProcess.ExitStatus' - errorOccurred: pyqtSignal - readyReadStandardError: pyqtSignal - readyReadStandardOutput: pyqtSignal - stateChanged: pyqtSignal - finished: pyqtSignal - started: pyqtSignal - def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def processId(self) -> int: ... @@ -6140,6 +6645,12 @@ class QProcess(QIODevice): def readData(self, maxlen: int) -> bytes: ... def setupChildProcess(self) -> None: ... def setProcessState(self, state: 'QProcess.ProcessState') -> None: ... + errorOccurred: pyqtSignal + readyReadStandardError: pyqtSignal + readyReadStandardOutput: pyqtSignal + stateChanged: pyqtSignal + finished: pyqtSignal + started: pyqtSignal def kill(self) -> None: ... def terminate(self) -> None: ... def setStandardOutputProcess(self, destination: 'QProcess') -> None: ... @@ -6160,6 +6671,8 @@ class QProcess(QIODevice): @staticmethod def startDetached(program: str) -> bool: ... @typing.overload + def startDetached(self) -> typing.Tuple[bool, int]: ... + @typing.overload @staticmethod def execute(program: str, arguments: typing.Iterable[str]) -> int: ... @typing.overload @@ -6222,6 +6735,37 @@ class QProcessEnvironment(sip.simplewrapper): def isEmpty(self) -> bool: ... +class QRandomGenerator(sip.simplewrapper): + + @typing.overload + def __init__(self, seed: int = ...) -> None: ... + @typing.overload + def __init__(self, other: 'QRandomGenerator') -> None: ... + + @staticmethod + def securelySeeded() -> 'QRandomGenerator': ... + @staticmethod + def global_() -> 'QRandomGenerator': ... + @staticmethod + def system() -> 'QRandomGenerator': ... + @staticmethod + def max() -> int: ... + @staticmethod + def min() -> int: ... + def discard(self, z: int) -> None: ... + def seed(self, seed: int = ...) -> None: ... + def __call__(self) -> int: ... + @typing.overload + def bounded(self, highest: float) -> float: ... + @typing.overload + def bounded(self, highest: int) -> int: ... + @typing.overload + def bounded(self, lowest: int, highest: int) -> int: ... + def generateDouble(self) -> float: ... + def generate64(self) -> int: ... + def generate(self) -> int: ... + + class QReadWriteLock(sip.simplewrapper): class RecursionMode(int): ... @@ -6563,6 +7107,10 @@ class QRegularExpression(sip.simplewrapper): @typing.overload def __init__(self, re: 'QRegularExpression') -> None: ... + @staticmethod + def anchoredPattern(expression: str) -> str: ... + @staticmethod + def wildcardToRegularExpression(str: str) -> str: ... def __hash__(self) -> int: ... def optimize(self) -> None: ... def namedCaptureGroups(self) -> typing.List[str]: ... @@ -6635,8 +7183,14 @@ class QRegularExpressionMatchIterator(sip.simplewrapper): class QResource(sip.simplewrapper): + class Compression(int): ... + NoCompression = ... # type: 'QResource.Compression' + ZlibCompression = ... # type: 'QResource.Compression' + ZstdCompression = ... # type: 'QResource.Compression' + def __init__(self, fileName: str = ..., locale: QLocale = ...) -> None: ... + def compressionAlgorithm(self) -> 'QResource.Compression': ... def lastModified(self) -> QDateTime: ... def isFile(self) -> bool: ... def isDir(self) -> bool: ... @@ -6704,6 +7258,18 @@ class QSemaphore(sip.simplewrapper): def acquire(self, n: int = ...) -> None: ... +class QSemaphoreReleaser(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, sem: QSemaphore, n: int = ...) -> None: ... + + def cancel(self) -> QSemaphore: ... + def semaphore(self) -> QSemaphore: ... + def swap(self, other: 'QSemaphoreReleaser') -> None: ... + + class QSequentialAnimationGroup(QAnimationGroup): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... @@ -6744,9 +7310,13 @@ class QSettings(QObject): @typing.overload def __init__(self, fileName: str, format: 'QSettings.Format', parent: typing.Optional[QObject] = ...) -> None: ... @typing.overload + def __init__(self, scope: 'QSettings.Scope', parent: typing.Optional[QObject] = ...) -> None: ... + @typing.overload def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def event(self, event: QEvent) -> bool: ... + def setAtomicSyncRequired(self, enable: bool) -> None: ... + def isAtomicSyncRequired(self) -> bool: ... def iniCodec(self) -> 'QTextCodec': ... @typing.overload def setIniCodec(self, codec: 'QTextCodec') -> None: ... @@ -6828,22 +7398,13 @@ class QSignalMapper(QObject): from PyQt5.QtWidgets import QWidget - mapped: pyqtSignal # fixes issue #5 - def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... @typing.overload def map(self) -> None: ... @typing.overload def map(self, sender: QObject) -> None: ... - # @typing.overload - # def mapped(self, a0: int) -> None: ... - # @typing.overload - # def mapped(self, a0: str) -> None: ... - # @typing.overload - # def mapped(self, a0: QWidget) -> None: ... - # @typing.overload - # def mapped(self, a0: QObject) -> None: ... + mapped: pyqtSignal @typing.overload def mapping(self, id: int) -> QObject: ... @typing.overload @@ -6890,6 +7451,8 @@ class QSize(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QSize') -> None: ... + def shrunkBy(self, m: QMargins) -> 'QSize': ... + def grownBy(self, m: QMargins) -> 'QSize': ... def transposed(self) -> 'QSize': ... @typing.overload def scaled(self, s: 'QSize', mode: Qt.AspectRatioMode) -> 'QSize': ... @@ -6924,6 +7487,8 @@ class QSizeF(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QSizeF') -> None: ... + def shrunkBy(self, m: QMarginsF) -> 'QSizeF': ... + def grownBy(self, m: QMarginsF) -> 'QSizeF': ... def transposed(self) -> 'QSizeF': ... @typing.overload def scaled(self, s: 'QSizeF', mode: Qt.AspectRatioMode) -> 'QSizeF': ... @@ -6970,6 +7535,8 @@ class QSortFilterProxyModel(QAbstractProxyModel): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def invalidateFilter(self) -> None: ... + def setRecursiveFilteringEnabled(self, recursive: bool) -> None: ... + def isRecursiveFilteringEnabled(self) -> bool: ... def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... def setSortLocaleAware(self, on: bool) -> None: ... def isSortLocaleAware(self) -> bool: ... @@ -7015,6 +7582,10 @@ class QSortFilterProxyModel(QAbstractProxyModel): def filterAcceptsRow(self, source_row: int, source_parent: QModelIndex) -> bool: ... def setFilterWildcard(self, pattern: str) -> None: ... @typing.overload + def setFilterRegularExpression(self, regularExpression: QRegularExpression) -> None: ... + @typing.overload + def setFilterRegularExpression(self, pattern: str) -> None: ... + @typing.overload def setFilterRegExp(self, regExp: QRegExp) -> None: ... @typing.overload def setFilterRegExp(self, pattern: str) -> None: ... @@ -7024,6 +7595,7 @@ class QSortFilterProxyModel(QAbstractProxyModel): def filterCaseSensitivity(self) -> Qt.CaseSensitivity: ... def setFilterKeyColumn(self, column: int) -> None: ... def filterKeyColumn(self) -> int: ... + def filterRegularExpression(self) -> QRegularExpression: ... def filterRegExp(self) -> QRegExp: ... def mapSelectionFromSource(self, sourceSelection: QItemSelection) -> QItemSelection: ... def mapSelectionToSource(self, proxySelection: QItemSelection) -> QItemSelection: ... @@ -7142,6 +7714,7 @@ class QStateMachine(QState): NoInitialStateError = ... # type: 'QStateMachine.Error' NoDefaultStateInHistoryStateError = ... # type: 'QStateMachine.Error' NoCommonAncestorForTransitionError = ... # type: 'QStateMachine.Error' + StateMachineChildModeSetToParallelError = ... # type: 'QStateMachine.Error' class EventPriority(int): ... NormalPriority = ... # type: 'QStateMachine.EventPriority' @@ -7233,6 +7806,9 @@ class QStringListModel(QAbstractListModel): @typing.overload def __init__(self, strings: typing.Iterable[str], parent: typing.Optional[QObject] = ...) -> None: ... + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def moveRows(self, sourceParent: QModelIndex, sourceRow: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... def sibling(self, row: int, column: int, idx: QModelIndex) -> QModelIndex: ... def supportedDropActions(self) -> Qt.DropActions: ... def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... @@ -7242,7 +7818,7 @@ class QStringListModel(QAbstractListModel): def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... def setData(self, index: QModelIndex, value: typing.Any, role: int = ...) -> bool: ... - def data(self, index: QModelIndex, role: int) -> typing.Any: ... # type: ignore # fix issue #1 + def data(self, index: QModelIndex, role: int) -> typing.Any: ... # type: ignore def rowCount(self, parent: QModelIndex = ...) -> int: ... @@ -7298,6 +7874,7 @@ class QTemporaryFile(QFile): @typing.overload def __init__(self, templateName: str, parent: QObject) -> None: ... + def rename(self, newName: str) -> bool: ... @typing.overload @staticmethod def createNativeFile(fileName: str) -> 'QTemporaryFile': ... @@ -7307,7 +7884,7 @@ class QTemporaryFile(QFile): def setFileTemplate(self, name: str) -> None: ... def fileTemplate(self) -> str: ... def fileName(self) -> str: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def open(self) -> bool: ... @typing.overload def open(self, flags: typing.Union[QIODevice.OpenMode, QIODevice.OpenModeFlag]) -> bool: ... @@ -7612,6 +8189,8 @@ class QThreadPool(QObject): def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + def stackSize(self) -> int: ... + def setStackSize(self, stackSize: int) -> None: ... def cancel(self, runnable: QRunnable) -> None: ... def clear(self) -> None: ... def waitForDone(self, msecs: int = ...) -> bool: ... @@ -7688,15 +8267,13 @@ class QTimeLine(QObject): class QTimer(QObject): - timeout: pyqtSignal # fix issue #5 - def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... def remainingTime(self) -> int: ... def timerType(self) -> Qt.TimerType: ... def setTimerType(self, atype: Qt.TimerType) -> None: ... def timerEvent(self, a0: QTimerEvent) -> None: ... - # def timeout(self) -> None: ... + timeout: pyqtSignal def stop(self) -> None: ... @typing.overload def start(self, msec: int) -> None: ... @@ -7819,6 +8396,31 @@ class QTranslator(QObject): def translate(self, context: str, sourceText: str, disambiguation: typing.Optional[str] = ..., n: int = ...) -> str: ... +class QTransposeProxyModel(QAbstractProxyModel): + + def __init__(self, parent: typing.Optional[QObject] = ...) -> None: ... + + def sort(self, column: int, order: Qt.SortOrder = ...) -> None: ... + def moveColumns(self, sourceParent: QModelIndex, sourceColumn: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def removeColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertColumns(self, column: int, count: int, parent: QModelIndex = ...) -> bool: ... + def moveRows(self, sourceParent: QModelIndex, sourceRow: int, count: int, destinationParent: QModelIndex, destinationChild: int) -> bool: ... + def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... + def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... + def parent(self, index: QModelIndex) -> QModelIndex: ... + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... + def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... + def span(self, index: QModelIndex) -> QSize: ... + def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... + def setHeaderData(self, section: int, orientation: Qt.Orientation, value: typing.Any, role: int = ...) -> bool: ... + def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... + def columnCount(self, parent: QModelIndex = ...) -> int: ... + def rowCount(self, parent: QModelIndex = ...) -> int: ... + def setSourceModel(self, newSourceModel: QAbstractItemModel) -> None: ... + + class QUrl(sip.simplewrapper): class UserInputResolutionOption(int): ... @@ -8011,6 +8613,11 @@ class QUrlQuery(sip.simplewrapper): class QUuid(sip.simplewrapper): + class StringFormat(int): ... + WithBraces = ... # type: 'QUuid.StringFormat' + WithoutBraces = ... # type: 'QUuid.StringFormat' + Id128 = ... # type: 'QUuid.StringFormat' + class Version(int): ... VerUnknown = ... # type: 'QUuid.Version' Time = ... # type: 'QUuid.Version' @@ -8041,7 +8648,10 @@ class QUuid(sip.simplewrapper): @staticmethod def fromRfc4122(a0: typing.Union[QByteArray, bytes, bytearray]) -> 'QUuid': ... def toRfc4122(self) -> QByteArray: ... + @typing.overload def toByteArray(self) -> QByteArray: ... + @typing.overload + def toByteArray(self, mode: 'QUuid.StringFormat') -> QByteArray: ... def version(self) -> 'QUuid.Version': ... def variant(self) -> 'QUuid.Variant': ... @typing.overload @@ -8059,7 +8669,10 @@ class QUuid(sip.simplewrapper): @staticmethod def createUuid() -> 'QUuid': ... def isNull(self) -> bool: ... + @typing.overload def toString(self) -> str: ... + @typing.overload + def toString(self, mode: 'QUuid.StringFormat') -> str: ... def __repr__(self) -> str: ... def __hash__(self) -> int: ... @@ -8199,6 +8812,10 @@ class QWaitCondition(sip.simplewrapper): def wait(self, mutex: QMutex, msecs: int = ...) -> bool: ... @typing.overload def wait(self, readWriteLock: QReadWriteLock, msecs: int = ...) -> bool: ... + @typing.overload + def wait(self, lockedMutex: QMutex, deadline: QDeadlineTimer) -> bool: ... + @typing.overload + def wait(self, lockedReadWriteLock: QReadWriteLock, deadline: QDeadlineTimer) -> bool: ... class QXmlStreamAttribute(sip.simplewrapper): @@ -8553,13 +9170,13 @@ def oct_(s: QTextStream) -> QTextStream: ... def bin_(s: QTextStream) -> QTextStream: ... def Q_RETURN_ARG(type: typing.Any) -> QGenericReturnArgument: ... def Q_ARG(type: typing.Any, data: typing.Any) -> QGenericArgument: ... -def pyqtSlot(*types: typing.Any, name: typing.Optional[str] = ..., result: typing.Optional[str] = ...) -> typing.Callable[[FuncT], FuncT]: ... # fix issue #6 +def pyqtSlot(*types: typing.Any, name: typing.Optional[str] = ..., result: typing.Optional[str] = ...) -> typing.Callable[[FuncT], FuncT]: ... def QT_TRANSLATE_NOOP(a0: str, a1: str) -> str: ... def QT_TR_NOOP_UTF8(a0: str) -> str: ... def QT_TR_NOOP(a0: str) -> str: ... -def Q_FLAGS(*a0: typing.Any) -> None: ... # fix issue #6 +def Q_FLAGS(*a0: typing.Any) -> None: ... def Q_FLAG(a0: typing.Union[type, enum.Enum]) -> None: ... -def Q_ENUMS(*a0: typing.Any) -> None: ... # fix issue #6 +def Q_ENUMS(*a0: typing.Any) -> None: ... def Q_ENUM(a0: typing.Union[type, enum.Enum]) -> None: ... def Q_CLASSINFO(name: str, value: str) -> None: ... def qFloatDistance(a: float, b: float) -> int: ... @@ -8592,6 +9209,10 @@ def qChecksum(s: bytes) -> int: ... def qChecksum(s: bytes, standard: Qt.ChecksumType) -> int: ... def qUncompress(data: typing.Union[QByteArray, bytes, bytearray]) -> QByteArray: ... def qCompress(data: typing.Union[QByteArray, bytes, bytearray], compressionLevel: int = ...) -> QByteArray: ... +@typing.overload +def qEnvironmentVariable(varName: str) -> str: ... +@typing.overload +def qEnvironmentVariable(varName: str, defaultValue: str) -> str: ... def pyqtPickleProtocol() -> typing.Optional[int]: ... def pyqtSetPickleProtocol(a0: typing.Optional[int]) -> None: ... def qrand() -> int: ... From 2f82349791c95b2c0e0f10554d2f58dd1ac3a84d Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:27:12 +0200 Subject: [PATCH 02/12] Update QtDBus.pyi --- PyQt5-stubs/QtDBus.pyi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PyQt5-stubs/QtDBus.pyi b/PyQt5-stubs/QtDBus.pyi index 61fbe989..2b8445b1 100644 --- a/PyQt5-stubs/QtDBus.pyi +++ b/PyQt5-stubs/QtDBus.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtDBus module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -249,6 +249,7 @@ class QDBusConnectionInterface(QDBusAbstractInterface): def unregisterService(self, serviceName: str) -> 'QDBusReply': ... def serviceOwner(self, name: str) -> 'QDBusReply': ... def isServiceRegistered(self, serviceName: str) -> 'QDBusReply': ... + def activatableServiceNames(self) -> 'QDBusReply': ... def registeredServiceNames(self) -> 'QDBusReply': ... @@ -358,6 +359,8 @@ class QDBusMessage(sip.simplewrapper): @typing.overload def __init__(self, other: 'QDBusMessage') -> None: ... + def isInteractiveAuthorizationAllowed(self) -> bool: ... + def setInteractiveAuthorizationAllowed(self, enable: bool) -> None: ... @staticmethod def createTargetedSignal(service: str, path: str, interface: str, name: str) -> 'QDBusMessage': ... def swap(self, other: 'QDBusMessage') -> None: ... @@ -513,4 +516,3 @@ class QDBusPendingReply(QDBusPendingCall): def isError(self) -> bool: ... def error(self) -> QDBusError: ... def argumentAt(self, index: int) -> typing.Any: ... - From 921c2cb61ec1ee3cf66a4695dd5cf26528bc9deb Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:41:43 +0200 Subject: [PATCH 03/12] Update QtGui.pyi --- PyQt5-stubs/QtGui.pyi | 686 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 650 insertions(+), 36 deletions(-) diff --git a/PyQt5-stubs/QtGui.pyi b/PyQt5-stubs/QtGui.pyi index 892cd799..b77ffcf2 100644 --- a/PyQt5-stubs/QtGui.pyi +++ b/PyQt5-stubs/QtGui.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtGui module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -71,6 +71,7 @@ class QAbstractTextDocumentLayout(QtCore.QObject): def __init__(self, doc: 'QTextDocument') -> None: ... + def blockWithMarkerAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> 'QTextBlock': ... def formatAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> 'QTextFormat': ... def imageAt(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> str: ... def format(self, pos: int) -> 'QTextCharFormat': ... @@ -180,7 +181,7 @@ class QPixmap(QPaintDevice): def __init__(self, variant: typing.Any) -> None: ... def setDevicePixelRatio(self, scaleFactor: float) -> None: ... - def devicePixelRatio(self) -> float: ... # type: ignore # fixes issue #2 + def devicePixelRatio(self) -> float: ... # type: ignore def swap(self, other: 'QPixmap') -> None: ... @typing.overload def scroll(self, dx: int, dy: int, rect: QtCore.QRect) -> 'QRegion': ... @@ -254,8 +255,8 @@ class QBitmap(QPixmap): @typing.overload def __init__(self, variant: typing.Any) -> None: ... - def swap(self, other: 'QBitmap') -> None: ... #type: ignore # fixes issue #2 - def transformed(self, matrix: 'QTransform') -> 'QBitmap': ... # type: ignore # fixes issue #2 + def swap(self, other: 'QBitmap') -> None: ... #type: ignore + def transformed(self, matrix: 'QTransform') -> 'QBitmap': ... # type: ignore @staticmethod def fromData(size: QtCore.QSize, bits: bytes, format: 'QImage.Format' = ...) -> 'QBitmap': ... @staticmethod @@ -275,6 +276,7 @@ class QColor(sip.simplewrapper): Hsv = ... # type: 'QColor.Spec' Cmyk = ... # type: 'QColor.Spec' Hsl = ... # type: 'QColor.Spec' + ExtendedRgb = ... # type: 'QColor.Spec' @typing.overload def __init__(self, color: QtCore.Qt.GlobalColor) -> None: ... @@ -293,6 +295,7 @@ class QColor(sip.simplewrapper): @typing.overload def __init__(self, acolor: typing.Union['QColor', QtCore.Qt.GlobalColor]) -> None: ... + def toExtendedRgb(self) -> 'QColor': ... @typing.overload @staticmethod def fromRgba64(r: int, g: int, b: int, alpha: int = ...) -> 'QColor': ... @@ -405,6 +408,180 @@ class QColor(sip.simplewrapper): def name(self, format: 'QColor.NameFormat') -> str: ... +class QColorConstants(sip.simplewrapper): + + class Svg(sip.simplewrapper): + + aliceblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + antiquewhite = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + aqua = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + aquamarine = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + azure = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + beige = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + bisque = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + black = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + blanchedalmond = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + blue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + blueviolet = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + brown = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + burlywood = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + cadetblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + chartreuse = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + chocolate = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + coral = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + cornflowerblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + cornsilk = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + crimson = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + cyan = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkcyan = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkgoldenrod = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkgray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkgreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkgrey = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkkhaki = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkmagenta = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkolivegreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkorange = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkorchid = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkred = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darksalmon = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkseagreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkslateblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkslategray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkslategrey = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkturquoise = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + darkviolet = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + deeppink = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + deepskyblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + dimgray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + dimgrey = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + dodgerblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + firebrick = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + floralwhite = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + forestgreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + fuchsia = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + gainsboro = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + ghostwhite = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + gold = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + goldenrod = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + gray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + green = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + greenyellow = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + grey = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + honeydew = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + hotpink = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + indianred = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + indigo = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + ivory = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + khaki = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lavender = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lavenderblush = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lawngreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lemonchiffon = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightcoral = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightcyan = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightgoldenrodyellow = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightgray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightgreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightgrey = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightpink = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightsalmon = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightseagreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightskyblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightslategray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightslategrey = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightsteelblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lightyellow = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + lime = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + limegreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + linen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + magenta = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + maroon = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumaquamarine = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumorchid = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumpurple = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumseagreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumslateblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumspringgreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumturquoise = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mediumvioletred = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + midnightblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mintcream = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + mistyrose = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + moccasin = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + navajowhite = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + navy = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + oldlace = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + olive = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + olivedrab = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + orange = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + orangered = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + orchid = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + palegoldenrod = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + palegreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + paleturquoise = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + palevioletred = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + papayawhip = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + peachpuff = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + peru = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + pink = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + plum = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + powderblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + purple = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + red = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + rosybrown = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + royalblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + saddlebrown = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + salmon = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + sandybrown = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + seagreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + seashell = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + sienna = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + silver = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + skyblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + slateblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + slategray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + slategrey = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + snow = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + springgreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + steelblue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + tan = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + teal = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + thistle = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + tomato = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + turquoise = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + violet = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + wheat = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + white = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + whitesmoke = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + yellow = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + yellowgreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + + Black = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Blue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Color0 = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Color1 = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Cyan = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + DarkBlue = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + DarkCyan = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + DarkGray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + DarkGreen = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + DarkMagenta = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + DarkRed = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + DarkYellow = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Gray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Green = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + LightGray = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Magenta = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Red = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Transparent = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + White = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + Yellow = ... # type: typing.Union[QColor, QtCore.Qt.GlobalColor] + + class QBrush(sip.simplewrapper): @typing.overload @@ -444,6 +621,177 @@ class QBrush(sip.simplewrapper): class QGradient(sip.simplewrapper): + class Preset(int): ... + WarmFlame = ... # type: 'QGradient.Preset' + NightFade = ... # type: 'QGradient.Preset' + SpringWarmth = ... # type: 'QGradient.Preset' + JuicyPeach = ... # type: 'QGradient.Preset' + YoungPassion = ... # type: 'QGradient.Preset' + LadyLips = ... # type: 'QGradient.Preset' + SunnyMorning = ... # type: 'QGradient.Preset' + RainyAshville = ... # type: 'QGradient.Preset' + FrozenDreams = ... # type: 'QGradient.Preset' + WinterNeva = ... # type: 'QGradient.Preset' + DustyGrass = ... # type: 'QGradient.Preset' + TemptingAzure = ... # type: 'QGradient.Preset' + HeavyRain = ... # type: 'QGradient.Preset' + AmyCrisp = ... # type: 'QGradient.Preset' + MeanFruit = ... # type: 'QGradient.Preset' + DeepBlue = ... # type: 'QGradient.Preset' + RipeMalinka = ... # type: 'QGradient.Preset' + CloudyKnoxville = ... # type: 'QGradient.Preset' + MalibuBeach = ... # type: 'QGradient.Preset' + NewLife = ... # type: 'QGradient.Preset' + TrueSunset = ... # type: 'QGradient.Preset' + MorpheusDen = ... # type: 'QGradient.Preset' + RareWind = ... # type: 'QGradient.Preset' + NearMoon = ... # type: 'QGradient.Preset' + WildApple = ... # type: 'QGradient.Preset' + SaintPetersburg = ... # type: 'QGradient.Preset' + PlumPlate = ... # type: 'QGradient.Preset' + EverlastingSky = ... # type: 'QGradient.Preset' + HappyFisher = ... # type: 'QGradient.Preset' + Blessing = ... # type: 'QGradient.Preset' + SharpeyeEagle = ... # type: 'QGradient.Preset' + LadogaBottom = ... # type: 'QGradient.Preset' + LemonGate = ... # type: 'QGradient.Preset' + ItmeoBranding = ... # type: 'QGradient.Preset' + ZeusMiracle = ... # type: 'QGradient.Preset' + OldHat = ... # type: 'QGradient.Preset' + StarWine = ... # type: 'QGradient.Preset' + HappyAcid = ... # type: 'QGradient.Preset' + AwesomePine = ... # type: 'QGradient.Preset' + NewYork = ... # type: 'QGradient.Preset' + ShyRainbow = ... # type: 'QGradient.Preset' + MixedHopes = ... # type: 'QGradient.Preset' + FlyHigh = ... # type: 'QGradient.Preset' + StrongBliss = ... # type: 'QGradient.Preset' + FreshMilk = ... # type: 'QGradient.Preset' + SnowAgain = ... # type: 'QGradient.Preset' + FebruaryInk = ... # type: 'QGradient.Preset' + KindSteel = ... # type: 'QGradient.Preset' + SoftGrass = ... # type: 'QGradient.Preset' + GrownEarly = ... # type: 'QGradient.Preset' + SharpBlues = ... # type: 'QGradient.Preset' + ShadyWater = ... # type: 'QGradient.Preset' + DirtyBeauty = ... # type: 'QGradient.Preset' + GreatWhale = ... # type: 'QGradient.Preset' + TeenNotebook = ... # type: 'QGradient.Preset' + PoliteRumors = ... # type: 'QGradient.Preset' + SweetPeriod = ... # type: 'QGradient.Preset' + WideMatrix = ... # type: 'QGradient.Preset' + SoftCherish = ... # type: 'QGradient.Preset' + RedSalvation = ... # type: 'QGradient.Preset' + BurningSpring = ... # type: 'QGradient.Preset' + NightParty = ... # type: 'QGradient.Preset' + SkyGlider = ... # type: 'QGradient.Preset' + HeavenPeach = ... # type: 'QGradient.Preset' + PurpleDivision = ... # type: 'QGradient.Preset' + AquaSplash = ... # type: 'QGradient.Preset' + SpikyNaga = ... # type: 'QGradient.Preset' + LoveKiss = ... # type: 'QGradient.Preset' + CleanMirror = ... # type: 'QGradient.Preset' + PremiumDark = ... # type: 'QGradient.Preset' + ColdEvening = ... # type: 'QGradient.Preset' + CochitiLake = ... # type: 'QGradient.Preset' + SummerGames = ... # type: 'QGradient.Preset' + PassionateBed = ... # type: 'QGradient.Preset' + MountainRock = ... # type: 'QGradient.Preset' + DesertHump = ... # type: 'QGradient.Preset' + JungleDay = ... # type: 'QGradient.Preset' + PhoenixStart = ... # type: 'QGradient.Preset' + OctoberSilence = ... # type: 'QGradient.Preset' + FarawayRiver = ... # type: 'QGradient.Preset' + AlchemistLab = ... # type: 'QGradient.Preset' + OverSun = ... # type: 'QGradient.Preset' + PremiumWhite = ... # type: 'QGradient.Preset' + MarsParty = ... # type: 'QGradient.Preset' + EternalConstance = ... # type: 'QGradient.Preset' + JapanBlush = ... # type: 'QGradient.Preset' + SmilingRain = ... # type: 'QGradient.Preset' + CloudyApple = ... # type: 'QGradient.Preset' + BigMango = ... # type: 'QGradient.Preset' + HealthyWater = ... # type: 'QGradient.Preset' + AmourAmour = ... # type: 'QGradient.Preset' + RiskyConcrete = ... # type: 'QGradient.Preset' + StrongStick = ... # type: 'QGradient.Preset' + ViciousStance = ... # type: 'QGradient.Preset' + PaloAlto = ... # type: 'QGradient.Preset' + HappyMemories = ... # type: 'QGradient.Preset' + MidnightBloom = ... # type: 'QGradient.Preset' + Crystalline = ... # type: 'QGradient.Preset' + PartyBliss = ... # type: 'QGradient.Preset' + ConfidentCloud = ... # type: 'QGradient.Preset' + LeCocktail = ... # type: 'QGradient.Preset' + RiverCity = ... # type: 'QGradient.Preset' + FrozenBerry = ... # type: 'QGradient.Preset' + ChildCare = ... # type: 'QGradient.Preset' + FlyingLemon = ... # type: 'QGradient.Preset' + NewRetrowave = ... # type: 'QGradient.Preset' + HiddenJaguar = ... # type: 'QGradient.Preset' + AboveTheSky = ... # type: 'QGradient.Preset' + Nega = ... # type: 'QGradient.Preset' + DenseWater = ... # type: 'QGradient.Preset' + Seashore = ... # type: 'QGradient.Preset' + MarbleWall = ... # type: 'QGradient.Preset' + CheerfulCaramel = ... # type: 'QGradient.Preset' + NightSky = ... # type: 'QGradient.Preset' + MagicLake = ... # type: 'QGradient.Preset' + YoungGrass = ... # type: 'QGradient.Preset' + ColorfulPeach = ... # type: 'QGradient.Preset' + GentleCare = ... # type: 'QGradient.Preset' + PlumBath = ... # type: 'QGradient.Preset' + HappyUnicorn = ... # type: 'QGradient.Preset' + AfricanField = ... # type: 'QGradient.Preset' + SolidStone = ... # type: 'QGradient.Preset' + OrangeJuice = ... # type: 'QGradient.Preset' + GlassWater = ... # type: 'QGradient.Preset' + NorthMiracle = ... # type: 'QGradient.Preset' + FruitBlend = ... # type: 'QGradient.Preset' + MillenniumPine = ... # type: 'QGradient.Preset' + HighFlight = ... # type: 'QGradient.Preset' + MoleHall = ... # type: 'QGradient.Preset' + SpaceShift = ... # type: 'QGradient.Preset' + ForestInei = ... # type: 'QGradient.Preset' + RoyalGarden = ... # type: 'QGradient.Preset' + RichMetal = ... # type: 'QGradient.Preset' + JuicyCake = ... # type: 'QGradient.Preset' + SmartIndigo = ... # type: 'QGradient.Preset' + SandStrike = ... # type: 'QGradient.Preset' + NorseBeauty = ... # type: 'QGradient.Preset' + AquaGuidance = ... # type: 'QGradient.Preset' + SunVeggie = ... # type: 'QGradient.Preset' + SeaLord = ... # type: 'QGradient.Preset' + BlackSea = ... # type: 'QGradient.Preset' + GrassShampoo = ... # type: 'QGradient.Preset' + LandingAircraft = ... # type: 'QGradient.Preset' + WitchDance = ... # type: 'QGradient.Preset' + SleeplessNight = ... # type: 'QGradient.Preset' + AngelCare = ... # type: 'QGradient.Preset' + CrystalRiver = ... # type: 'QGradient.Preset' + SoftLipstick = ... # type: 'QGradient.Preset' + SaltMountain = ... # type: 'QGradient.Preset' + PerfectWhite = ... # type: 'QGradient.Preset' + FreshOasis = ... # type: 'QGradient.Preset' + StrictNovember = ... # type: 'QGradient.Preset' + MorningSalad = ... # type: 'QGradient.Preset' + DeepRelief = ... # type: 'QGradient.Preset' + SeaStrike = ... # type: 'QGradient.Preset' + NightCall = ... # type: 'QGradient.Preset' + SupremeSky = ... # type: 'QGradient.Preset' + LightBlue = ... # type: 'QGradient.Preset' + MindCrawl = ... # type: 'QGradient.Preset' + LilyMeadow = ... # type: 'QGradient.Preset' + SugarLollipop = ... # type: 'QGradient.Preset' + SweetDessert = ... # type: 'QGradient.Preset' + MagicRay = ... # type: 'QGradient.Preset' + TeenParty = ... # type: 'QGradient.Preset' + FrozenHeat = ... # type: 'QGradient.Preset' + GagarinView = ... # type: 'QGradient.Preset' + FabledSunset = ... # type: 'QGradient.Preset' + PerfectBlue = ... # type: 'QGradient.Preset' + NumPresets = ... # type: 'QGradient.Preset' + class Spread(int): ... PadSpread = ... # type: 'QGradient.Spread' ReflectSpread = ... # type: 'QGradient.Spread' @@ -459,10 +807,13 @@ class QGradient(sip.simplewrapper): LogicalMode = ... # type: 'QGradient.CoordinateMode' StretchToDeviceMode = ... # type: 'QGradient.CoordinateMode' ObjectBoundingMode = ... # type: 'QGradient.CoordinateMode' + ObjectMode = ... # type: 'QGradient.CoordinateMode' @typing.overload def __init__(self) -> None: ... @typing.overload + def __init__(self, a0: 'QGradient.Preset') -> None: ... + @typing.overload def __init__(self, a0: 'QGradient') -> None: ... def setCoordinateMode(self, mode: 'QGradient.CoordinateMode') -> None: ... @@ -585,6 +936,75 @@ class QClipboard(QtCore.QObject): def clear(self, mode: 'QClipboard.Mode' = ...) -> None: ... +class QColorSpace(sip.simplewrapper): + + class TransferFunction(int): ... + Custom = ... # type: 'QColorSpace.TransferFunction' + Linear = ... # type: 'QColorSpace.TransferFunction' + Gamma = ... # type: 'QColorSpace.TransferFunction' + SRgb = ... # type: 'QColorSpace.TransferFunction' + ProPhotoRgb = ... # type: 'QColorSpace.TransferFunction' + + class Primaries(int): ... + Custom = ... # type: 'QColorSpace.Primaries' + SRgb = ... # type: 'QColorSpace.Primaries' + AdobeRgb = ... # type: 'QColorSpace.Primaries' + DciP3D65 = ... # type: 'QColorSpace.Primaries' + ProPhotoRgb = ... # type: 'QColorSpace.Primaries' + + class NamedColorSpace(int): ... + SRgb = ... # type: 'QColorSpace.NamedColorSpace' + SRgbLinear = ... # type: 'QColorSpace.NamedColorSpace' + AdobeRgb = ... # type: 'QColorSpace.NamedColorSpace' + DisplayP3 = ... # type: 'QColorSpace.NamedColorSpace' + ProPhotoRgb = ... # type: 'QColorSpace.NamedColorSpace' + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, namedColorSpace: 'QColorSpace.NamedColorSpace') -> None: ... + @typing.overload + def __init__(self, primaries: 'QColorSpace.Primaries', fun: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + @typing.overload + def __init__(self, primaries: 'QColorSpace.Primaries', gamma: float) -> None: ... + @typing.overload + def __init__(self, whitePoint: typing.Union[QtCore.QPointF, QtCore.QPoint], redPoint: typing.Union[QtCore.QPointF, QtCore.QPoint], greenPoint: typing.Union[QtCore.QPointF, QtCore.QPoint], bluePoint: typing.Union[QtCore.QPointF, QtCore.QPoint], fun: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + @typing.overload + def __init__(self, colorSpace: 'QColorSpace') -> None: ... + + def transformationToColorSpace(self, colorspace: 'QColorSpace') -> 'QColorTransform': ... + def iccProfile(self) -> QtCore.QByteArray: ... + @staticmethod + def fromIccProfile(iccProfile: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QColorSpace': ... + def isValid(self) -> bool: ... + @typing.overload + def setPrimaries(self, primariesId: 'QColorSpace.Primaries') -> None: ... + @typing.overload + def setPrimaries(self, whitePoint: typing.Union[QtCore.QPointF, QtCore.QPoint], redPoint: typing.Union[QtCore.QPointF, QtCore.QPoint], greenPoint: typing.Union[QtCore.QPointF, QtCore.QPoint], bluePoint: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def withTransferFunction(self, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> 'QColorSpace': ... + def setTransferFunction(self, transferFunction: 'QColorSpace.TransferFunction', gamma: float = ...) -> None: ... + def gamma(self) -> float: ... + def transferFunction(self) -> 'QColorSpace.TransferFunction': ... + def primaries(self) -> 'QColorSpace.Primaries': ... + def swap(self, colorSpace: 'QColorSpace') -> None: ... + + +class QColorTransform(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, colorTransform: 'QColorTransform') -> None: ... + + @typing.overload + def map(self, argb: int) -> int: ... + @typing.overload + def map(self, rgba64: 'QRgba64') -> 'QRgba64': ... + @typing.overload + def map(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> QColor: ... + def swap(self, other: 'QColorTransform') -> None: ... + + class QCursor(sip.simplewrapper): @typing.overload @@ -733,8 +1153,12 @@ class QWheelEvent(QInputEvent): @typing.overload def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, qt4Delta: int, qt4Orientation: QtCore.Qt.Orientation, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], phase: QtCore.Qt.ScrollPhase, source: QtCore.Qt.MouseEventSource, inverted: bool) -> None: ... @typing.overload + def __init__(self, pos: typing.Union[QtCore.QPointF, QtCore.QPoint], globalPos: typing.Union[QtCore.QPointF, QtCore.QPoint], pixelDelta: QtCore.QPoint, angleDelta: QtCore.QPoint, buttons: typing.Union[QtCore.Qt.MouseButtons, QtCore.Qt.MouseButton], modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier], phase: QtCore.Qt.ScrollPhase, inverted: bool, source: QtCore.Qt.MouseEventSource = ...) -> None: ... + @typing.overload def __init__(self, a0: 'QWheelEvent') -> None: ... + def globalPosition(self) -> QtCore.QPointF: ... + def position(self) -> QtCore.QPointF: ... def inverted(self) -> bool: ... def source(self) -> QtCore.Qt.MouseEventSource: ... def phase(self) -> QtCore.Qt.ScrollPhase: ... @@ -1226,8 +1650,11 @@ class QNativeGestureEvent(QInputEvent): @typing.overload def __init__(self, type: QtCore.Qt.NativeGestureType, localPos: typing.Union[QtCore.QPointF, QtCore.QPoint], windowPos: typing.Union[QtCore.QPointF, QtCore.QPoint], screenPos: typing.Union[QtCore.QPointF, QtCore.QPoint], value: float, sequenceId: int, intArgument: int) -> None: ... @typing.overload + def __init__(self, type: QtCore.Qt.NativeGestureType, dev: 'QTouchDevice', localPos: typing.Union[QtCore.QPointF, QtCore.QPoint], windowPos: typing.Union[QtCore.QPointF, QtCore.QPoint], screenPos: typing.Union[QtCore.QPointF, QtCore.QPoint], value: float, sequenceId: int, intArgument: int) -> None: ... + @typing.overload def __init__(self, a0: 'QNativeGestureEvent') -> None: ... + def device(self) -> 'QTouchDevice': ... def screenPos(self) -> QtCore.QPointF: ... def windowPos(self) -> QtCore.QPointF: ... def localPos(self) -> QtCore.QPointF: ... @@ -1326,6 +1753,7 @@ class QFont(sip.simplewrapper): OpenGLCompatible = ... # type: 'QFont.StyleStrategy' NoFontMerging = ... # type: 'QFont.StyleStrategy' ForceIntegerMetrics = ... # type: 'QFont.StyleStrategy' + PreferNoShaping = ... # type: 'QFont.StyleStrategy' class StyleHint(int): ... Helvetica = ... # type: 'QFont.StyleHint' @@ -1353,6 +1781,8 @@ class QFont(sip.simplewrapper): @typing.overload def __init__(self, variant: typing.Any) -> None: ... + def setFamilies(self, a0: typing.Iterable[str]) -> None: ... + def families(self) -> typing.List[str]: ... def __hash__(self) -> int: ... def swap(self, other: 'QFont') -> None: ... def hintingPreference(self) -> 'QFont.HintingPreference': ... @@ -1556,6 +1986,8 @@ class QFontMetrics(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QFontMetrics') -> None: ... + def fontDpi(self) -> float: ... + def horizontalAdvance(self, a0: str, length: int = ...) -> int: ... def capHeight(self) -> int: ... def swap(self, other: 'QFontMetrics') -> None: ... def inFontUcs4(self, character: int) -> bool: ... @@ -1601,6 +2033,8 @@ class QFontMetricsF(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QFontMetricsF') -> None: ... + def fontDpi(self) -> float: ... + def horizontalAdvance(self, string: str, length: int = ...) -> float: ... def capHeight(self) -> float: ... def swap(self, other: 'QFontMetricsF') -> None: ... def inFontUcs4(self, character: int) -> bool: ... @@ -1850,6 +2284,13 @@ class QGuiApplication(QtCore.QCoreApplication): def __init__(self, argv: typing.List[str]) -> None: ... + @staticmethod + def highDpiScaleFactorRoundingPolicy() -> QtCore.Qt.HighDpiScaleFactorRoundingPolicy: ... + @staticmethod + def setHighDpiScaleFactorRoundingPolicy(policy: QtCore.Qt.HighDpiScaleFactorRoundingPolicy) -> None: ... + def fontChanged(self, font: QFont) -> None: ... + @staticmethod + def screenAt(point: QtCore.QPoint) -> 'QScreen': ... @staticmethod def desktopFileName() -> str: ... @staticmethod @@ -1983,6 +2424,14 @@ class QIcon(sip.wrapper): @typing.overload def __init__(self, variant: typing.Any) -> None: ... + @staticmethod + def setFallbackThemeName(name: str) -> None: ... + @staticmethod + def fallbackThemeName() -> str: ... + @staticmethod + def setFallbackSearchPaths(paths: typing.Iterable[str]) -> None: ... + @staticmethod + def fallbackSearchPaths() -> typing.List[str]: ... def isMask(self) -> bool: ... def setIsMask(self, isMask: bool) -> None: ... def swap(self, other: 'QIcon') -> None: ... @@ -2107,6 +2556,11 @@ class QImage(QPaintDevice): Format_A2RGB30_Premultiplied = ... # type: 'QImage.Format' Format_Alpha8 = ... # type: 'QImage.Format' Format_Grayscale8 = ... # type: 'QImage.Format' + Format_RGBX64 = ... # type: 'QImage.Format' + Format_RGBA64 = ... # type: 'QImage.Format' + Format_RGBA64_Premultiplied = ... # type: 'QImage.Format' + Format_Grayscale16 = ... # type: 'QImage.Format' + Format_BGR888 = ... # type: 'QImage.Format' class InvertMode(int): ... InvertRgb = ... # type: 'QImage.InvertMode' @@ -2135,6 +2589,13 @@ class QImage(QPaintDevice): @typing.overload def __init__(self, variant: typing.Any) -> None: ... + def applyColorTransform(self, transform: QColorTransform) -> None: ... + def setColorSpace(self, a0: QColorSpace) -> None: ... + def convertToColorSpace(self, a0: QColorSpace) -> None: ... + def convertedToColorSpace(self, a0: QColorSpace) -> 'QImage': ... + def colorSpace(self) -> QColorSpace: ... + def convertTo(self, f: 'QImage.Format', flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + def sizeInBytes(self) -> int: ... def reinterpretAsFormat(self, f: 'QImage.Format') -> bool: ... @typing.overload def setPixelColor(self, x: int, y: int, c: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... @@ -2150,7 +2611,7 @@ class QImage(QPaintDevice): def toPixelFormat(format: 'QImage.Format') -> 'QPixelFormat': ... def pixelFormat(self) -> 'QPixelFormat': ... def setDevicePixelRatio(self, scaleFactor: float) -> None: ... - def devicePixelRatio(self) -> float: ... # type: ignore # fixes issues #2 + def devicePixelRatio(self) -> float: ... # type: ignore def swap(self, other: 'QImage') -> None: ... def bitPlaneCount(self) -> int: ... def byteCount(self) -> int: ... @@ -2341,6 +2802,8 @@ class QImageReader(sip.simplewrapper): @typing.overload def __init__(self, fileName: str, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @staticmethod + def imageFormatsForMimeType(mimeType: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... def gamma(self) -> float: ... def setGamma(self, gamma: float) -> None: ... def autoTransform(self) -> bool: ... @@ -2364,7 +2827,7 @@ class QImageReader(sip.simplewrapper): def textKeys(self) -> typing.List[str]: ... @staticmethod def supportedImageFormats() -> typing.List[QtCore.QByteArray]: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore @staticmethod def imageFormat(fileName: str) -> QtCore.QByteArray: ... @typing.overload @@ -2407,6 +2870,7 @@ class QImageWriter(sip.simplewrapper): UnknownError = ... # type: 'QImageWriter.ImageWriterError' DeviceError = ... # type: 'QImageWriter.ImageWriterError' UnsupportedFormatError = ... # type: 'QImageWriter.ImageWriterError' + InvalidImageError = ... # type: 'QImageWriter.ImageWriterError' @typing.overload def __init__(self) -> None: ... @@ -2415,6 +2879,8 @@ class QImageWriter(sip.simplewrapper): @typing.overload def __init__(self, fileName: str, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> None: ... + @staticmethod + def imageFormatsForMimeType(mimeType: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> typing.List[QtCore.QByteArray]: ... def setTransformation(self, orientation: typing.Union[QImageIOHandler.Transformations, QImageIOHandler.Transformation]) -> None: ... def transformation(self) -> QImageIOHandler.Transformations: ... def progressiveScanWrite(self) -> bool: ... @@ -2624,7 +3090,7 @@ class QMatrix4x4(sip.simplewrapper): @typing.overload def map(self, point: QtCore.QPoint) -> QtCore.QPoint: ... @typing.overload - def map(self, point: QtCore.QPointF) -> QtCore.QPointF: ... # fixes issue #3 + def map(self, point: QtCore.QPointF) -> QtCore.QPointF: ... @typing.overload def map(self, point: 'QVector3D') -> 'QVector3D': ... @typing.overload @@ -2703,6 +3169,8 @@ class QMovie(QtCore.QObject): @typing.overload def __init__(self, fileName: str, format: typing.Union[QtCore.QByteArray, bytes, bytearray] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def lastErrorString(self) -> str: ... + def lastError(self) -> QImageReader.ImageReaderError: ... def stop(self) -> None: ... def setPaused(self, paused: bool) -> None: ... def jumpToNextFrame(self) -> bool: ... @@ -2749,6 +3217,8 @@ class QSurface(sip.simplewrapper): OpenGLSurface = ... # type: 'QSurface.SurfaceType' RasterGLSurface = ... # type: 'QSurface.SurfaceType' OpenVGSurface = ... # type: 'QSurface.SurfaceType' + VulkanSurface = ... # type: 'QSurface.SurfaceType' + MetalSurface = ... # type: 'QSurface.SurfaceType' class SurfaceClass(int): ... Window = ... # type: 'QSurface.SurfaceClass' @@ -2768,7 +3238,10 @@ class QSurface(sip.simplewrapper): class QOffscreenSurface(QtCore.QObject, QSurface): + @typing.overload def __init__(self, screen: typing.Optional['QScreen'] = ...) -> None: ... + @typing.overload + def __init__(self, screen: 'QScreen', parent: QtCore.QObject) -> None: ... def setNativeHandle(self, handle: sip.voidptr) -> None: ... def nativeHandle(self) -> sip.voidptr: ... @@ -2851,7 +3324,7 @@ class QOpenGLBuffer(sip.simplewrapper): def __len__(self) -> int: ... def size(self) -> int: ... def bufferId(self) -> int: ... - @typing.overload # type: ignore #fixes issue #1 + @typing.overload # type: ignore def release(self) -> None: ... @typing.overload @staticmethod @@ -3818,6 +4291,16 @@ class QOpenGLTexture(sip.simplewrapper): def setData(self, image: QImage, genMipMaps: 'QOpenGLTexture.MipMapGeneration' = ...) -> None: ... @typing.overload def setData(self, mipLevel: int, layer: int, layerCount: int, cubeFace: 'QOpenGLTexture.CubeMapFace', sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, layer: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, layer: int, cubeFace: 'QOpenGLTexture.CubeMapFace', sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... + @typing.overload + def setData(self, xOffset: int, yOffset: int, zOffset: int, width: int, height: int, depth: int, mipLevel: int, layer: int, cubeFace: 'QOpenGLTexture.CubeMapFace', layerCount: int, sourceFormat: 'QOpenGLTexture.PixelFormat', sourceType: 'QOpenGLTexture.PixelType', data: sip.voidptr, options: typing.Optional[QOpenGLPixelTransferOptions] = ...) -> None: ... def isTextureView(self) -> bool: ... def createTextureView(self, target: 'QOpenGLTexture.Target', viewFormat: 'QOpenGLTexture.TextureFormat', minimumMipmapLevel: int, maximumMipmapLevel: int, minimumLayer: int, maximumLayer: int) -> 'QOpenGLTexture': ... def isStorageAllocated(self) -> bool: ... @@ -3963,6 +4446,8 @@ class QWindow(QtCore.QObject, QSurface): @typing.overload def __init__(self, parent: 'QWindow') -> None: ... + def setWindowStates(self, states: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState]) -> None: ... + def windowStates(self) -> QtCore.Qt.WindowStates: ... def setFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... def opacityChanged(self, opacity: float) -> None: ... def activeChanged(self) -> None: ... @@ -4100,7 +4585,7 @@ class QWindow(QtCore.QObject, QSurface): def modality(self) -> QtCore.Qt.WindowModality: ... def isModal(self) -> bool: ... def isTopLevel(self) -> bool: ... - def setParent(self, parent: 'QWindow') -> None: ... # type: ignore # fixes issue #2 + def setParent(self, parent: 'QWindow') -> None: ... # type: ignore @typing.overload def parent(self) -> 'QWindow': ... @typing.overload @@ -4112,7 +4597,7 @@ class QWindow(QtCore.QObject, QSurface): def setSurfaceType(self, surfaceType: QSurface.SurfaceType) -> None: ... -class QPaintDeviceWindow(QWindow, QPaintDevice): # type: ignore # fixes issue #5 +class QPaintDeviceWindow(QWindow, QPaintDevice): # type: ignore def event(self, event: QtCore.QEvent) -> bool: ... def exposeEvent(self, a0: QExposeEvent) -> None: ... @@ -4159,6 +4644,11 @@ class QOpenGLWindow(QPaintDeviceWindow): class QPagedPaintDevice(QPaintDevice): + class PdfVersion(int): ... + PdfVersion_1_4 = ... # type: 'QPagedPaintDevice.PdfVersion' + PdfVersion_A1b = ... # type: 'QPagedPaintDevice.PdfVersion' + PdfVersion_1_6 = ... # type: 'QPagedPaintDevice.PdfVersion' + class PageSize(int): ... A4 = ... # type: 'QPagedPaintDevice.PageSize' B5 = ... # type: 'QPagedPaintDevice.PageSize' @@ -4542,37 +5032,37 @@ class QPageSize(sip.simplewrapper): def rectPixels(self, resolution: int) -> QtCore.QRect: ... def rectPoints(self) -> QtCore.QRect: ... def rect(self, units: 'QPageSize.Unit') -> QtCore.QRectF: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def sizePixels(self, resolution: int) -> QtCore.QSize: ... @typing.overload @staticmethod def sizePixels(pageSizeId: 'QPageSize.PageSizeId', resolution: int) -> QtCore.QSize: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def sizePoints(self) -> QtCore.QSize: ... @typing.overload @staticmethod def sizePoints(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSize: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def size(self, units: 'QPageSize.Unit') -> QtCore.QSizeF: ... @typing.overload @staticmethod def size(pageSizeId: 'QPageSize.PageSizeId', units: 'QPageSize.Unit') -> QtCore.QSizeF: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def definitionUnits(self) -> 'QPageSize.Unit': ... @typing.overload @staticmethod def definitionUnits(pageSizeId: 'QPageSize.PageSizeId') -> 'QPageSize.Unit': ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def definitionSize(self) -> QtCore.QSizeF: ... @typing.overload @staticmethod def definitionSize(pageSizeId: 'QPageSize.PageSizeId') -> QtCore.QSizeF: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def windowsId(self) -> int: ... @typing.overload @staticmethod def windowsId(pageSizeId: 'QPageSize.PageSizeId') -> int: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def id(self) -> 'QPageSize.PageSizeId': ... @typing.overload @staticmethod @@ -4583,12 +5073,12 @@ class QPageSize(sip.simplewrapper): @typing.overload @staticmethod def id(windowsId: int) -> 'QPageSize.PageSizeId': ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def name(self) -> str: ... @typing.overload @staticmethod def name(pageSizeId: 'QPageSize.PageSizeId') -> str: ... - @typing.overload # type: ignore # fixes issue #1 + @typing.overload # type: ignore def key(self) -> str: ... @typing.overload @staticmethod @@ -4650,6 +5140,7 @@ class QPainter(sip.simplewrapper): HighQualityAntialiasing = ... # type: 'QPainter.RenderHint' NonCosmeticDefaultPen = ... # type: 'QPainter.RenderHint' Qt4CompatiblePainting = ... # type: 'QPainter.RenderHint' + LosslessImageRendering = ... # type: 'QPainter.RenderHint' class RenderHints(sip.simplewrapper): @@ -4742,7 +5233,7 @@ class QPainter(sip.simplewrapper): def drawImage(self, r: QtCore.QRect, image: QImage) -> None: ... @typing.overload def drawImage(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], image: QImage) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawImage(self, p: QtCore.QPoint, image: QImage) -> None: ... @typing.overload def drawImage(self, x: int, y: int, image: QImage, sx: int = ..., sy: int = ..., sw: int = ..., sh: int = ..., flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... @@ -4758,7 +5249,7 @@ class QPainter(sip.simplewrapper): def drawPoint(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... @typing.overload def drawPoint(self, x: int, y: int) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawPoint(self, p: QtCore.QPoint) -> None: ... @typing.overload def drawRect(self, rect: QtCore.QRectF) -> None: ... @@ -4796,7 +5287,7 @@ class QPainter(sip.simplewrapper): def fillRect(self, a0: QtCore.QRectF, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... @typing.overload def fillRect(self, a0: QtCore.QRect, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def fillRect(self, x: int, y: int, w: int, h: int, b: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... @typing.overload def fillRect(self, x: int, y: int, w: int, h: int, c: QtCore.Qt.GlobalColor) -> None: ... @@ -4811,6 +5302,12 @@ class QPainter(sip.simplewrapper): @typing.overload def fillRect(self, r: QtCore.QRectF, style: QtCore.Qt.BrushStyle) -> None: ... @typing.overload + def fillRect(self, x: int, y: int, w: int, h: int, preset: QGradient.Preset) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRect, preset: QGradient.Preset) -> None: ... + @typing.overload + def fillRect(self, r: QtCore.QRectF, preset: QGradient.Preset) -> None: ... + @typing.overload def boundingRect(self, rect: QtCore.QRectF, flags: int, text: str) -> QtCore.QRectF: ... @typing.overload def boundingRect(self, rect: QtCore.QRect, flags: int, text: str) -> QtCore.QRect: ... @@ -4826,7 +5323,7 @@ class QPainter(sip.simplewrapper): def drawText(self, rectangle: QtCore.QRect, flags: int, text: str) -> QtCore.QRect: ... @typing.overload def drawText(self, rectangle: QtCore.QRectF, text: str, option: 'QTextOption' = ...) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawText(self, p: QtCore.QPoint, s: str) -> None: ... @typing.overload def drawText(self, x: int, y: int, width: int, height: int, flags: int, text: str) -> QtCore.QRect: ... @@ -4840,7 +5337,7 @@ class QPainter(sip.simplewrapper): def drawPixmap(self, targetRect: QtCore.QRect, pixmap: QPixmap, sourceRect: QtCore.QRect) -> None: ... @typing.overload def drawPixmap(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], pm: QPixmap) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawPixmap(self, p: QtCore.QPoint, pm: QPixmap) -> None: ... @typing.overload def drawPixmap(self, r: QtCore.QRect, pm: QPixmap) -> None: ... @@ -4890,7 +5387,7 @@ class QPainter(sip.simplewrapper): def drawConvexPolygon(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1: typing.Any) -> None: ... @typing.overload def drawConvexPolygon(self, poly: 'QPolygonF') -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawConvexPolygon(self, point: QtCore.QPoint, *a1) -> None: ... @typing.overload def drawConvexPolygon(self, poly: 'QPolygon') -> None: ... @@ -4898,7 +5395,7 @@ class QPainter(sip.simplewrapper): def drawPolygon(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint], *a1: typing.Any) -> None: ... @typing.overload def drawPolygon(self, points: 'QPolygonF', fillRule: QtCore.Qt.FillRule = ...) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawPolygon(self, point: QtCore.QPoint, *a1) -> None: ... @typing.overload def drawPolygon(self, points: 'QPolygon', fillRule: QtCore.Qt.FillRule = ...) -> None: ... @@ -4918,7 +5415,7 @@ class QPainter(sip.simplewrapper): def drawEllipse(self, x: int, y: int, w: int, h: int) -> None: ... @typing.overload def drawEllipse(self, center: typing.Union[QtCore.QPointF, QtCore.QPoint], rx: float, ry: float) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawEllipse(self, center: QtCore.QPoint, rx: int, ry: int) -> None: ... @typing.overload def drawRects(self, rect: QtCore.QRectF, *a1: typing.Any) -> None: ... @@ -4971,7 +5468,7 @@ class QPainter(sip.simplewrapper): def translate(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... @typing.overload def translate(self, dx: float, dy: float) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def translate(self, offset: QtCore.QPoint) -> None: ... def rotate(self, a: float) -> None: ... def shear(self, sh: float, sv: float) -> None: ... @@ -5174,11 +5671,11 @@ class QPaintEngine(sip.simplewrapper): def drawPixmap(self, r: QtCore.QRectF, pm: QPixmap, sr: QtCore.QRectF) -> None: ... # @typing.overload def drawPolygon(self, points: typing.Union[QtCore.QPointF, QtCore.QPoint], mode: 'QPaintEngine.PolygonDrawMode') -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawPolygon(self, points: QtCore.QPoint, mode: 'QPaintEngine.PolygonDrawMode') -> None: ... # @typing.overload def drawPoints(self, points: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def drawPoints(self, points: QtCore.QPoint) -> None: ... def drawPath(self, path: 'QPainterPath') -> None: ... @typing.overload @@ -5257,6 +5754,9 @@ class QPainterPath(sip.simplewrapper): @typing.overload def __init__(self, other: 'QPainterPath') -> None: ... + def capacity(self) -> int: ... + def reserve(self, size: int) -> None: ... + def clear(self) -> None: ... def swap(self, other: 'QPainterPath') -> None: ... @typing.overload def translated(self, dx: float, dy: float) -> 'QPainterPath': ... @@ -5407,6 +5907,7 @@ class QPalette(sip.simplewrapper): AlternateBase = ... # type: 'QPalette.ColorRole' ToolTipBase = ... # type: 'QPalette.ColorRole' ToolTipText = ... # type: 'QPalette.ColorRole' + PlaceholderText = ... # type: 'QPalette.ColorRole' NoRole = ... # type: 'QPalette.ColorRole' NColorRoles = ... # type: 'QPalette.ColorRole' @@ -5423,7 +5924,7 @@ class QPalette(sip.simplewrapper): def __init__(self) -> None: ... @typing.overload def __init__(self, button: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... - # @typing.overload # fixes issue #4 + # @typing.overload # def __init__(self, button: QtCore.Qt.GlobalColor) -> None: ... @typing.overload def __init__(self, button: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient], background: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... @@ -5448,6 +5949,7 @@ class QPalette(sip.simplewrapper): @typing.overload def resolve(self, mask: int) -> None: ... def isCopyOf(self, p: 'QPalette') -> bool: ... + def placeholderText(self) -> QBrush: ... def toolTipText(self) -> QBrush: ... def toolTipBase(self) -> QBrush: ... def linkVisited(self) -> QBrush: ... @@ -5492,13 +5994,15 @@ class QPdfWriter(QtCore.QObject, QPagedPaintDevice): @typing.overload def __init__(self, device: QtCore.QIODevice) -> None: ... + def pdfVersion(self) -> QPagedPaintDevice.PdfVersion: ... + def setPdfVersion(self, version: QPagedPaintDevice.PdfVersion) -> None: ... def resolution(self) -> int: ... def setResolution(self, resolution: int) -> None: ... def metric(self, id: QPaintDevice.PaintDeviceMetric) -> int: ... def paintEngine(self) -> QPaintEngine: ... def setMargins(self, m: QPagedPaintDevice.Margins) -> None: ... def setPageSizeMM(self, size: QtCore.QSizeF) -> None: ... - def setPageSize(self, size: QPagedPaintDevice.PageSize) -> None: ... # type: ignore # fixes issue #2 + def setPageSize(self, size: QPagedPaintDevice.PageSize) -> None: ... # type: ignore def newPage(self) -> bool: ... def setCreator(self, creator: str) -> None: ... def creator(self) -> str: ... @@ -5765,6 +6269,7 @@ class QPolygon(sip.simplewrapper): @typing.overload def __init__(self, variant: typing.Any) -> None: ... + def intersects(self, r: 'QPolygon') -> bool: ... def swap(self, other: 'QPolygon') -> None: ... def __contains__(self, value: QtCore.QPoint) -> int: ... @typing.overload @@ -5851,6 +6356,7 @@ class QPolygonF(sip.simplewrapper): @typing.overload def __init__(self, asize: int) -> None: ... + def intersects(self, r: 'QPolygonF') -> bool: ... def swap(self, other: 'QPolygonF') -> None: ... def __contains__(self, value: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> int: ... @typing.overload @@ -6246,6 +6752,7 @@ class QStandardItemModel(QtCore.QAbstractItemModel): @typing.overload def __init__(self, rows: int, columns: int, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def clearItemData(self, index: QtCore.QModelIndex) -> bool: ... def itemChanged(self, item: 'QStandardItem') -> None: ... def setItemRoleNames(self, roleNames: typing.Dict[int, typing.Union[QtCore.QByteArray, bytes, bytearray]]) -> None: ... def sibling(self, row: int, column: int, idx: QtCore.QModelIndex) -> QtCore.QModelIndex: ... @@ -6334,6 +6841,7 @@ class QStandardItem(sip.wrapper): @typing.overload def __init__(self, other: 'QStandardItem') -> None: ... + def clearData(self) -> None: ... def setUserTristate(self, tristate: bool) -> None: ... def isUserTristate(self) -> bool: ... def setAutoTristate(self, tristate: bool) -> None: ... @@ -6458,6 +6966,13 @@ class QStaticText(sip.simplewrapper): class QStyleHints(QtCore.QObject): + def touchDoubleTapDistance(self) -> int: ... + def mouseDoubleClickDistance(self) -> int: ... + def showShortcutsInContextMenusChanged(self, a0: bool) -> None: ... + def setShowShortcutsInContextMenus(self, showShortcutsInContextMenus: bool) -> None: ... + def mouseQuickSelectionThresholdChanged(self, threshold: int) -> None: ... + def mouseQuickSelectionThreshold(self) -> int: ... + def showShortcutsInContextMenus(self) -> bool: ... def wheelScrollLinesChanged(self, scrollLines: int) -> None: ... def wheelScrollLines(self) -> int: ... def useHoverEffectsChanged(self, useHoverEffects: bool) -> None: ... @@ -6491,6 +7006,10 @@ class QStyleHints(QtCore.QObject): class QSurfaceFormat(sip.simplewrapper): + class ColorSpace(int): ... + DefaultColorSpace = ... # type: 'QSurfaceFormat.ColorSpace' + sRGBColorSpace = ... # type: 'QSurfaceFormat.ColorSpace' + class OpenGLContextProfile(int): ... NoProfile = ... # type: 'QSurfaceFormat.OpenGLContextProfile' CoreProfile = ... # type: 'QSurfaceFormat.OpenGLContextProfile' @@ -6536,6 +7055,8 @@ class QSurfaceFormat(sip.simplewrapper): @typing.overload def __init__(self, other: 'QSurfaceFormat') -> None: ... + def setColorSpace(self, colorSpace: 'QSurfaceFormat.ColorSpace') -> None: ... + def colorSpace(self) -> 'QSurfaceFormat.ColorSpace': ... @staticmethod def defaultFormat() -> 'QSurfaceFormat': ... @staticmethod @@ -6752,15 +7273,22 @@ class Qt(sip.simplewrapper): class QTextDocument(QtCore.QObject): + class MarkdownFeature(int): ... + MarkdownNoHTML = ... # type: 'QTextDocument.MarkdownFeature' + MarkdownDialectCommonMark = ... # type: 'QTextDocument.MarkdownFeature' + MarkdownDialectGitHub = ... # type: 'QTextDocument.MarkdownFeature' + class Stacks(int): ... UndoStack = ... # type: 'QTextDocument.Stacks' RedoStack = ... # type: 'QTextDocument.Stacks' UndoAndRedoStacks = ... # type: 'QTextDocument.Stacks' class ResourceType(int): ... + UnknownResource = ... # type: 'QTextDocument.ResourceType' HtmlResource = ... # type: 'QTextDocument.ResourceType' ImageResource = ... # type: 'QTextDocument.ResourceType' StyleSheetResource = ... # type: 'QTextDocument.ResourceType' + MarkdownResource = ... # type: 'QTextDocument.ResourceType' UserResource = ... # type: 'QTextDocument.ResourceType' class FindFlag(int): ... @@ -6787,11 +7315,28 @@ class QTextDocument(QtCore.QObject): def __index__(self) -> int: ... def __int__(self) -> int: ... + class MarkdownFeatures(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QTextDocument.MarkdownFeatures', 'QTextDocument.MarkdownFeature']) -> None: ... + @typing.overload + def __init__(self, a0: 'QTextDocument.MarkdownFeatures') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QTextDocument.MarkdownFeatures': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload def __init__(self, text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def setMarkdown(self, markdown: str, features: typing.Union['QTextDocument.MarkdownFeatures', 'QTextDocument.MarkdownFeature'] = ...) -> None: ... + def toMarkdown(self, features: typing.Union['QTextDocument.MarkdownFeatures', 'QTextDocument.MarkdownFeature'] = ...) -> str: ... def toRawText(self) -> str: ... def baseUrlChanged(self, url: QtCore.QUrl) -> None: ... def setBaseUrl(self, url: QtCore.QUrl) -> None: ... @@ -7049,6 +7594,29 @@ class QTextFormat(sip.simplewrapper): ListNumberSuffix = ... # type: 'QTextFormat.Property' FontStretch = ... # type: 'QTextFormat.Property' FontLetterSpacingType = ... # type: 'QTextFormat.Property' + HeadingLevel = ... # type: 'QTextFormat.Property' + ImageQuality = ... # type: 'QTextFormat.Property' + FontFamilies = ... # type: 'QTextFormat.Property' + FontStyleName = ... # type: 'QTextFormat.Property' + BlockQuoteLevel = ... # type: 'QTextFormat.Property' + BlockCodeLanguage = ... # type: 'QTextFormat.Property' + BlockCodeFence = ... # type: 'QTextFormat.Property' + BlockMarker = ... # type: 'QTextFormat.Property' + TableBorderCollapse = ... # type: 'QTextFormat.Property' + TableCellTopBorder = ... # type: 'QTextFormat.Property' + TableCellBottomBorder = ... # type: 'QTextFormat.Property' + TableCellLeftBorder = ... # type: 'QTextFormat.Property' + TableCellRightBorder = ... # type: 'QTextFormat.Property' + TableCellTopBorderStyle = ... # type: 'QTextFormat.Property' + TableCellBottomBorderStyle = ... # type: 'QTextFormat.Property' + TableCellLeftBorderStyle = ... # type: 'QTextFormat.Property' + TableCellRightBorderStyle = ... # type: 'QTextFormat.Property' + TableCellTopBorderBrush = ... # type: 'QTextFormat.Property' + TableCellBottomBorderBrush = ... # type: 'QTextFormat.Property' + TableCellLeftBorderBrush = ... # type: 'QTextFormat.Property' + TableCellRightBorderBrush = ... # type: 'QTextFormat.Property' + ImageTitle = ... # type: 'QTextFormat.Property' + ImageAltText = ... # type: 'QTextFormat.Property' UserProperty = ... # type: 'QTextFormat.Property' class PageBreakFlag(int): ... @@ -7177,6 +7745,10 @@ class QTextCharFormat(QTextFormat): @typing.overload def __init__(self, a0: 'QTextCharFormat') -> None: ... + def fontStyleName(self) -> typing.Any: ... + def setFontStyleName(self, styleName: str) -> None: ... + def fontFamilies(self) -> typing.Any: ... + def setFontFamilies(self, families: typing.Iterable[str]) -> None: ... def fontLetterSpacingType(self) -> QFont.SpacingType: ... def setFontLetterSpacingType(self, letterSpacingType: QFont.SpacingType) -> None: ... def setFontStretch(self, factor: int) -> None: ... @@ -7241,6 +7813,11 @@ class QTextCharFormat(QTextFormat): class QTextBlockFormat(QTextFormat): + class MarkerType(int): ... + NoMarker = ... # type: 'QTextBlockFormat.MarkerType' + Unchecked = ... # type: 'QTextBlockFormat.MarkerType' + Checked = ... # type: 'QTextBlockFormat.MarkerType' + class LineHeightTypes(int): ... SingleHeight = ... # type: 'QTextBlockFormat.LineHeightTypes' ProportionalHeight = ... # type: 'QTextBlockFormat.LineHeightTypes' @@ -7253,6 +7830,10 @@ class QTextBlockFormat(QTextFormat): @typing.overload def __init__(self, a0: 'QTextBlockFormat') -> None: ... + def marker(self) -> 'QTextBlockFormat.MarkerType': ... + def setMarker(self, marker: 'QTextBlockFormat.MarkerType') -> None: ... + def headingLevel(self) -> int: ... + def setHeadingLevel(self, alevel: int) -> None: ... def lineHeightType(self) -> int: ... @typing.overload def lineHeight(self) -> float: ... @@ -7317,9 +7898,11 @@ class QTextImageFormat(QTextCharFormat): @typing.overload def __init__(self, a0: 'QTextImageFormat') -> None: ... + def setQuality(self, quality: int = ...) -> None: ... def setHeight(self, aheight: float) -> None: ... def setWidth(self, awidth: float) -> None: ... def setName(self, aname: str) -> None: ... + def quality(self) -> int: ... def height(self) -> float: ... def width(self) -> float: ... def name(self) -> str: ... @@ -7393,6 +7976,8 @@ class QTextTableFormat(QTextFrameFormat): @typing.overload def __init__(self, a0: 'QTextTableFormat') -> None: ... + def borderCollapse(self) -> bool: ... + def setBorderCollapse(self, borderCollapse: bool) -> None: ... def headerRowCount(self) -> int: ... def setHeaderRowCount(self, count: int) -> None: ... def setAlignment(self, aalignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... @@ -7416,6 +8001,33 @@ class QTextTableCellFormat(QTextCharFormat): @typing.overload def __init__(self, a0: 'QTextTableCellFormat') -> None: ... + def setBorderBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def rightBorderBrush(self) -> QBrush: ... + def setRightBorderBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def leftBorderBrush(self) -> QBrush: ... + def setLeftBorderBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def bottomBorderBrush(self) -> QBrush: ... + def setBottomBorderBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def topBorderBrush(self) -> QBrush: ... + def setTopBorderBrush(self, brush: typing.Union[QBrush, QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def setBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def rightBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setRightBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def leftBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setLeftBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def bottomBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setBottomBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def topBorderStyle(self) -> QTextFrameFormat.BorderStyle: ... + def setTopBorderStyle(self, style: QTextFrameFormat.BorderStyle) -> None: ... + def setBorder(self, width: float) -> None: ... + def rightBorder(self) -> float: ... + def setRightBorder(self, width: float) -> None: ... + def leftBorder(self) -> float: ... + def setLeftBorder(self, width: float) -> None: ... + def bottomBorder(self) -> float: ... + def setBottomBorder(self, width: float) -> None: ... + def topBorder(self) -> float: ... + def setTopBorder(self, width: float) -> None: ... def setPadding(self, padding: float) -> None: ... def rightPadding(self) -> float: ... def setRightPadding(self, padding: float) -> None: ... @@ -7590,7 +8202,7 @@ class QTextList(QTextBlockGroup): def __init__(self, doc: QTextDocument) -> None: ... - def setFormat(self, aformat: QTextListFormat) -> None: ... # type: ignore # fixes issue #2 + def setFormat(self, aformat: QTextListFormat) -> None: ... # type: ignore def format(self) -> QTextListFormat: ... def add(self, block: 'QTextBlock') -> None: ... def remove(self, a0: 'QTextBlock') -> None: ... @@ -7763,6 +8375,8 @@ class QTextOption(sip.simplewrapper): @typing.overload def __init__(self, o: 'QTextOption') -> None: ... + def tabStopDistance(self) -> float: ... + def setTabStopDistance(self, tabStopDistance: float) -> None: ... def tabs(self) -> typing.List['QTextOption.Tab']: ... def setTabs(self, tabStops: typing.Iterable['QTextOption.Tab']) -> None: ... def setTabStop(self, atabStop: float) -> None: ... @@ -7806,8 +8420,8 @@ class QTextTable(QTextFrame): def appendColumns(self, count: int) -> None: ... def appendRows(self, count: int) -> None: ... - def setFormat(self, aformat: QTextTableFormat) -> None: ... # type: ignore # fixes issue #2 - def format(self) -> QTextTableFormat: ... # type: ignore # fixes issue #2 + def setFormat(self, aformat: QTextTableFormat) -> None: ... # type: ignore + def format(self) -> QTextTableFormat: ... # type: ignore def rowEnd(self, c: QTextCursor) -> QTextCursor: ... def rowStart(self, c: QTextCursor) -> QTextCursor: ... @typing.overload @@ -7930,7 +8544,7 @@ class QTransform(sip.simplewrapper): def map(self, x: float, y: float) -> typing.Tuple[float, float]: ... @typing.overload def map(self, p: QtCore.QPoint) -> QtCore.QPoint: ... - @typing.overload # fixes issue #4 + @typing.overload def map(self, p: QtCore.QPointF) -> QtCore.QPointF: ... @typing.overload def map(self, l: QtCore.QLine) -> QtCore.QLine: ... From 1ab1ecb3fb36cf179a5ebada6e20b00657fef6f8 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:43:43 +0200 Subject: [PATCH 04/12] Update QtNetwork.pyi --- PyQt5-stubs/QtNetwork.pyi | 151 +++++++++++++++++++++++++++++++++++++- 1 file changed, 149 insertions(+), 2 deletions(-) diff --git a/PyQt5-stubs/QtNetwork.pyi b/PyQt5-stubs/QtNetwork.pyi index 002dde98..85a4075b 100644 --- a/PyQt5-stubs/QtNetwork.pyi +++ b/PyQt5-stubs/QtNetwork.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtNetwork module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -33,6 +33,24 @@ PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal] PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] +class QOcspRevocationReason(int): ... +None = ... # type: QOcspRevocationReason +Unspecified = ... # type: QOcspRevocationReason +KeyCompromise = ... # type: QOcspRevocationReason +CACompromise = ... # type: QOcspRevocationReason +AffiliationChanged = ... # type: QOcspRevocationReason +Superseded = ... # type: QOcspRevocationReason +CessationOfOperation = ... # type: QOcspRevocationReason +CertificateHold = ... # type: QOcspRevocationReason +RemoveFromCRL = ... # type: QOcspRevocationReason + + +class QOcspCertificateStatus(int): ... +Good = ... # type: QOcspCertificateStatus +Revoked = ... # type: QOcspCertificateStatus +Unknown = ... # type: QOcspCertificateStatus + + class QNetworkCacheMetaData(sip.simplewrapper): @typing.overload @@ -90,6 +108,7 @@ class QAbstractSocket(QtCore.QIODevice): TypeOfServiceOption = ... # type: 'QAbstractSocket.SocketOption' SendBufferSizeSocketOption = ... # type: 'QAbstractSocket.SocketOption' ReceiveBufferSizeSocketOption = ... # type: 'QAbstractSocket.SocketOption' + PathMtuSocketOption = ... # type: 'QAbstractSocket.SocketOption' class SocketState(int): ... UnconnectedState = ... # type: 'QAbstractSocket.SocketState' @@ -170,6 +189,8 @@ class QAbstractSocket(QtCore.QIODevice): def __init__(self, socketType: 'QAbstractSocket.SocketType', parent: QtCore.QObject) -> None: ... + def setProtocolTag(self, tag: str) -> None: ... + def protocolTag(self) -> str: ... @typing.overload def bind(self, address: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], port: int = ..., mode: typing.Union['QAbstractSocket.BindMode', 'QAbstractSocket.BindFlag'] = ...) -> bool: ... @typing.overload @@ -419,6 +440,11 @@ class QHostAddress(sip.simplewrapper): @typing.overload def __init__(self, copy: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress']) -> None: ... + def isBroadcast(self) -> bool: ... + def isUniqueLocalUnicast(self) -> bool: ... + def isSiteLocal(self) -> bool: ... + def isLinkLocal(self) -> bool: ... + def isGlobal(self) -> bool: ... def isEqual(self, address: typing.Union['QHostAddress', 'QHostAddress.SpecialAddress'], mode: typing.Union['QHostAddress.ConversionMode', 'QHostAddress.ConversionModeFlag'] = ...) -> bool: ... def isMulticast(self) -> bool: ... def swap(self, other: 'QHostAddress') -> None: ... @@ -460,6 +486,7 @@ class QHostInfo(sip.simplewrapper): @typing.overload def __init__(self, d: 'QHostInfo') -> None: ... + def swap(self, other: 'QHostInfo') -> None: ... @staticmethod def localDomainName() -> str: ... @staticmethod @@ -519,6 +546,26 @@ class QHstsPolicy(sip.simplewrapper): def swap(self, other: 'QHstsPolicy') -> None: ... +class QHttp2Configuration(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QHttp2Configuration') -> None: ... + + def swap(self, other: 'QHttp2Configuration') -> None: ... + def maxFrameSize(self) -> int: ... + def setMaxFrameSize(self, size: int) -> bool: ... + def streamReceiveWindowSize(self) -> int: ... + def setStreamReceiveWindowSize(self, size: int) -> bool: ... + def sessionReceiveWindowSize(self) -> int: ... + def setSessionReceiveWindowSize(self, size: int) -> bool: ... + def huffmanCompressionEnabled(self) -> bool: ... + def setHuffmanCompressionEnabled(self, enable: bool) -> None: ... + def serverPushEnabled(self) -> bool: ... + def setServerPushEnabled(self, enable: bool) -> None: ... + + class QHttpPart(sip.simplewrapper): @typing.overload @@ -577,6 +624,7 @@ class QLocalServer(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def socketDescriptor(self) -> sip.voidptr: ... def socketOptions(self) -> 'QLocalServer.SocketOptions': ... def setSocketOptions(self, options: typing.Union['QLocalServer.SocketOptions', 'QLocalServer.SocketOption']) -> None: ... def incomingConnection(self, socketDescriptor: sip.voidptr) -> None: ... @@ -677,6 +725,10 @@ class QNetworkAccessManager(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def setAutoDeleteReplies(self, autoDelete: bool) -> None: ... + def autoDeleteReplies(self) -> bool: ... + def isStrictTransportSecurityStoreEnabled(self) -> bool: ... + def enableStrictTransportSecurityStore(self, enabled: bool, storeDir: str = ...) -> None: ... def redirectPolicy(self) -> 'QNetworkRequest.RedirectPolicy': ... def setRedirectPolicy(self, policy: 'QNetworkRequest.RedirectPolicy') -> None: ... def strictTransportSecurityHosts(self) -> typing.List[QHstsPolicy]: ... @@ -686,7 +738,10 @@ class QNetworkAccessManager(QtCore.QObject): def clearConnectionCache(self) -> None: ... def supportedSchemesImplementation(self) -> typing.List[str]: ... def connectToHost(self, hostName: str, port: int = ...) -> None: ... + @typing.overload def connectToHostEncrypted(self, hostName: str, port: int = ..., sslConfiguration: 'QSslConfiguration' = ...) -> None: ... + @typing.overload + def connectToHostEncrypted(self, hostName: str, port: int, sslConfiguration: 'QSslConfiguration', peerName: str) -> None: ... def supportedSchemes(self) -> typing.List[str]: ... def clearAccessCache(self) -> None: ... def networkAccessible(self) -> 'QNetworkAccessManager.NetworkAccessibility': ... @@ -943,11 +998,25 @@ class QNetworkDiskCache(QAbstractNetworkCache): class QNetworkAddressEntry(sip.simplewrapper): + class DnsEligibilityStatus(int): ... + DnsEligibilityUnknown = ... # type: 'QNetworkAddressEntry.DnsEligibilityStatus' + DnsIneligible = ... # type: 'QNetworkAddressEntry.DnsEligibilityStatus' + DnsEligible = ... # type: 'QNetworkAddressEntry.DnsEligibilityStatus' + @typing.overload def __init__(self) -> None: ... @typing.overload def __init__(self, other: 'QNetworkAddressEntry') -> None: ... + def isTemporary(self) -> bool: ... + def isPermanent(self) -> bool: ... + def clearAddressLifetime(self) -> None: ... + def setAddressLifetime(self, preferred: QtCore.QDeadlineTimer, validity: QtCore.QDeadlineTimer) -> None: ... + def validityLifetime(self) -> QtCore.QDeadlineTimer: ... + def preferredLifetime(self) -> QtCore.QDeadlineTimer: ... + def isLifetimeKnown(self) -> bool: ... + def setDnsEligibility(self, status: 'QNetworkAddressEntry.DnsEligibilityStatus') -> None: ... + def dnsEligibility(self) -> 'QNetworkAddressEntry.DnsEligibilityStatus': ... def swap(self, other: 'QNetworkAddressEntry') -> None: ... def setPrefixLength(self, length: int) -> None: ... def prefixLength(self) -> int: ... @@ -961,6 +1030,23 @@ class QNetworkAddressEntry(sip.simplewrapper): class QNetworkInterface(sip.simplewrapper): + class InterfaceType(int): ... + Unknown = ... # type: 'QNetworkInterface.InterfaceType' + Loopback = ... # type: 'QNetworkInterface.InterfaceType' + Virtual = ... # type: 'QNetworkInterface.InterfaceType' + Ethernet = ... # type: 'QNetworkInterface.InterfaceType' + Slip = ... # type: 'QNetworkInterface.InterfaceType' + CanBus = ... # type: 'QNetworkInterface.InterfaceType' + Ppp = ... # type: 'QNetworkInterface.InterfaceType' + Fddi = ... # type: 'QNetworkInterface.InterfaceType' + Wifi = ... # type: 'QNetworkInterface.InterfaceType' + Ieee80211 = ... # type: 'QNetworkInterface.InterfaceType' + Phonet = ... # type: 'QNetworkInterface.InterfaceType' + Ieee802154 = ... # type: 'QNetworkInterface.InterfaceType' + SixLoWPAN = ... # type: 'QNetworkInterface.InterfaceType' + Ieee80216 = ... # type: 'QNetworkInterface.InterfaceType' + Ieee1394 = ... # type: 'QNetworkInterface.InterfaceType' + class InterfaceFlag(int): ... IsUp = ... # type: 'QNetworkInterface.InterfaceFlag' IsRunning = ... # type: 'QNetworkInterface.InterfaceFlag' @@ -989,6 +1075,8 @@ class QNetworkInterface(sip.simplewrapper): @typing.overload def __init__(self, other: 'QNetworkInterface') -> None: ... + def maximumTransmissionUnit(self) -> int: ... + def type(self) -> 'QNetworkInterface.InterfaceType': ... @staticmethod def interfaceNameFromIndex(index: int) -> str: ... @staticmethod @@ -1280,6 +1368,8 @@ class QNetworkRequest(sip.simplewrapper): HTTP2WasUsedAttribute = ... # type: 'QNetworkRequest.Attribute' OriginalContentLengthAttribute = ... # type: 'QNetworkRequest.Attribute' RedirectPolicyAttribute = ... # type: 'QNetworkRequest.Attribute' + Http2DirectAttribute = ... # type: 'QNetworkRequest.Attribute' + AutoDeleteReplyOnFinishAttribute = ... # type: 'QNetworkRequest.Attribute' User = ... # type: 'QNetworkRequest.Attribute' UserMax = ... # type: 'QNetworkRequest.Attribute' @@ -1293,12 +1383,20 @@ class QNetworkRequest(sip.simplewrapper): ContentDispositionHeader = ... # type: 'QNetworkRequest.KnownHeaders' UserAgentHeader = ... # type: 'QNetworkRequest.KnownHeaders' ServerHeader = ... # type: 'QNetworkRequest.KnownHeaders' + IfModifiedSinceHeader = ... # type: 'QNetworkRequest.KnownHeaders' + ETagHeader = ... # type: 'QNetworkRequest.KnownHeaders' + IfMatchHeader = ... # type: 'QNetworkRequest.KnownHeaders' + IfNoneMatchHeader = ... # type: 'QNetworkRequest.KnownHeaders' @typing.overload def __init__(self, url: QtCore.QUrl = ...) -> None: ... @typing.overload def __init__(self, other: 'QNetworkRequest') -> None: ... + def setHttp2Configuration(self, configuration: QHttp2Configuration) -> None: ... + def http2Configuration(self) -> QHttp2Configuration: ... + def setPeerVerifyName(self, peerName: str) -> None: ... + def peerVerifyName(self) -> str: ... def setMaximumRedirectsAllowed(self, maximumRedirectsAllowed: int) -> None: ... def maximumRedirectsAllowed(self) -> int: ... def swap(self, other: 'QNetworkRequest') -> None: ... @@ -1392,6 +1490,27 @@ class QNetworkSession(QtCore.QObject): def isOpen(self) -> bool: ... +class QOcspResponse(sip.simplewrapper): + + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, other: 'QOcspResponse') -> None: ... + + def __hash__(self) -> int: ... + def swap(self, other: 'QOcspResponse') -> None: ... + def subject(self) -> 'QSslCertificate': ... + def responder(self) -> 'QSslCertificate': ... + def revocationReason(self) -> QOcspRevocationReason: ... + def certificateStatus(self) -> QOcspCertificateStatus: ... + + +class QPasswordDigestor(sip.simplewrapper): + + def deriveKeyPbkdf2(self, algorithm: QtCore.QCryptographicHash.Algorithm, password: typing.Union[QtCore.QByteArray, bytes, bytearray], salt: typing.Union[QtCore.QByteArray, bytes, bytearray], iterations: int, dkLen: int) -> QtCore.QByteArray: ... + def deriveKeyPbkdf1(self, algorithm: QtCore.QCryptographicHash.Algorithm, password: typing.Union[QtCore.QByteArray, bytes, bytearray], salt: typing.Union[QtCore.QByteArray, bytes, bytearray], iterations: int, dkLen: int) -> QtCore.QByteArray: ... + + class QSsl(sip.simplewrapper): class SslOption(int): ... @@ -1417,16 +1536,24 @@ class QSsl(sip.simplewrapper): AnyProtocol = ... # type: 'QSsl.SslProtocol' TlsV1SslV3 = ... # type: 'QSsl.SslProtocol' SecureProtocols = ... # type: 'QSsl.SslProtocol' + DtlsV1_0 = ... # type: 'QSsl.SslProtocol' + DtlsV1_0OrLater = ... # type: 'QSsl.SslProtocol' + DtlsV1_2 = ... # type: 'QSsl.SslProtocol' + DtlsV1_2OrLater = ... # type: 'QSsl.SslProtocol' + TlsV1_3 = ... # type: 'QSsl.SslProtocol' + TlsV1_3OrLater = ... # type: 'QSsl.SslProtocol' class AlternativeNameEntryType(int): ... EmailEntry = ... # type: 'QSsl.AlternativeNameEntryType' DnsEntry = ... # type: 'QSsl.AlternativeNameEntryType' + IpAddressEntry = ... # type: 'QSsl.AlternativeNameEntryType' class KeyAlgorithm(int): ... Opaque = ... # type: 'QSsl.KeyAlgorithm' Rsa = ... # type: 'QSsl.KeyAlgorithm' Dsa = ... # type: 'QSsl.KeyAlgorithm' Ec = ... # type: 'QSsl.KeyAlgorithm' + Dh = ... # type: 'QSsl.KeyAlgorithm' class EncodingFormat(int): ... Pem = ... # type: 'QSsl.EncodingFormat' @@ -1472,6 +1599,8 @@ class QSslCertificate(sip.simplewrapper): @typing.overload def __init__(self, other: 'QSslCertificate') -> None: ... + def subjectDisplayName(self) -> str: ... + def issuerDisplayName(self) -> str: ... @staticmethod def importPkcs12(device: QtCore.QIODevice, key: 'QSslKey', certificate: 'QSslCertificate', caCertificates: typing.Optional[typing.Iterable['QSslCertificate']] = ..., passPhrase: typing.Union[QtCore.QByteArray, bytes, bytearray] = ...) -> bool: ... def __hash__(self) -> int: ... @@ -1565,6 +1694,11 @@ class QSslConfiguration(sip.simplewrapper): @typing.overload def __init__(self, other: 'QSslConfiguration') -> None: ... + def ocspStaplingEnabled(self) -> bool: ... + def setOcspStaplingEnabled(self, enable: bool) -> None: ... + def setBackendConfiguration(self, backendConfiguration: typing.Dict[typing.Union[QtCore.QByteArray, bytes, bytearray], typing.Any] = ...) -> None: ... + def setBackendConfigurationOption(self, name: typing.Union[QtCore.QByteArray, bytes, bytearray], value: typing.Any) -> None: ... + def backendConfiguration(self) -> typing.Dict[QtCore.QByteArray, typing.Any]: ... def setDiffieHellmanParameters(self, dhparams: 'QSslDiffieHellmanParameters') -> None: ... def diffieHellmanParameters(self) -> 'QSslDiffieHellmanParameters': ... def setPreSharedKeyIdentityHint(self, hint: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> None: ... @@ -1690,6 +1824,18 @@ class QSslError(sip.simplewrapper): HostNameMismatch = ... # type: 'QSslError.SslError' NoSslSupport = ... # type: 'QSslError.SslError' CertificateBlacklisted = ... # type: 'QSslError.SslError' + CertificateStatusUnknown = ... # type: 'QSslError.SslError' + OcspNoResponseFound = ... # type: 'QSslError.SslError' + OcspMalformedRequest = ... # type: 'QSslError.SslError' + OcspMalformedResponse = ... # type: 'QSslError.SslError' + OcspInternalError = ... # type: 'QSslError.SslError' + OcspTryLater = ... # type: 'QSslError.SslError' + OcspSigRequred = ... # type: 'QSslError.SslError' + OcspUnauthorized = ... # type: 'QSslError.SslError' + OcspResponseCannotBeTrusted = ... # type: 'QSslError.SslError' + OcspResponseCertIdUnknown = ... # type: 'QSslError.SslError' + OcspResponseExpired = ... # type: 'QSslError.SslError' + OcspStatusUnknown = ... # type: 'QSslError.SslError' @typing.overload def __init__(self) -> None: ... @@ -1768,6 +1914,7 @@ class QSslSocket(QTcpSocket): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def ocspResponses(self) -> typing.List[QOcspResponse]: ... @staticmethod def sslLibraryBuildVersionString() -> str: ... @staticmethod @@ -1780,7 +1927,7 @@ class QSslSocket(QTcpSocket): @staticmethod def sslLibraryVersionNumber() -> int: ... def disconnectFromHost(self) -> None: ... - def connectToHost(self, hostName: str, port: int, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... # type: ignore # fix issue #1 + def connectToHost(self, hostName: str, port: int, mode: typing.Union[QtCore.QIODevice.OpenMode, QtCore.QIODevice.OpenModeFlag] = ..., protocol: QAbstractSocket.NetworkLayerProtocol = ...) -> None: ... # type: ignore def resume(self) -> None: ... def setPeerVerifyName(self, hostName: str) -> None: ... def peerVerifyName(self) -> str: ... From 8bb98b3e6a45bf70fc7b4bd56833d7735d9ffff2 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:44:18 +0200 Subject: [PATCH 05/12] Update QtOpenGL.pyi --- PyQt5-stubs/QtOpenGL.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyQt5-stubs/QtOpenGL.pyi b/PyQt5-stubs/QtOpenGL.pyi index 3a7712d3..bd432266 100644 --- a/PyQt5-stubs/QtOpenGL.pyi +++ b/PyQt5-stubs/QtOpenGL.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtOpenGL module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # From 392d512e1f2258483c43c6f1b96f68f06c80feed Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:46:39 +0200 Subject: [PATCH 06/12] Update QtPrintSupport.pyi --- PyQt5-stubs/QtPrintSupport.pyi | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/PyQt5-stubs/QtPrintSupport.pyi b/PyQt5-stubs/QtPrintSupport.pyi index e83a9db0..0aba04aa 100644 --- a/PyQt5-stubs/QtPrintSupport.pyi +++ b/PyQt5-stubs/QtPrintSupport.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtPrintSupport module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -116,7 +116,7 @@ class QPrintDialog(QAbstractPrintDialog): @typing.overload def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def accepted(self) -> None: ... @typing.overload def accepted(self, printer: 'QPrinter') -> None: ... @@ -258,12 +258,14 @@ class QPrinter(QtGui.QPagedPaintDevice): @typing.overload def __init__(self, printer: 'QPrinterInfo', mode: 'QPrinter.PrinterMode' = ...) -> None: ... + def pdfVersion(self) -> QtGui.QPagedPaintDevice.PdfVersion: ... + def setPdfVersion(self, version: QtGui.QPagedPaintDevice.PdfVersion) -> None: ... def paperName(self) -> str: ... def setPaperName(self, paperName: str) -> None: ... def setEngines(self, printEngine: QPrintEngine, paintEngine: QtGui.QPaintEngine) -> None: ... def metric(self, a0: QtGui.QPaintDevice.PaintDeviceMetric) -> int: ... def getPageMargins(self, unit: 'QPrinter.Unit') -> typing.Tuple[float, float, float, float]: ... - def setPageMargins(self, left: float, top: float, right: float, bottom: float, unit: 'QPrinter.Unit') -> None: ... # type: ignore # fix issue #1 + def setPageMargins(self, left: float, top: float, right: float, bottom: float, unit: 'QPrinter.Unit') -> None: ... # type: ignore def setMargins(self, m: QtGui.QPagedPaintDevice.Margins) -> None: ... def printRange(self) -> 'QPrinter.PrintRange': ... def setPrintRange(self, range: 'QPrinter.PrintRange') -> None: ... @@ -342,6 +344,8 @@ class QPrinterInfo(sip.simplewrapper): @typing.overload def __init__(self, printer: QPrinter) -> None: ... + def supportedColorModes(self) -> typing.List[QPrinter.ColorMode]: ... + def defaultColorMode(self) -> QPrinter.ColorMode: ... def supportedDuplexModes(self) -> typing.List[QPrinter.DuplexMode]: ... def defaultDuplexMode(self) -> QPrinter.DuplexMode: ... @staticmethod @@ -379,7 +383,7 @@ class QPrintPreviewDialog(QtWidgets.QDialog): @typing.overload def __init__(self, printer: QPrinter, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - paintRequested: QtCore.pyqtSignal # fix issue #5 + paintRequested: QtCore.pyqtSignal def done(self, result: int) -> None: ... def printer(self) -> QPrinter: ... @@ -407,12 +411,9 @@ class QPrintPreviewWidget(QtWidgets.QWidget): @typing.overload def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - previewChanged: QtCore.pyqtSignal # fix issue #5 - paintRequested: QtCore.pyqtSignal # fix issue #5 - def pageCount(self) -> int: ... - # def previewChanged(self) -> None: ... - # def paintRequested(self, printer: QPrinter) -> None: ... + previewChanged: QtCore.pyqtSignal + paintRequested: QtCore.pyqtSignal def updatePreview(self) -> None: ... def setAllPagesViewMode(self) -> None: ... def setFacingPagesViewMode(self) -> None: ... From f5447886a3c3b483d90c8432277cb81c83204bba Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:48:22 +0200 Subject: [PATCH 07/12] Update QtSql.pyi --- PyQt5-stubs/QtSql.pyi | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/PyQt5-stubs/QtSql.pyi b/PyQt5-stubs/QtSql.pyi index 36fa69ba..96ea5f75 100644 --- a/PyQt5-stubs/QtSql.pyi +++ b/PyQt5-stubs/QtSql.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtSql module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -77,10 +77,14 @@ class QSqlDatabase(sip.simplewrapper): def removeDatabase(connectionName: str) -> None: ... @staticmethod def database(connectionName: str = ..., open: bool = ...) -> 'QSqlDatabase': ... + @typing.overload @staticmethod def cloneDatabase(other: 'QSqlDatabase', connectionName: str) -> 'QSqlDatabase': ... @typing.overload @staticmethod + def cloneDatabase(other: str, connectionName: str) -> 'QSqlDatabase': ... + @typing.overload + @staticmethod def addDatabase(type: str, connectionName: str = ...) -> 'QSqlDatabase': ... @typing.overload @staticmethod @@ -216,6 +220,7 @@ class QSqlError(sip.simplewrapper): @typing.overload def __init__(self, other: 'QSqlError') -> None: ... + def swap(self, other: 'QSqlError') -> None: ... def nativeErrorCode(self) -> str: ... def isValid(self) -> bool: ... def text(self) -> str: ... @@ -239,8 +244,12 @@ class QSqlField(sip.simplewrapper): @typing.overload def __init__(self, fieldName: str = ..., type: QtCore.QVariant.Type = ...) -> None: ... @typing.overload + def __init__(self, fieldName: str, type: QtCore.QVariant.Type, tableName: str) -> None: ... + @typing.overload def __init__(self, other: 'QSqlField') -> None: ... + def tableName(self) -> str: ... + def setTableName(self, tableName: str) -> None: ... def isValid(self) -> bool: ... def isGenerated(self) -> bool: ... def typeID(self) -> int: ... @@ -412,6 +421,7 @@ class QSqlQueryModel(QtCore.QAbstractTableModel): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def roleNames(self) -> typing.Dict[int, QtCore.QByteArray]: ... def endRemoveColumns(self) -> None: ... def beginRemoveColumns(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ... def endInsertColumns(self) -> None: ... @@ -451,6 +461,7 @@ class QSqlRelationalDelegate(QtWidgets.QItemDelegate): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def setEditorData(self, editor: QtWidgets.QWidget, index: QtCore.QModelIndex) -> None: ... def setModelData(self, editor: QtWidgets.QWidget, model: QtCore.QAbstractItemModel, index: QtCore.QModelIndex) -> None: ... def createEditor(self, parent: QtWidgets.QWidget, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtWidgets.QWidget: ... @@ -481,13 +492,13 @@ class QSqlTableModel(QSqlQueryModel): def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., db: QSqlDatabase = ...) -> None: ... def primaryValues(self, row: int) -> QSqlRecord: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def record(self) -> QSqlRecord: ... @typing.overload def record(self, row: int) -> QSqlRecord: ... def selectRow(self, row: int) -> bool: ... def indexInQuery(self, item: QtCore.QModelIndex) -> QtCore.QModelIndex: ... - def setQuery(self, query: QSqlQuery) -> None: ... # type: ignore # fix issue #1 + def setQuery(self, query: QSqlQuery) -> None: ... # type: ignore def setPrimaryKey(self, key: QSqlIndex) -> None: ... def selectStatement(self) -> str: ... def orderByClause(self) -> str: ... @@ -512,7 +523,7 @@ class QSqlTableModel(QSqlQueryModel): def setFilter(self, filter: str) -> None: ... def filter(self) -> str: ... def setSort(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... - def sort(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... # type: ignore # fix issue #1 + def sort(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... # type: ignore def fieldIndex(self, fieldName: str) -> int: ... def database(self) -> QSqlDatabase: ... def primaryKey(self) -> QSqlIndex: ... From 7b89f457ec57fa044b4467a8f11f44d378a143df Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 15:50:22 +0200 Subject: [PATCH 08/12] Update QtTest.pyi --- PyQt5-stubs/QtTest.pyi | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/PyQt5-stubs/QtTest.pyi b/PyQt5-stubs/QtTest.pyi index 8e6b8582..e017ea61 100644 --- a/PyQt5-stubs/QtTest.pyi +++ b/PyQt5-stubs/QtTest.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtTest module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -41,9 +41,28 @@ PYQT_OPENGL_BOUND_ARRAY = typing.Union[typing.Sequence[int], typing.Sequence[float], sip.Buffer, int, None] +class QAbstractItemModelTester(QtCore.QObject): + + class FailureReportingMode(int): ... + QtTest = ... # type: 'QAbstractItemModelTester.FailureReportingMode' + Warning = ... # type: 'QAbstractItemModelTester.FailureReportingMode' + Fatal = ... # type: 'QAbstractItemModelTester.FailureReportingMode' + + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + @typing.overload + def __init__(self, model: QtCore.QAbstractItemModel, mode: 'QAbstractItemModelTester.FailureReportingMode', parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + + def failureReportingMode(self) -> 'QAbstractItemModelTester.FailureReportingMode': ... + def model(self) -> QtCore.QAbstractItemModel: ... + + class QSignalSpy(QtCore.QObject): - def __init__(self, signal: QtCore.pyqtBoundSignal) -> None: ... # add QtCore + @typing.overload + def __init__(self, signal: QtCore.pyqtBoundSignal) -> None: ... + @typing.overload + def __init__(self, obj: QtCore.QObject, signal: QtCore.QMetaMethod) -> None: ... def __delitem__(self, i: int) -> None: ... def __setitem__(self, i: int, value: typing.Iterable[typing.Any]) -> None: ... @@ -115,6 +134,10 @@ class QTest(sip.simplewrapper): @typing.overload def mouseClick(self, window: QtGui.QWindow, button: QtCore.Qt.MouseButton, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., pos: QtCore.QPoint = ..., delay: int = ...) -> None: ... @typing.overload + def keySequence(self, widget: QtWidgets.QWidget, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + @typing.overload + def keySequence(self, window: QtGui.QWindow, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... + @typing.overload def keyRelease(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload def keyRelease(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... From ac98700d3d9fcc322bc6e35fcf545b1c9357ff7a Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 16:34:04 +0200 Subject: [PATCH 09/12] Update QtWidgets.pyi --- PyQt5-stubs/QtWidgets.pyi | 980 ++++++++++++++------------------------ 1 file changed, 352 insertions(+), 628 deletions(-) diff --git a/PyQt5-stubs/QtWidgets.pyi b/PyQt5-stubs/QtWidgets.pyi index c0dea280..ec3538f7 100644 --- a/PyQt5-stubs/QtWidgets.pyi +++ b/PyQt5-stubs/QtWidgets.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtWidgets module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -64,16 +64,13 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): def __init__(self, parent: typing.Optional['QWidget'] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - windowIconChanged: QtCore.pyqtSignal - windowTitleChanged: QtCore.pyqtSignal - windowIconTextChanged: QtCore.pyqtSignal - + def screen(self) -> QtGui.QScreen: ... def setWindowFlag(self, a0: QtCore.Qt.WindowType, on: bool = ...) -> None: ... def hasTabletTracking(self) -> bool: ... def setTabletTracking(self, enable: bool) -> None: ... - # def windowIconTextChanged(self, iconText: str) -> None: ... - # def windowIconChanged(self, icon: QtGui.QIcon) -> None: ... - # def windowTitleChanged(self, title: str) -> None: ... + windowIconChanged: QtCore.pyqtSignal + windowTitleChanged: QtCore.pyqtSignal + windowIconTextChanged: QtCore.pyqtSignal def toolTipDuration(self) -> int: ... def setToolTipDuration(self, msec: int) -> None: ... def initPainter(self, painter: QtGui.QPainter) -> None: ... @@ -174,7 +171,7 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def event(self, a0: QtCore.QEvent) -> bool: ... - customContextMenuRequested: QtCore.pyqtSignal # fix issue #5 + customContextMenuRequested: QtCore.pyqtSignal def isAncestorOf(self, child: 'QWidget') -> bool: ... def ensurePolished(self) -> None: ... def paintEngine(self) -> QtGui.QPaintEngine: ... @@ -201,7 +198,7 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): def scroll(self, dx: int, dy: int) -> None: ... @typing.overload def scroll(self, dx: int, dy: int, a2: QtCore.QRect) -> None: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def setParent(self, parent: 'QWidget') -> None: ... @typing.overload def setParent(self, parent: 'QWidget', f: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType]) -> None: ... @@ -402,11 +399,6 @@ class QAbstractButton(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - toggled: QtCore.pyqtSignal # fix issue #5 - pressed: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - released: QtCore.pyqtSignal - def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... def changeEvent(self, e: QtCore.QEvent) -> None: ... def focusOutEvent(self, e: QtGui.QFocusEvent) -> None: ... @@ -421,10 +413,10 @@ class QAbstractButton(QWidget): def checkStateSet(self) -> None: ... def hitButton(self, pos: QtCore.QPoint) -> bool: ... def paintEvent(self, e: QtGui.QPaintEvent) -> None: ... - # def toggled(self, checked: bool) -> None: ... - # def clicked(self, checked: bool = ...) -> None: ... - # def released(self) -> None: ... - # def pressed(self) -> None: ... + toggled: QtCore.pyqtSignal + clicked: QtCore.pyqtSignal + released: QtCore.pyqtSignal + pressed: QtCore.pyqtSignal def setChecked(self, a0: bool) -> None: ... def toggle(self) -> None: ... def click(self) -> None: ... @@ -467,10 +459,6 @@ class QAbstractItemDelegate(QtCore.QObject): sizeHintChanged: QtCore.pyqtSignal closeEditor: QtCore.pyqtSignal commitData: QtCore.pyqtSignal - - # def sizeHintChanged(self, a0: QtCore.QModelIndex) -> None: ... - # def closeEditor(self, editor: QWidget, hint: 'QAbstractItemDelegate.EndEditHint' = ...) -> None: ... - # def commitData(self, editor: QWidget) -> None: ... def helpEvent(self, event: QtGui.QHelpEvent, view: 'QAbstractItemView', option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... def editorEvent(self, event: QtCore.QEvent, model: QtCore.QAbstractItemModel, option: 'QStyleOptionViewItem', index: QtCore.QModelIndex) -> bool: ... def destroyEditor(self, editor: QWidget, index: QtCore.QModelIndex) -> None: ... @@ -663,10 +651,12 @@ class QAbstractItemView(QAbstractScrollArea): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... + def isPersistentEditorOpen(self, index: QtCore.QModelIndex) -> bool: ... def resetHorizontalScrollMode(self) -> None: ... def resetVerticalScrollMode(self) -> None: ... def defaultDropAction(self) -> QtCore.Qt.DropAction: ... def setDefaultDropAction(self, dropAction: QtCore.Qt.DropAction) -> None: ... + def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... def viewportSizeHint(self) -> QtCore.QSize: ... def inputMethodEvent(self, event: QtGui.QInputMethodEvent) -> None: ... def focusNextPrevChild(self, next: bool) -> bool: ... @@ -718,7 +708,7 @@ class QAbstractItemView(QAbstractScrollArea): def verticalOffset(self) -> int: ... def horizontalOffset(self) -> int: ... def moveCursor(self, cursorAction: 'QAbstractItemView.CursorAction', modifiers: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... - iconSizeChanged: QtCore.pyqtSignal # fix issue #5 + iconSizeChanged: QtCore.pyqtSignal viewportEntered: QtCore.pyqtSignal entered: QtCore.pyqtSignal activated: QtCore.pyqtSignal @@ -740,7 +730,7 @@ class QAbstractItemView(QAbstractScrollArea): def rowsAboutToBeRemoved(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def update(self) -> None: ... @typing.overload def update(self, index: QtCore.QModelIndex) -> None: ... @@ -819,13 +809,6 @@ class QAbstractSlider(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - actionTriggered: QtCore.pyqtSignal - rangeChanged: QtCore.pyqtSignal - sliderReleased: QtCore.pyqtSignal - sliderMoved: QtCore.pyqtSignal - sliderPressed: QtCore.pyqtSignal - valueChanged: QtCore.pyqtSignal - def changeEvent(self, e: QtCore.QEvent) -> None: ... def wheelEvent(self, e: QtGui.QWheelEvent) -> None: ... def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... @@ -834,12 +817,12 @@ class QAbstractSlider(QWidget): def sliderChange(self, change: 'QAbstractSlider.SliderChange') -> None: ... def repeatAction(self) -> 'QAbstractSlider.SliderAction': ... def setRepeatAction(self, action: 'QAbstractSlider.SliderAction', thresholdTime: int = ..., repeatTime: int = ...) -> None: ... - # def actionTriggered(self, action: int) -> None: ... - # def rangeChanged(self, min: int, max: int) -> None: ... - # def sliderReleased(self) -> None: ... - # def sliderMoved(self, position: int) -> None: ... - # def sliderPressed(self) -> None: ... - # def valueChanged(self, value: int) -> None: ... + actionTriggered: QtCore.pyqtSignal + rangeChanged: QtCore.pyqtSignal + sliderReleased: QtCore.pyqtSignal + sliderMoved: QtCore.pyqtSignal + sliderPressed: QtCore.pyqtSignal + valueChanged: QtCore.pyqtSignal def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ... def setValue(self, a0: int) -> None: ... def triggerAction(self, action: 'QAbstractSlider.SliderAction') -> None: ... @@ -868,6 +851,10 @@ class QAbstractSlider(QWidget): class QAbstractSpinBox(QWidget): + class StepType(int): ... + DefaultStepType = ... # type: 'QAbstractSpinBox.StepType' + AdaptiveDecimalStepType = ... # type: 'QAbstractSpinBox.StepType' + class CorrectionMode(int): ... CorrectToPreviousValue = ... # type: 'QAbstractSpinBox.CorrectionMode' CorrectToNearestValue = ... # type: 'QAbstractSpinBox.CorrectionMode' @@ -899,8 +886,6 @@ class QAbstractSpinBox(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - editingFinished: QtCore.pyqtSignal - def isGroupSeparatorShown(self) -> bool: ... def setGroupSeparatorShown(self, shown: bool) -> None: ... def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ... @@ -931,7 +916,7 @@ class QAbstractSpinBox(QWidget): def keyReleaseEvent(self, e: QtGui.QKeyEvent) -> None: ... def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... def resizeEvent(self, e: QtGui.QResizeEvent) -> None: ... - # def editingFinished(self) -> None: ... + editingFinished: QtCore.pyqtSignal def clear(self) -> None: ... def selectAll(self) -> None: ... def stepDown(self) -> None: ... @@ -978,11 +963,6 @@ class QAction(QtCore.QObject): Trigger = ... # type: 'QAction.ActionEvent' Hover = ... # type: 'QAction.ActionEvent' - triggered: QtCore.pyqtSignal # fix issue #5 - toggled: QtCore.pyqtSignal - hovered: QtCore.pyqtSignal - changed: QtCore.pyqtSignal - @typing.overload def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... @typing.overload @@ -990,6 +970,8 @@ class QAction(QtCore.QObject): @typing.overload def __init__(self, icon: QtGui.QIcon, text: str, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def isShortcutVisibleInContextMenu(self) -> bool: ... + def setShortcutVisibleInContextMenu(self, show: bool) -> None: ... def priority(self) -> 'QAction.Priority': ... def setPriority(self, priority: 'QAction.Priority') -> None: ... def isIconVisibleInMenu(self) -> bool: ... @@ -1005,10 +987,10 @@ class QAction(QtCore.QObject): def setShortcuts(self, shortcuts: typing.Iterable[typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]]) -> None: ... @typing.overload def setShortcuts(self, a0: QtGui.QKeySequence.StandardKey) -> None: ... - # def toggled(self, a0: bool) -> None: ... - # def hovered(self) -> None: ... - # def triggered(self, checked: bool = ...) -> None: ... - # def changed(self) -> None: ... + toggled: QtCore.pyqtSignal + hovered: QtCore.pyqtSignal + triggered: QtCore.pyqtSignal + changed: QtCore.pyqtSignal def setVisible(self, a0: bool) -> None: ... def setDisabled(self, b: bool) -> None: ... def setEnabled(self, a0: bool) -> None: ... @@ -1055,13 +1037,17 @@ class QAction(QtCore.QObject): class QActionGroup(QtCore.QObject): + class ExclusionPolicy(int): ... + None = ... # type: 'QActionGroup.ExclusionPolicy' + Exclusive = ... # type: 'QActionGroup.ExclusionPolicy' + ExclusiveOptional = ... # type: 'QActionGroup.ExclusionPolicy' + def __init__(self, parent: QtCore.QObject) -> None: ... + def setExclusionPolicy(self, policy: 'QActionGroup.ExclusionPolicy') -> None: ... + def exclusionPolicy(self) -> 'QActionGroup.ExclusionPolicy': ... hovered: QtCore.pyqtSignal triggered: QtCore.pyqtSignal - - # def hovered(self, a0: QAction) -> None: ... - # def triggered(self, a0: QAction) -> None: ... def setExclusive(self, a0: bool) -> None: ... def setVisible(self, a0: bool) -> None: ... def setDisabled(self, b: bool) -> None: ... @@ -1089,8 +1075,6 @@ class QApplication(QtGui.QGuiApplication): def __init__(self, argv: typing.List[str]) -> None: ... - focusChanged: QtCore.pyqtSignal - def event(self, a0: QtCore.QEvent) -> bool: ... def setStyleSheet(self, sheet: str) -> None: ... def setAutoSipEnabled(self, enabled: bool) -> None: ... @@ -1098,7 +1082,7 @@ class QApplication(QtGui.QGuiApplication): def closeAllWindows() -> None: ... @staticmethod def aboutQt() -> None: ... - # def focusChanged(self, old: QWidget, now: QWidget) -> None: ... + focusChanged: QtCore.pyqtSignal def styleSheet(self) -> str: ... def autoSipEnabled(self) -> bool: ... def notify(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... @@ -1142,7 +1126,7 @@ class QApplication(QtGui.QGuiApplication): def alert(widget: QWidget, msecs: int = ...) -> None: ... @staticmethod def beep() -> None: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore @staticmethod def topLevelAt(p: QtCore.QPoint) -> QWidget: ... @typing.overload @@ -1279,7 +1263,10 @@ class QLayout(QtCore.QObject, QLayoutItem): def isEmpty(self) -> bool: ... def __len__(self) -> int: ... def count(self) -> int: ... + @typing.overload def indexOf(self, a0: QWidget) -> int: ... + @typing.overload + def indexOf(self, a0: QLayoutItem) -> int: ... def takeAt(self, index: int) -> QLayoutItem: ... def itemAt(self, index: int) -> QLayoutItem: ... def setGeometry(self, a0: QtCore.QRect) -> None: ... @@ -1382,23 +1369,6 @@ class QButtonGroup(QtCore.QObject): buttonReleased: QtCore.pyqtSignal buttonPressed: QtCore.pyqtSignal buttonClicked: QtCore.pyqtSignal - - # @typing.overload - # def buttonToggled(self, a0: QAbstractButton, a1: bool) -> None: ... - # @typing.overload - # def buttonToggled(self, a0: int, a1: bool) -> None: ... - # @typing.overload - # def buttonReleased(self, a0: QAbstractButton) -> None: ... - # @typing.overload - # def buttonReleased(self, a0: int) -> None: ... - # @typing.overload - # def buttonPressed(self, a0: QAbstractButton) -> None: ... - # @typing.overload - # def buttonPressed(self, a0: int) -> None: ... - # @typing.overload - # def buttonClicked(self, a0: QAbstractButton) -> None: ... - # @typing.overload - # def buttonClicked(self, a0: int) -> None: ... def checkedId(self) -> int: ... def id(self, button: QAbstractButton) -> int: ... def setId(self, button: QAbstractButton, id: int) -> None: ... @@ -1429,21 +1399,18 @@ class QCalendarWidget(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - activated: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - currentPageChanged: QtCore.pyqtSignal - selectionChanged: QtCore.pyqtSignal - + def setCalendar(self, calendar: QtCore.QCalendar) -> None: ... + def calendar(self) -> QtCore.QCalendar: ... def setNavigationBarVisible(self, visible: bool) -> None: ... def setDateEditAcceptDelay(self, delay: int) -> None: ... def dateEditAcceptDelay(self) -> int: ... def setDateEditEnabled(self, enable: bool) -> None: ... def isDateEditEnabled(self) -> bool: ... def isNavigationBarVisible(self) -> bool: ... - # def selectionChanged(self) -> None: ... - # def currentPageChanged(self, year: int, month: int) -> None: ... - # def clicked(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... - # def activated(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... + selectionChanged: QtCore.pyqtSignal + currentPageChanged: QtCore.pyqtSignal + clicked: QtCore.pyqtSignal + activated: QtCore.pyqtSignal def showToday(self) -> None: ... def showSelectedDate(self) -> None: ... def showPreviousYear(self) -> None: ... @@ -1493,8 +1460,6 @@ class QCalendarWidget(QWidget): class QCheckBox(QAbstractButton): - stateChanged: QtCore.pyqtSignal # fix issue #5 - @typing.overload def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload @@ -1507,7 +1472,7 @@ class QCheckBox(QAbstractButton): def nextCheckState(self) -> None: ... def checkStateSet(self) -> None: ... def hitButton(self, pos: QtCore.QPoint) -> bool: ... - # def stateChanged(self, a0: int) -> None: ... + stateChanged: QtCore.pyqtSignal def minimumSizeHint(self) -> QtCore.QSize: ... def setCheckState(self, state: QtCore.Qt.CheckState) -> None: ... def checkState(self) -> QtCore.Qt.CheckState: ... @@ -1524,19 +1489,15 @@ class QDialog(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - accepted: QtCore.pyqtSignal #fix issue #5 - finished: QtCore.pyqtSignal - rejected: QtCore.pyqtSignal - def eventFilter(self, a0: QtCore.QObject, a1: QtCore.QEvent) -> bool: ... def contextMenuEvent(self, a0: QtGui.QContextMenuEvent) -> None: ... def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... def showEvent(self, a0: QtGui.QShowEvent) -> None: ... def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... - # def rejected(self) -> None: ... - # def finished(self, result: int) -> None: ... - # def accepted(self) -> None: ... + rejected: QtCore.pyqtSignal + finished: QtCore.pyqtSignal + accepted: QtCore.pyqtSignal def open(self) -> None: ... def reject(self) -> None: ... def accept(self) -> None: ... @@ -1580,9 +1541,6 @@ class QColorDialog(QDialog): @typing.overload def __init__(self, initial: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor], parent: typing.Optional[QWidget] = ...) -> None: ... - colorSelected: QtCore.pyqtSignal - currentColorChanged: QtCore.pyqtSignal - def setVisible(self, visible: bool) -> None: ... @typing.overload def open(self) -> None: ... @@ -1597,8 +1555,8 @@ class QColorDialog(QDialog): def setCurrentColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... def done(self, result: int) -> None: ... def changeEvent(self, e: QtCore.QEvent) -> None: ... - # def currentColorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... - # def colorSelected(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + currentColorChanged: QtCore.pyqtSignal + colorSelected: QtCore.pyqtSignal @staticmethod def setStandardColor(index: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... @staticmethod @@ -1616,9 +1574,7 @@ class QColorDialog(QDialog): class QColumnView(QAbstractItemView): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - - updatePreviewWidget: QtCore.pyqtSignal - + def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ... def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... def scrollContentsBy(self, dx: int, dy: int) -> None: ... @@ -1631,7 +1587,7 @@ class QColumnView(QAbstractItemView): def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... def initializeColumn(self, column: QAbstractItemView) -> None: ... def createColumn(self, rootIndex: QtCore.QModelIndex) -> QAbstractItemView: ... - # def updatePreviewWidget(self, index: QtCore.QModelIndex) -> None: ... + updatePreviewWidget: QtCore.pyqtSignal def selectAll(self) -> None: ... def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... @@ -1667,11 +1623,8 @@ class QComboBox(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - currentIndexChanged: QtCore.pyqtSignal # fix issue #5 - currentTextChanged: QtCore.pyqtSignal - activated: QtCore.pyqtSignal - editTextChanged: QtCore.pyqtSignal - + def textHighlighted(self, a0: str) -> None: ... + def textActivated(self, a0: str) -> None: ... def currentData(self, role: int = ...) -> typing.Any: ... @typing.overload def inputMethodQuery(self, a0: QtCore.Qt.InputMethodQuery) -> typing.Any: ... @@ -1696,16 +1649,10 @@ class QComboBox(QWidget): def highlighted(self, index: int) -> None: ... @typing.overload def highlighted(self, a0: str) -> None: ... - # def currentTextChanged(self, a0: str) -> None: ... - # @typing.overload - # def currentIndexChanged(self, index: int) -> None: ... - # @typing.overload - # def currentIndexChanged(self, a0: str) -> None: ... - # @typing.overload - # def activated(self, index: int) -> None: ... - # @typing.overload - # def activated(self, a0: str) -> None: ... - # def editTextChanged(self, a0: str) -> None: ... + currentTextChanged: QtCore.pyqtSignal + currentIndexChanged: QtCore.pyqtSignal + activated: QtCore.pyqtSignal + editTextChanged: QtCore.pyqtSignal def setCurrentText(self, text: str) -> None: ... def setEditText(self, text: str) -> None: ... def clearEditText(self) -> None: ... @@ -1900,6 +1847,13 @@ class QStyle(QtCore.QObject): SP_MediaVolumeMuted = ... # type: 'QStyle.StandardPixmap' SP_DirLinkOpenIcon = ... # type: 'QStyle.StandardPixmap' SP_LineEditClearButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogYesToAllButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogNoToAllButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogSaveAllButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogAbortButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogRetryButton = ... # type: 'QStyle.StandardPixmap' + SP_DialogIgnoreButton = ... # type: 'QStyle.StandardPixmap' + SP_RestoreDefaultsButton = ... # type: 'QStyle.StandardPixmap' SP_CustomBase = ... # type: 'QStyle.StandardPixmap' class StyleHint(int): ... @@ -2016,6 +1970,11 @@ class QStyle(QtCore.QObject): SH_Menu_SubMenuResetWhenReenteringParent = ... # type: 'QStyle.StyleHint' SH_Menu_SubMenuDontStartSloppyOnLeave = ... # type: 'QStyle.StyleHint' SH_ItemView_ScrollMode = ... # type: 'QStyle.StyleHint' + SH_TitleBar_ShowToolTipsOnButtons = ... # type: 'QStyle.StyleHint' + SH_Widget_Animation_Duration = ... # type: 'QStyle.StyleHint' + SH_ComboBox_AllowWheelScrolling = ... # type: 'QStyle.StyleHint' + SH_SpinBox_ButtonsInsideFrame = ... # type: 'QStyle.StyleHint' + SH_SpinBox_StepModifier = ... # type: 'QStyle.StyleHint' SH_CustomBase = ... # type: 'QStyle.StyleHint' class ContentsType(int): ... @@ -2524,21 +2483,12 @@ class QCompleter(QtCore.QObject): @typing.overload def __init__(self, list: typing.Iterable[str], parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - highlighted: QtCore.pyqtSignal - activated: QtCore.pyqtSignal - def filterMode(self) -> QtCore.Qt.MatchFlags: ... def setFilterMode(self, filterMode: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag]) -> None: ... def setMaxVisibleItems(self, maxItems: int) -> None: ... def maxVisibleItems(self) -> int: ... - # @typing.overload - # def highlighted(self, text: str) -> None: ... - # @typing.overload - # def highlighted(self, index: QtCore.QModelIndex) -> None: ... - # @typing.overload - # def activated(self, text: str) -> None: ... - # @typing.overload - # def activated(self, index: QtCore.QModelIndex) -> None: ... + highlighted: QtCore.pyqtSignal + activated: QtCore.pyqtSignal def event(self, a0: QtCore.QEvent) -> bool: ... def eventFilter(self, o: QtCore.QObject, e: QtCore.QEvent) -> bool: ... def setWrapAround(self, wrap: bool) -> None: ... @@ -2581,8 +2531,6 @@ class QDataWidgetMapper(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... currentIndexChanged: QtCore.pyqtSignal - - # def currentIndexChanged(self, index: int) -> None: ... def toPrevious(self) -> None: ... def toNext(self) -> None: ... def toLast(self) -> None: ... @@ -2652,10 +2600,8 @@ class QDateTimeEdit(QAbstractSpinBox): @typing.overload def __init__(self, time: typing.Union[QtCore.QTime, datetime.time], parent: typing.Optional[QWidget] = ...) -> None: ... - dateChanged: QtCore.pyqtSignal - timeChanged: QtCore.pyqtSignal - dateTimeChanged: QtCore.pyqtSignal - + def setCalendar(self, calendar: QtCore.QCalendar) -> None: ... + def calendar(self) -> QtCore.QCalendar: ... def setTimeSpec(self, spec: QtCore.Qt.TimeSpec) -> None: ... def timeSpec(self) -> QtCore.Qt.TimeSpec: ... def setCalendarWidget(self, calendarWidget: QCalendarWidget) -> None: ... @@ -2682,9 +2628,9 @@ class QDateTimeEdit(QAbstractSpinBox): def setTime(self, time: typing.Union[QtCore.QTime, datetime.time]) -> None: ... def setDate(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... def setDateTime(self, dateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... - # def dateChanged(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ... - # def timeChanged(self, date: typing.Union[QtCore.QTime, datetime.time]) -> None: ... - # def dateTimeChanged(self, date: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ... + dateChanged: QtCore.pyqtSignal + timeChanged: QtCore.pyqtSignal + dateTimeChanged: QtCore.pyqtSignal def sectionCount(self) -> int: ... def setCurrentSectionIndex(self, index: int) -> None: ... def currentSectionIndex(self) -> int: ... @@ -2831,6 +2777,7 @@ class QDialogButtonBox(QWidget): MacLayout = ... # type: 'QDialogButtonBox.ButtonLayout' KdeLayout = ... # type: 'QDialogButtonBox.ButtonLayout' GnomeLayout = ... # type: 'QDialogButtonBox.ButtonLayout' + AndroidLayout = ... # type: 'QDialogButtonBox.ButtonLayout' class StandardButtons(sip.simplewrapper): @@ -2847,11 +2794,6 @@ class QDialogButtonBox(QWidget): def __index__(self) -> int: ... def __int__(self) -> int: ... - rejected: QtCore.pyqtSignal # fix issue #5 - helpRequested: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - accepted: QtCore.pyqtSignal - @typing.overload def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload @@ -2863,10 +2805,10 @@ class QDialogButtonBox(QWidget): def event(self, event: QtCore.QEvent) -> bool: ... def changeEvent(self, event: QtCore.QEvent) -> None: ... - # def rejected(self) -> None: ... - # def helpRequested(self) -> None: ... - # def clicked(self, button: QAbstractButton) -> None: ... - # def accepted(self) -> None: ... + rejected: QtCore.pyqtSignal + helpRequested: QtCore.pyqtSignal + clicked: QtCore.pyqtSignal + accepted: QtCore.pyqtSignal def centerButtons(self) -> bool: ... def setCenterButtons(self, center: bool) -> None: ... def button(self, which: 'QDialogButtonBox.StandardButton') -> QPushButton: ... @@ -2974,22 +2916,16 @@ class QDockWidget(QWidget): @typing.overload def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - visibilityChanged: QtCore.pyqtSignal - dockLocationChanged: QtCore.pyqtSignal - allowedAreasChanged: QtCore.pyqtSignal - topLevelChanged: QtCore.pyqtSignal - featuresChanged: QtCore.pyqtSignal - def event(self, event: QtCore.QEvent) -> bool: ... def paintEvent(self, event: QtGui.QPaintEvent) -> None: ... def closeEvent(self, event: QtGui.QCloseEvent) -> None: ... def changeEvent(self, event: QtCore.QEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionDockWidget') -> None: ... - # def visibilityChanged(self, visible: bool) -> None: ... - # def dockLocationChanged(self, area: QtCore.Qt.DockWidgetArea) -> None: ... - # def allowedAreasChanged(self, allowedAreas: typing.Union[QtCore.Qt.DockWidgetAreas, QtCore.Qt.DockWidgetArea]) -> None: ... - # def topLevelChanged(self, topLevel: bool) -> None: ... - # def featuresChanged(self, features: typing.Union['QDockWidget.DockWidgetFeatures', 'QDockWidget.DockWidgetFeature']) -> None: ... + visibilityChanged: QtCore.pyqtSignal + dockLocationChanged: QtCore.pyqtSignal + allowedAreasChanged: QtCore.pyqtSignal + topLevelChanged: QtCore.pyqtSignal + featuresChanged: QtCore.pyqtSignal def titleBarWidget(self) -> QWidget: ... def setTitleBarWidget(self, widget: QWidget) -> None: ... def toggleViewAction(self) -> QAction: ... @@ -3072,16 +3008,8 @@ class QFileDialog(QDialog): @typing.overload def __init__(self, parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ...) -> None: ... - currentChanged: QtCore.pyqtSignal - currentUrlChanged: QtCore.pyqtSignal - directoryEntered: QtCore.pyqtSignal - directoryUrlEntered: QtCore.pyqtSignal - fileSelected: QtCore.pyqtSignal - filesSelected: QtCore.pyqtSignal - filterSelected: QtCore.pyqtSignal - urlSelected: QtCore.pyqtSignal - urlsSelected: QtCore.pyqtSignal - + @staticmethod + def saveFileContent(fileContent: typing.Union[QtCore.QByteArray, bytes, bytearray], fileNameHint: str = ...) -> None: ... def selectedMimeTypeFilter(self) -> str: ... def supportedSchemes(self) -> typing.List[str]: ... def setSupportedSchemes(self, schemes: typing.Iterable[str]) -> None: ... @@ -3091,10 +3019,10 @@ class QFileDialog(QDialog): def getOpenFileUrls(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[typing.List[QtCore.QUrl], str]: ... @staticmethod def getOpenFileUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., filter: str = ..., initialFilter: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> typing.Tuple[QtCore.QUrl, str]: ... - # def directoryUrlEntered(self, directory: QtCore.QUrl) -> None: ... - # def currentUrlChanged(self, url: QtCore.QUrl) -> None: ... - # def urlsSelected(self, urls: typing.Iterable[QtCore.QUrl]) -> None: ... - # def urlSelected(self, url: QtCore.QUrl) -> None: ... + directoryUrlEntered: QtCore.pyqtSignal + currentUrlChanged: QtCore.pyqtSignal + urlsSelected: QtCore.pyqtSignal + urlSelected: QtCore.pyqtSignal def selectMimeTypeFilter(self, filter: str) -> None: ... def mimeTypeFilters(self) -> typing.List[str]: ... def setMimeTypeFilters(self, filters: typing.Iterable[str]) -> None: ... @@ -3137,11 +3065,11 @@ class QFileDialog(QDialog): def getExistingDirectoryUrl(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: QtCore.QUrl = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ..., supportedSchemes: typing.Iterable[str] = ...) -> QtCore.QUrl: ... @staticmethod def getExistingDirectory(parent: typing.Optional[QWidget] = ..., caption: str = ..., directory: str = ..., options: typing.Union['QFileDialog.Options', 'QFileDialog.Option'] = ...) -> str: ... - # def fileSelected(self, file: str) -> None: ... - # def filterSelected(self, filter: str) -> None: ... - # def filesSelected(self, files: typing.Iterable[str]) -> None: ... - # def directoryEntered(self, directory: str) -> None: ... - # def currentChanged(self, path: str) -> None: ... + fileSelected: QtCore.pyqtSignal + filterSelected: QtCore.pyqtSignal + filesSelected: QtCore.pyqtSignal + directoryEntered: QtCore.pyqtSignal + currentChanged: QtCore.pyqtSignal def labelText(self, label: 'QFileDialog.DialogLabel') -> str: ... def setLabelText(self, label: 'QFileDialog.DialogLabel', text: str) -> None: ... def iconProvider(self) -> 'QFileIconProvider': ... @@ -3209,24 +3137,44 @@ class QFileIconProvider(sip.simplewrapper): class QFileSystemModel(QtCore.QAbstractItemModel): + class Option(int): ... + DontWatchForChanges = ... # type: 'QFileSystemModel.Option' + DontResolveSymlinks = ... # type: 'QFileSystemModel.Option' + DontUseCustomDirectoryIcons = ... # type: 'QFileSystemModel.Option' + class Roles(int): ... FileIconRole = ... # type: 'QFileSystemModel.Roles' FilePathRole = ... # type: 'QFileSystemModel.Roles' FileNameRole = ... # type: 'QFileSystemModel.Roles' FilePermissions = ... # type: 'QFileSystemModel.Roles' - def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + class Options(sip.simplewrapper): - directoryLoaded: QtCore.pyqtSignal - fileRenamed: QtCore.pyqtSignal - rootPathChanged: QtCore.pyqtSignal + @typing.overload + def __init__(self) -> None: ... + @typing.overload + def __init__(self, f: typing.Union['QFileSystemModel.Options', 'QFileSystemModel.Option']) -> None: ... + @typing.overload + def __init__(self, a0: 'QFileSystemModel.Options') -> None: ... + + def __hash__(self) -> int: ... + def __bool__(self) -> int: ... + def __invert__(self) -> 'QFileSystemModel.Options': ... + def __index__(self) -> int: ... + def __int__(self) -> int: ... + + def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def options(self) -> 'QFileSystemModel.Options': ... + def setOptions(self, options: typing.Union['QFileSystemModel.Options', 'QFileSystemModel.Option']) -> None: ... + def testOption(self, option: 'QFileSystemModel.Option') -> bool: ... + def setOption(self, option: 'QFileSystemModel.Option', on: bool = ...) -> None: ... def sibling(self, row: int, column: int, idx: QtCore.QModelIndex) -> QtCore.QModelIndex: ... def timerEvent(self, event: QtCore.QTimerEvent) -> None: ... def event(self, event: QtCore.QEvent) -> bool: ... - # def directoryLoaded(self, path: str) -> None: ... - # def rootPathChanged(self, newPath: str) -> None: ... - # def fileRenamed(self, path: str, oldName: str, newName: str) -> None: ... + directoryLoaded: QtCore.pyqtSignal + rootPathChanged: QtCore.pyqtSignal + fileRenamed: QtCore.pyqtSignal def remove(self, index: QtCore.QModelIndex) -> bool: ... def fileInfo(self, aindex: QtCore.QModelIndex) -> QtCore.QFileInfo: ... def fileIcon(self, aindex: QtCore.QModelIndex) -> QtGui.QIcon: ... @@ -3269,7 +3217,7 @@ class QFileSystemModel(QtCore.QAbstractItemModel): def fetchMore(self, parent: QtCore.QModelIndex) -> None: ... def canFetchMore(self, parent: QtCore.QModelIndex) -> bool: ... def hasChildren(self, parent: QtCore.QModelIndex = ...) -> bool: ... - def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ... # type: ignore # fix issue #1 + def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ... # type: ignore @typing.overload def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ... @typing.overload @@ -3314,10 +3262,8 @@ class QFontComboBox(QComboBox): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - currentFontChanged: QtCore.pyqtSignal - def event(self, e: QtCore.QEvent) -> bool: ... - # def currentFontChanged(self, f: QtGui.QFont) -> None: ... + currentFontChanged: QtCore.pyqtSignal def setCurrentFont(self, f: QtGui.QFont) -> None: ... def sizeHint(self) -> QtCore.QSize: ... def currentFont(self) -> QtGui.QFont: ... @@ -3357,11 +3303,8 @@ class QFontDialog(QDialog): @typing.overload def __init__(self, initial: QtGui.QFont, parent: typing.Optional[QWidget] = ...) -> None: ... - currentFontChanged: QtCore.pyqtSignal fontSelected: QtCore.pyqtSignal - - # def fontSelected(self, font: QtGui.QFont) -> None: ... - # def currentFontChanged(self, font: QtGui.QFont) -> None: ... + currentFontChanged: QtCore.pyqtSignal def setVisible(self, visible: bool) -> None: ... @typing.overload def open(self) -> None: ... @@ -3815,8 +3758,6 @@ class QGraphicsEffect(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - enabledChanged: QtCore.pyqtSignal - def sourcePixmap(self, system: QtCore.Qt.CoordinateSystem = ..., mode: 'QGraphicsEffect.PixmapPadMode' = ...) -> typing.Tuple[QtGui.QPixmap, QtCore.QPoint]: ... def drawSource(self, painter: QtGui.QPainter) -> None: ... def sourceBoundingRect(self, system: QtCore.Qt.CoordinateSystem = ...) -> QtCore.QRectF: ... @@ -3824,7 +3765,7 @@ class QGraphicsEffect(QtCore.QObject): def updateBoundingRect(self) -> None: ... def sourceChanged(self, flags: typing.Union['QGraphicsEffect.ChangeFlags', 'QGraphicsEffect.ChangeFlag']) -> None: ... def draw(self, painter: QtGui.QPainter) -> None: ... - # def enabledChanged(self, enabled: bool) -> None: ... + enabledChanged: QtCore.pyqtSignal def update(self) -> None: ... def setEnabled(self, enable: bool) -> None: ... def isEnabled(self) -> bool: ... @@ -3836,12 +3777,9 @@ class QGraphicsColorizeEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - colorChanged: QtCore.pyqtSignal - strengthChanged: QtCore.pyqtSignal - def draw(self, painter: QtGui.QPainter) -> None: ... - # def strengthChanged(self, strength: float) -> None: ... - # def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... + strengthChanged: QtCore.pyqtSignal + colorChanged: QtCore.pyqtSignal def setStrength(self, strength: float) -> None: ... def setColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor]) -> None: ... def strength(self) -> float: ... @@ -3872,12 +3810,9 @@ class QGraphicsBlurEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def draw(self, painter: QtGui.QPainter) -> None: ... blurHintsChanged: QtCore.pyqtSignal blurRadiusChanged: QtCore.pyqtSignal - - def draw(self, painter: QtGui.QPainter) -> None: ... - # def blurHintsChanged(self, hints: typing.Union['QGraphicsBlurEffect.BlurHints', 'QGraphicsBlurEffect.BlurHint']) -> None: ... - # def blurRadiusChanged(self, blurRadius: float) -> None: ... def setBlurHints(self, hints: typing.Union['QGraphicsBlurEffect.BlurHints', 'QGraphicsBlurEffect.BlurHint']) -> None: ... def setBlurRadius(self, blurRadius: float) -> None: ... def blurHints(self) -> 'QGraphicsBlurEffect.BlurHints': ... @@ -3889,14 +3824,10 @@ class QGraphicsDropShadowEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def draw(self, painter: QtGui.QPainter) -> None: ... colorChanged: QtCore.pyqtSignal blurRadiusChanged: QtCore.pyqtSignal offsetChanged: QtCore.pyqtSignal - - def draw(self, painter: QtGui.QPainter) -> None: ... - # def colorChanged(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... - # def blurRadiusChanged(self, blurRadius: float) -> None: ... - # def offsetChanged(self, offset: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... def setBlurRadius(self, blurRadius: float) -> None: ... def setYOffset(self, dy: float) -> None: ... @@ -3919,12 +3850,9 @@ class QGraphicsOpacityEffect(QGraphicsEffect): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def draw(self, painter: QtGui.QPainter) -> None: ... opacityMaskChanged: QtCore.pyqtSignal opacityChanged: QtCore.pyqtSignal - - def draw(self, painter: QtGui.QPainter) -> None: ... - # def opacityMaskChanged(self, mask: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... - # def opacityChanged(self, opacity: float) -> None: ... def setOpacityMask(self, mask: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... def setOpacity(self, opacity: float) -> None: ... def opacityMask(self) -> QtGui.QBrush: ... @@ -4474,7 +4402,7 @@ class QGraphicsPixmapItem(QGraphicsItem): def type(self) -> int: ... def opaqueArea(self) -> QtGui.QPainterPath: ... def isObscuredBy(self, item: QGraphicsItem) -> bool: ... - def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore # fix issue #1 + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... def shape(self) -> QtGui.QPainterPath: ... def boundingRect(self) -> QtCore.QRectF: ... @@ -4499,7 +4427,7 @@ class QGraphicsSimpleTextItem(QAbstractGraphicsShapeItem): def type(self) -> int: ... def opaqueArea(self) -> QtGui.QPainterPath: ... def isObscuredBy(self, item: QGraphicsItem) -> bool: ... - def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore # fix issue #1 + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... def shape(self) -> QtGui.QPainterPath: ... def boundingRect(self) -> QtCore.QRectF: ... @@ -4526,6 +4454,8 @@ class QGraphicsObject(QtCore.QObject, QGraphicsItem): def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... + def event(self, ev: QtCore.QEvent) -> bool: ... + def updateMicroFocus(self) -> None: ... scaleChanged: QtCore.pyqtSignal rotationChanged: QtCore.pyqtSignal zChanged: QtCore.pyqtSignal @@ -4535,18 +4465,6 @@ class QGraphicsObject(QtCore.QObject, QGraphicsItem): visibleChanged: QtCore.pyqtSignal opacityChanged: QtCore.pyqtSignal parentChanged: QtCore.pyqtSignal - - def event(self, ev: QtCore.QEvent) -> bool: ... - def updateMicroFocus(self) -> None: ... - # def scaleChanged(self) -> None: ... - # def rotationChanged(self) -> None: ... - # def zChanged(self) -> None: ... - # def yChanged(self) -> None: ... - # def xChanged(self) -> None: ... - # def enabledChanged(self) -> None: ... - # def visibleChanged(self) -> None: ... - # def opacityChanged(self) -> None: ... - # def parentChanged(self) -> None: ... def ungrabGesture(self, type: QtCore.Qt.GestureType) -> None: ... def grabGesture(self, type: QtCore.Qt.GestureType, flags: typing.Union[QtCore.Qt.GestureFlags, QtCore.Qt.GestureFlag] = ...) -> None: ... @@ -4557,9 +4475,6 @@ class QGraphicsTextItem(QGraphicsObject): def __init__(self, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... @typing.overload def __init__(self, text: str, parent: typing.Optional[QGraphicsItem] = ...) -> None: ... - - linkActivated: QtCore.pyqtSignal - linkHovered: QtCore.pyqtSignal def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ... def hoverLeaveEvent(self, event: 'QGraphicsSceneHoverEvent') -> None: ... @@ -4580,8 +4495,8 @@ class QGraphicsTextItem(QGraphicsObject): def mouseMoveEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... def mousePressEvent(self, event: 'QGraphicsSceneMouseEvent') -> None: ... def sceneEvent(self, event: QtCore.QEvent) -> bool: ... - # def linkHovered(self, a0: str) -> None: ... - # def linkActivated(self, a0: str) -> None: ... + linkHovered: QtCore.pyqtSignal + linkActivated: QtCore.pyqtSignal def textCursor(self) -> QtGui.QTextCursor: ... def setTextCursor(self, cursor: QtGui.QTextCursor) -> None: ... def openExternalLinks(self) -> bool: ... @@ -4598,7 +4513,7 @@ class QGraphicsTextItem(QGraphicsObject): def type(self) -> int: ... def opaqueArea(self) -> QtGui.QPainterPath: ... def isObscuredBy(self, item: QGraphicsItem) -> bool: ... - def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore # fix issue #1 + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore def contains(self, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> bool: ... def shape(self) -> QtGui.QPainterPath: ... def boundingRect(self) -> QtCore.QRectF: ... @@ -4647,8 +4562,6 @@ class QGraphicsWidget(QGraphicsObject, QGraphicsLayoutItem): def __init__(self, parent: typing.Optional[QGraphicsItem] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... geometryChanged: QtCore.pyqtSignal - - # def geometryChanged(self) -> None: ... def setAutoFillBackground(self, enabled: bool) -> None: ... def autoFillBackground(self) -> bool: ... def ungrabKeyboardEvent(self, event: QtCore.QEvent) -> None: ... @@ -4708,8 +4621,14 @@ class QGraphicsWidget(QGraphicsObject, QGraphicsLayoutItem): def windowFrameGeometry(self) -> QtCore.QRectF: ... def unsetWindowFrameMargins(self) -> None: ... def getWindowFrameMargins(self) -> typing.Tuple[float, float, float, float]: ... + @typing.overload + def setWindowFrameMargins(self, margins: QtCore.QMarginsF) -> None: ... + @typing.overload def setWindowFrameMargins(self, left: float, top: float, right: float, bottom: float) -> None: ... def getContentsMargins(self) -> typing.Tuple[float, float, float, float]: ... + @typing.overload + def setContentsMargins(self, margins: QtCore.QMarginsF) -> None: ... + @typing.overload def setContentsMargins(self, left: float, top: float, right: float, bottom: float) -> None: ... def rect(self) -> QtCore.QRectF: ... @typing.overload @@ -4771,8 +4690,8 @@ class QGraphicsProxyWidget(QGraphicsWidget): def itemChange(self, change: QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ... def createProxyForChildWidget(self, child: QWidget) -> 'QGraphicsProxyWidget': ... def type(self) -> int: ... - def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore # fix issue #1 - def setGeometry(self, rect: QtCore.QRectF) -> None: ... # type: ignore # fix issue #1 + def paint(self, painter: QtGui.QPainter, option: 'QStyleOptionGraphicsItem', widget: QWidget) -> None: ... # type: ignore + def setGeometry(self, rect: QtCore.QRectF) -> None: ... # type: ignore def subWidgetRect(self, widget: QWidget) -> QtCore.QRectF: ... def widget(self) -> QWidget: ... def setWidget(self, widget: QWidget) -> None: ... @@ -4812,12 +4731,9 @@ class QGraphicsScene(QtCore.QObject): @typing.overload def __init__(self, x: float, y: float, width: float, height: float, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - focusItemChanged: QtCore.pyqtSignal - changed: QtCore.pyqtSignal - sceneRectChanged: QtCore.pyqtSignal - selectionChanged: QtCore.pyqtSignal - - # def focusItemChanged(self, newFocus: QGraphicsItem, oldFocus: QGraphicsItem, reason: QtCore.Qt.FocusReason) -> None: ... + def setFocusOnTouch(self, enabled: bool) -> None: ... + focusOnTouch: QtCore.pyqtSignal + def focusItemChanged(self, newFocus: QGraphicsItem, oldFocus: QGraphicsItem, reason: QtCore.Qt.FocusReason) -> None: ... def setMinimumRenderSize(self, minSize: float) -> None: ... def minimumRenderSize(self) -> float: ... def sendEvent(self, item: QGraphicsItem, event: QtCore.QEvent) -> bool: ... @@ -4863,9 +4779,9 @@ class QGraphicsScene(QtCore.QObject): def dragEnterEvent(self, event: 'QGraphicsSceneDragDropEvent') -> None: ... def contextMenuEvent(self, event: 'QGraphicsSceneContextMenuEvent') -> None: ... def event(self, event: QtCore.QEvent) -> bool: ... - # def selectionChanged(self) -> None: ... - # def sceneRectChanged(self, rect: QtCore.QRectF) -> None: ... - # def changed(self, region: typing.Iterable[QtCore.QRectF]) -> None: ... + selectionChanged: QtCore.pyqtSignal + sceneRectChanged: QtCore.pyqtSignal + changed: QtCore.pyqtSignal def clear(self) -> None: ... @typing.overload def invalidate(self, rect: QtCore.QRectF = ..., layers: typing.Union['QGraphicsScene.SceneLayers', 'QGraphicsScene.SceneLayer'] = ...) -> None: ... @@ -5056,11 +4972,6 @@ class QGraphicsScale(QGraphicsTransform): yScaleChanged: QtCore.pyqtSignal xScaleChanged: QtCore.pyqtSignal scaleChanged: QtCore.pyqtSignal - - # def zScaleChanged(self) -> None: ... - # def yScaleChanged(self) -> None: ... - # def xScaleChanged(self) -> None: ... - # def scaleChanged(self) -> None: ... def originChanged(self) -> None: ... def applyTo(self, matrix: QtGui.QMatrix4x4) -> None: ... def setZScale(self, a0: float) -> None: ... @@ -5076,14 +4987,10 @@ class QGraphicsScale(QGraphicsTransform): class QGraphicsRotation(QGraphicsTransform): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - + axisChanged: QtCore.pyqtSignal angleChanged: QtCore.pyqtSignal originChanged: QtCore.pyqtSignal - - # def axisChanged(self) -> None: ... - # def angleChanged(self) -> None: ... - # def originChanged(self) -> None: ... def applyTo(self, matrix: QtGui.QMatrix4x4) -> None: ... @typing.overload def setAxis(self, axis: QtGui.QVector3D) -> None: ... @@ -5160,8 +5067,6 @@ class QGraphicsView(QAbstractScrollArea): def __init__(self, scene: QGraphicsScene, parent: typing.Optional[QWidget] = ...) -> None: ... rubberBandChanged: QtCore.pyqtSignal - - # def rubberBandChanged(self, viewportRect: QtCore.QRect, fromScenePoint: typing.Union[QtCore.QPointF, QtCore.QPoint], toScenePoint: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... def rubberBandRect(self) -> QtCore.QRect: ... def isTransformed(self) -> bool: ... def resetTransform(self) -> None: ... @@ -5250,7 +5155,7 @@ class QGraphicsView(QAbstractScrollArea): def items(self, polygon: QtGui.QPolygon, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List[QGraphicsItem]: ... @typing.overload def items(self, path: QtGui.QPainterPath, mode: QtCore.Qt.ItemSelectionMode = ...) -> typing.List[QGraphicsItem]: ... - def render(self, painter: QtGui.QPainter, target: QtCore.QRectF = ..., source: QtCore.QRect = ..., mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... # type: ignore # fix issue #1 + def render(self, painter: QtGui.QPainter, target: QtCore.QRectF = ..., source: QtCore.QRect = ..., mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... # type: ignore @typing.overload def fitInView(self, rect: QtCore.QRectF, mode: QtCore.Qt.AspectRatioMode = ...) -> None: ... @typing.overload @@ -5363,9 +5268,6 @@ class QGroupBox(QWidget): @typing.overload def __init__(self, title: str, parent: typing.Optional[QWidget] = ...) -> None: ... - toggled: QtCore.pyqtSignal - clicked: QtCore.pyqtSignal - def mouseReleaseEvent(self, event: QtGui.QMouseEvent) -> None: ... def mouseMoveEvent(self, event: QtGui.QMouseEvent) -> None: ... def mousePressEvent(self, event: QtGui.QMouseEvent) -> None: ... @@ -5376,8 +5278,8 @@ class QGroupBox(QWidget): def childEvent(self, a0: QtCore.QChildEvent) -> None: ... def event(self, a0: QtCore.QEvent) -> bool: ... def initStyleOption(self, option: 'QStyleOptionGroupBox') -> None: ... - # def toggled(self, a0: bool) -> None: ... - # def clicked(self, checked: bool = ...) -> None: ... + toggled: QtCore.pyqtSignal + clicked: QtCore.pyqtSignal def setChecked(self, b: bool) -> None: ... def isChecked(self) -> bool: ... def setCheckable(self, b: bool) -> None: ... @@ -5401,19 +5303,9 @@ class QHeaderView(QAbstractItemView): Custom = ... # type: 'QHeaderView.ResizeMode' def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... - - sectionHandleDoubleClicked: QtCore.pyqtSignal - sectionCountChanged: QtCore.pyqtSignal - sectionDoubleClicked: QtCore.pyqtSignal - sectionClicked: QtCore.pyqtSignal - sectionPressed: QtCore.pyqtSignal - sectionResized: QtCore.pyqtSignal - sectionMoved: QtCore.pyqtSignal - geometriesChanged: QtCore.pyqtSignal - sortIndicatorChanged: QtCore.pyqtSignal - sectionEntered: QtCore.pyqtSignal - + def isFirstSectionMovable(self) -> bool: ... + def setFirstSectionMovable(self, movable: bool) -> None: ... def resetDefaultSectionSize(self) -> None: ... def setMaximumSectionSize(self, size: int) -> None: ... def maximumSectionSize(self) -> int: ... @@ -5430,8 +5322,8 @@ class QHeaderView(QAbstractItemView): def sectionsMovable(self) -> bool: ... def setSectionsMovable(self, movable: bool) -> None: ... def initStyleOption(self, option: 'QStyleOptionHeader') -> None: ... # type: ignore # fix issue #1 - # def sortIndicatorChanged(self, logicalIndex: int, order: QtCore.Qt.SortOrder) -> None: ... - # def sectionEntered(self, logicalIndex: int) -> None: ... + sortIndicatorChanged: QtCore.pyqtSignal + sectionEntered: QtCore.pyqtSignal def setOffsetToLastSection(self) -> None: ... def reset(self) -> None: ... def restoreState(self, state: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> bool: ... @@ -5454,7 +5346,7 @@ class QHeaderView(QAbstractItemView): def moveCursor(self, a0: QAbstractItemView.CursorAction, a1: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier]) -> QtCore.QModelIndex: ... def isIndexHidden(self, index: QtCore.QModelIndex) -> bool: ... def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... - def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint) -> None: ... # type: ignore # fix issue #1 + def scrollTo(self, index: QtCore.QModelIndex, hint: QAbstractItemView.ScrollHint) -> None: ... # type: ignore def visualRect(self, index: QtCore.QModelIndex) -> QtCore.QRect: ... def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... @@ -5484,14 +5376,14 @@ class QHeaderView(QAbstractItemView): @typing.overload def resizeSections(self, mode: 'QHeaderView.ResizeMode') -> None: ... def updateSection(self, logicalIndex: int) -> None: ... - # def sectionHandleDoubleClicked(self, logicalIndex: int) -> None: ... - # def sectionCountChanged(self, oldCount: int, newCount: int) -> None: ... - # def sectionDoubleClicked(self, logicalIndex: int) -> None: ... - # def sectionClicked(self, logicalIndex: int) -> None: ... - # def sectionPressed(self, logicalIndex: int) -> None: ... - # def sectionResized(self, logicalIndex: int, oldSize: int, newSize: int) -> None: ... - # def sectionMoved(self, logicalIndex: int, oldVisualIndex: int, newVisualIndex: int) -> None: ... - # def geometriesChanged(self) -> None: ... + sectionHandleDoubleClicked: QtCore.pyqtSignal + sectionCountChanged: QtCore.pyqtSignal + sectionDoubleClicked: QtCore.pyqtSignal + sectionClicked: QtCore.pyqtSignal + sectionPressed: QtCore.pyqtSignal + sectionResized: QtCore.pyqtSignal + sectionMoved: QtCore.pyqtSignal + geometriesChanged: QtCore.pyqtSignal def setOffsetToSectionPosition(self, visualIndex: int) -> None: ... def headerDataChanged(self, orientation: QtCore.Qt.Orientation, logicalFirst: int, logicalLast: int) -> None: ... def setOffset(self, offset: int) -> None: ... @@ -5561,19 +5453,14 @@ class QInputDialog(QDialog): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... + def doubleStep(self) -> float: ... + def setDoubleStep(self, step: float) -> None: ... doubleValueSelected: QtCore.pyqtSignal doubleValueChanged: QtCore.pyqtSignal intValueSelected: QtCore.pyqtSignal intValueChanged: QtCore.pyqtSignal textValueSelected: QtCore.pyqtSignal textValueChanged: QtCore.pyqtSignal - - # def doubleValueSelected(self, value: float) -> None: ... - # def doubleValueChanged(self, value: float) -> None: ... - # def intValueSelected(self, value: int) -> None: ... - # def intValueChanged(self, value: int) -> None: ... - # def textValueSelected(self, text: str) -> None: ... - # def textValueChanged(self, text: str) -> None: ... def done(self, result: int) -> None: ... def setVisible(self, visible: bool) -> None: ... def sizeHint(self) -> QtCore.QSize: ... @@ -5624,8 +5511,12 @@ class QInputDialog(QDialog): def getMultiLineText(parent: QWidget, title: str, label: str, text: str = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ..., inputMethodHints: typing.Union[QtCore.Qt.InputMethodHints, QtCore.Qt.InputMethodHint] = ...) -> typing.Tuple[str, bool]: ... @staticmethod def getItem(parent: QWidget, title: str, label: str, items: typing.Iterable[str], current: int = ..., editable: bool = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ..., inputMethodHints: typing.Union[QtCore.Qt.InputMethodHints, QtCore.Qt.InputMethodHint] = ...) -> typing.Tuple[str, bool]: ... + @typing.overload @staticmethod def getDouble(parent: QWidget, title: str, label: str, value: float = ..., min: float = ..., max: float = ..., decimals: int = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> typing.Tuple[float, bool]: ... + @typing.overload + @staticmethod + def getDouble(parent: QWidget, title: str, label: str, value: float, minValue: float, maxValue: float, decimals: int, flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType], step: float) -> typing.Tuple[float, bool]: ... @staticmethod def getInt(parent: QWidget, title: str, label: str, value: int = ..., min: int = ..., max: int = ..., step: int = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> typing.Tuple[int, bool]: ... @staticmethod @@ -5704,15 +5595,12 @@ class QKeySequenceEdit(QWidget): @typing.overload def __init__(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], parent: typing.Optional[QWidget] = ...) -> None: ... - keySequenceChanged: QtCore.pyqtSignal - editingFinished: QtCore.pyqtSignal - def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... def keyReleaseEvent(self, a0: QtGui.QKeyEvent) -> None: ... def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... def event(self, a0: QtCore.QEvent) -> bool: ... - # def keySequenceChanged(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... - # def editingFinished(self) -> None: ... + keySequenceChanged: QtCore.pyqtSignal + editingFinished: QtCore.pyqtSignal def clear(self) -> None: ... def setKeySequence(self, keySequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int]) -> None: ... def keySequence(self) -> QtGui.QKeySequence: ... @@ -5725,9 +5613,6 @@ class QLabel(QFrame): @typing.overload def __init__(self, text: str, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - linkActivated: QtCore.pyqtSignal - linkHovered: QtCore.pyqtSignal - def selectionStart(self) -> int: ... def selectedText(self) -> str: ... def hasSelectedText(self) -> bool: ... @@ -5743,14 +5628,14 @@ class QLabel(QFrame): def changeEvent(self, a0: QtCore.QEvent) -> None: ... def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - # def linkHovered(self, link: str) -> None: ... - # def linkActivated(self, link: str) -> None: ... + linkActivated: QtCore.pyqtSignal + linkHovered: QtCore.pyqtSignal def setText(self, a0: str) -> None: ... def setPixmap(self, a0: QtGui.QPixmap) -> None: ... def setPicture(self, a0: QtGui.QPicture) -> None: ... # @typing.overload def setNum(self, a0: float) -> None: ... - # @typing.overload # fix issue #4 + # @typing.overload # def setNum(self, a0: int) -> None: ... def setMovie(self, movie: QtGui.QMovie) -> None: ... def clear(self) -> None: ... @@ -5835,11 +5720,9 @@ class QLCDNumber(QFrame): @typing.overload def __init__(self, numDigits: int, parent: typing.Optional[QWidget] = ...) -> None: ... - overflow: QtCore.pyqtSignal - def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - # def overflow(self) -> None: ... + overflow: QtCore.pyqtSignal def setSmallDecimalPoint(self, a0: bool) -> None: ... def setBinMode(self) -> None: ... def setOctMode(self) -> None: ... @@ -5849,7 +5732,7 @@ class QLCDNumber(QFrame): def display(self, str: str) -> None: ... @typing.overload def display(self, num: float) -> None: ... - # @typing.overload # fix issue #4 + # @typing.overload # def display(self, num: int) -> None: ... def sizeHint(self) -> QtCore.QSize: ... def intValue(self) -> int: ... @@ -5858,7 +5741,7 @@ class QLCDNumber(QFrame): def segmentStyle(self) -> 'QLCDNumber.SegmentStyle': ... def setMode(self, a0: 'QLCDNumber.Mode') -> None: ... def mode(self) -> 'QLCDNumber.Mode': ... - # @typing.overload # fix issue #4 + # @typing.overload def checkOverflow(self, num: float) -> bool: ... # @typing.overload # def checkOverflow(self, num: int) -> bool: ... @@ -5880,18 +5763,14 @@ class QLineEdit(QWidget): Password = ... # type: 'QLineEdit.EchoMode' PasswordEchoOnEdit = ... # type: 'QLineEdit.EchoMode' - textEdited: QtCore.pyqtSignal # fix issue # 5 - textChanged: QtCore.pyqtSignal - selectionChanged: QtCore.pyqtSignal - editingFinished: QtCore.pyqtSignal - returnPressed: QtCore.pyqtSignal - cursorPositionChanged: QtCore.pyqtSignal - @typing.overload def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload def __init__(self, contents: str, parent: typing.Optional[QWidget] = ...) -> None: ... + def inputRejected(self) -> None: ... + def selectionLength(self) -> int: ... + def selectionEnd(self) -> int: ... @typing.overload def addAction(self, action: QAction) -> None: ... @typing.overload @@ -5934,12 +5813,12 @@ class QLineEdit(QWidget): def mouseMoveEvent(self, a0: QtGui.QMouseEvent) -> None: ... def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionFrame') -> None: ... - # def selectionChanged(self) -> None: ... - # def editingFinished(self) -> None: ... - # def returnPressed(self) -> None: ... - # def cursorPositionChanged(self, a0: int, a1: int) -> None: ... - # def textEdited(self, a0: str) -> None: ... - # def textChanged(self, a0: str) -> None: ... + selectionChanged: QtCore.pyqtSignal + editingFinished: QtCore.pyqtSignal + returnPressed: QtCore.pyqtSignal + cursorPositionChanged: QtCore.pyqtSignal + textEdited: QtCore.pyqtSignal + textChanged: QtCore.pyqtSignal def createStandardContextMenu(self) -> 'QMenu': ... def insert(self, a0: str) -> None: ... def deselect(self) -> None: ... @@ -6017,9 +5896,9 @@ class QListView(QAbstractItemView): Snap = ... # type: 'QListView.Movement' def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - - indexesMoved: QtCore.pyqtSignal - + + def itemAlignment(self) -> QtCore.Qt.Alignment: ... + def setItemAlignment(self, alignment: typing.Union[QtCore.Qt.Alignment, QtCore.Qt.AlignmentFlag]) -> None: ... def currentChanged(self, current: QtCore.QModelIndex, previous: QtCore.QModelIndex) -> None: ... def selectionChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ... def isSelectionRectVisible(self) -> bool: ... @@ -6055,7 +5934,7 @@ class QListView(QAbstractItemView): def rowsInserted(self, parent: QtCore.QModelIndex, start: int, end: int) -> None: ... def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... def scrollContentsBy(self, dx: int, dy: int) -> None: ... - # def indexesMoved(self, indexes: typing.Iterable[QtCore.QModelIndex]) -> None: ... + indexesMoved: QtCore.pyqtSignal def setRootIndex(self, index: QtCore.QModelIndex) -> None: ... def reset(self) -> None: ... def indexAt(self, p: QtCore.QPoint) -> QtCore.QModelIndex: ... @@ -6142,17 +6021,7 @@ class QListWidget(QListView): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - itemSelectionChanged: QtCore.pyqtSignal - currentRowChanged: QtCore.pyqtSignal - currentTextChanged: QtCore.pyqtSignal - currentItemChanged: QtCore.pyqtSignal - itemChanged: QtCore.pyqtSignal - itemEntered: QtCore.pyqtSignal - itemActivated: QtCore.pyqtSignal - itemDoubleClicked: QtCore.pyqtSignal - itemClicked: QtCore.pyqtSignal - itemPressed: QtCore.pyqtSignal - + def isPersistentEditorOpen(self, item: QListWidgetItem) -> bool: ... def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... def removeItemWidget(self, aItem: QListWidgetItem) -> None: ... def dropEvent(self, event: QtGui.QDropEvent) -> None: ... @@ -6166,22 +6035,22 @@ class QListWidget(QListView): def dropMimeData(self, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... def mimeData(self, items: typing.Iterable[QListWidgetItem]) -> QtCore.QMimeData: ... def mimeTypes(self) -> typing.List[str]: ... - # def itemSelectionChanged(self) -> None: ... - # def currentRowChanged(self, currentRow: int) -> None: ... - # def currentTextChanged(self, currentText: str) -> None: ... - # def currentItemChanged(self, current: QListWidgetItem, previous: QListWidgetItem) -> None: ... - # def itemChanged(self, item: QListWidgetItem) -> None: ... - # def itemEntered(self, item: QListWidgetItem) -> None: ... - # def itemActivated(self, item: QListWidgetItem) -> None: ... - # def itemDoubleClicked(self, item: QListWidgetItem) -> None: ... - # def itemClicked(self, item: QListWidgetItem) -> None: ... - # def itemPressed(self, item: QListWidgetItem) -> None: ... + itemSelectionChanged: QtCore.pyqtSignal + currentRowChanged: QtCore.pyqtSignal + currentTextChanged: QtCore.pyqtSignal + currentItemChanged: QtCore.pyqtSignal + itemChanged: QtCore.pyqtSignal + itemEntered: QtCore.pyqtSignal + itemActivated: QtCore.pyqtSignal + itemDoubleClicked: QtCore.pyqtSignal + itemClicked: QtCore.pyqtSignal + itemPressed: QtCore.pyqtSignal def scrollToItem(self, item: QListWidgetItem, hint: QAbstractItemView.ScrollHint = ...) -> None: ... def clear(self) -> None: ... def findItems(self, text: str, flags: typing.Union[QtCore.Qt.MatchFlags, QtCore.Qt.MatchFlag]) -> typing.List[QListWidgetItem]: ... def selectedItems(self) -> typing.List[QListWidgetItem]: ... - def closePersistentEditor(self, item: QListWidgetItem) -> None: ... # type: ignore # fix issue #1 - def openPersistentEditor(self, item: QListWidgetItem) -> None: ... # type: ignore # fix issue #1 + def closePersistentEditor(self, item: QListWidgetItem) -> None: ... # type: ignore + def openPersistentEditor(self, item: QListWidgetItem) -> None: ... # type: ignore def editItem(self, item: QListWidgetItem) -> None: ... def sortItems(self, order: QtCore.Qt.SortOrder = ...) -> None: ... def visualItemRect(self, item: QListWidgetItem) -> QtCore.QRect: ... @@ -6245,10 +6114,6 @@ class QMainWindow(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - iconSizeChanged: QtCore.pyqtSignal - tabifiedDockWidgetActivated: QtCore.pyqtSignal - toolButtonStyleChanged: QtCore.pyqtSignal - def resizeDocks(self, docks: typing.Iterable[QDockWidget], sizes: typing.Iterable[int], orientation: QtCore.Qt.Orientation) -> None: ... def takeCentralWidget(self) -> QWidget: ... def tabifiedDockWidgets(self, dockwidget: QDockWidget) -> typing.List[QDockWidget]: ... @@ -6273,9 +6138,9 @@ class QMainWindow(QWidget): def isAnimated(self) -> bool: ... def event(self, event: QtCore.QEvent) -> bool: ... def contextMenuEvent(self, event: QtGui.QContextMenuEvent) -> None: ... - # def tabifiedDockWidgetActivated(self, dockWidget: QDockWidget) -> None: ... - # def toolButtonStyleChanged(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... - # def iconSizeChanged(self, iconSize: QtCore.QSize) -> None: ... + tabifiedDockWidgetActivated: QtCore.pyqtSignal + toolButtonStyleChanged: QtCore.pyqtSignal + iconSizeChanged: QtCore.pyqtSignal def setDockNestingEnabled(self, enabled: bool) -> None: ... def setAnimated(self, enabled: bool) -> None: ... def createPopupMenu(self) -> 'QMenu': ... @@ -6344,8 +6209,6 @@ class QMdiArea(QAbstractScrollArea): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - subWindowActivated: QtCore.pyqtSignal - def tabsMovable(self) -> bool: ... def setTabsMovable(self, movable: bool) -> None: ... def tabsClosable(self) -> bool: ... @@ -6377,7 +6240,7 @@ class QMdiArea(QAbstractScrollArea): def cascadeSubWindows(self) -> None: ... def tileSubWindows(self) -> None: ... def setActiveSubWindow(self, window: 'QMdiSubWindow') -> None: ... # type: ignore # fix issue #1 - # def subWindowActivated(self, a0: 'QMdiSubWindow') -> None: ... + subWindowActivated: QtCore.pyqtSignal def testOption(self, opton: 'QMdiArea.AreaOption') -> bool: ... def setOption(self, option: 'QMdiArea.AreaOption', on: bool = ...) -> None: ... def setBackground(self, background: typing.Union[QtGui.QBrush, QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... @@ -6414,9 +6277,6 @@ class QMdiSubWindow(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - aboutToActivate: QtCore.pyqtSignal - windowStateChanged: QtCore.pyqtSignal - def childEvent(self, childEvent: QtCore.QChildEvent) -> None: ... def focusOutEvent(self, focusOutEvent: QtGui.QFocusEvent) -> None: ... def focusInEvent(self, focusInEvent: QtGui.QFocusEvent) -> None: ... @@ -6439,8 +6299,8 @@ class QMdiSubWindow(QWidget): def eventFilter(self, object: QtCore.QObject, event: QtCore.QEvent) -> bool: ... def showShaded(self) -> None: ... def showSystemMenu(self) -> None: ... - # def aboutToActivate(self) -> None: ... - # def windowStateChanged(self, oldState: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState], newState: typing.Union[QtCore.Qt.WindowStates, QtCore.Qt.WindowState]) -> None: ... + aboutToActivate: QtCore.pyqtSignal + windowStateChanged: QtCore.pyqtSignal def mdiArea(self) -> QMdiArea: ... def systemMenu(self) -> 'QMenu': ... def setSystemMenu(self, systemMenu: 'QMenu') -> None: ... @@ -6464,11 +6324,6 @@ class QMenu(QWidget): @typing.overload def __init__(self, title: str, parent: typing.Optional[QWidget] = ...) -> None: ... - triggered: QtCore.pyqtSignal - hovered: QtCore.pyqtSignal - aboutToShow: QtCore.pyqtSignal - aboutToHide: QtCore.pyqtSignal - @typing.overload def showTearOffMenu(self) -> None: ... @typing.overload @@ -6502,10 +6357,10 @@ class QMenu(QWidget): def changeEvent(self, a0: QtCore.QEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionMenuItem', action: QAction) -> None: ... def columnCount(self) -> int: ... - # def triggered(self, action: QAction) -> None: ... - # def hovered(self, action: QAction) -> None: ... - # def aboutToShow(self) -> None: ... - # def aboutToHide(self) -> None: ... + triggered: QtCore.pyqtSignal + hovered: QtCore.pyqtSignal + aboutToShow: QtCore.pyqtSignal + aboutToHide: QtCore.pyqtSignal def setNoReplayFor(self, widget: QWidget) -> None: ... def setIcon(self, icon: QtGui.QIcon) -> None: ... def icon(self) -> QtGui.QIcon: ... @@ -6515,14 +6370,14 @@ class QMenu(QWidget): def actionAt(self, a0: QtCore.QPoint) -> QAction: ... def actionGeometry(self, a0: QAction) -> QtCore.QRect: ... def sizeHint(self) -> QtCore.QSize: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def exec(self) -> QAction: ... @typing.overload def exec(self, pos: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> QAction: ... @typing.overload @staticmethod def exec(actions: typing.Iterable[QAction], pos: QtCore.QPoint, at: typing.Optional[QAction] = ..., parent: typing.Optional[QWidget] = ...) -> QAction: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def exec_(self) -> QAction: ... @typing.overload def exec_(self, p: QtCore.QPoint, action: typing.Optional[QAction] = ...) -> QAction: ... @@ -6564,9 +6419,6 @@ class QMenuBar(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - hovered: QtCore.pyqtSignal - triggered: QtCore.pyqtSignal - def setNativeMenuBar(self, nativeMenuBar: bool) -> None: ... def isNativeMenuBar(self) -> bool: ... def timerEvent(self, a0: QtCore.QTimerEvent) -> None: ... @@ -6584,8 +6436,8 @@ class QMenuBar(QWidget): def keyPressEvent(self, a0: QtGui.QKeyEvent) -> None: ... def changeEvent(self, a0: QtCore.QEvent) -> None: ... def initStyleOption(self, option: 'QStyleOptionMenuItem', action: QAction) -> None: ... - # def hovered(self, action: QAction) -> None: ... - # def triggered(self, action: QAction) -> None: ... + hovered: QtCore.pyqtSignal + triggered: QtCore.pyqtSignal def setVisible(self, visible: bool) -> None: ... def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget: ... def setCornerWidget(self, widget: QWidget, corner: QtCore.Qt.Corner = ...) -> None: ... @@ -6780,11 +6632,8 @@ class QOpenGLWidget(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - resized: QtCore.pyqtSignal - aboutToResize: QtCore.pyqtSignal - frameSwapped: QtCore.pyqtSignal - aboutToCompose: QtCore.pyqtSignal - + def setTextureFormat(self, texFormat: int) -> None: ... + def textureFormat(self) -> int: ... def updateBehavior(self) -> 'QOpenGLWidget.UpdateBehavior': ... def setUpdateBehavior(self, updateBehavior: 'QOpenGLWidget.UpdateBehavior') -> None: ... def paintEngine(self) -> QtGui.QPaintEngine: ... @@ -6795,10 +6644,10 @@ class QOpenGLWidget(QWidget): def paintGL(self) -> None: ... def resizeGL(self, w: int, h: int) -> None: ... def initializeGL(self) -> None: ... - # def resized(self) -> None: ... - # def aboutToResize(self) -> None: ... - # def frameSwapped(self) -> None: ... - # def aboutToCompose(self) -> None: ... + resized: QtCore.pyqtSignal + aboutToResize: QtCore.pyqtSignal + frameSwapped: QtCore.pyqtSignal + aboutToCompose: QtCore.pyqtSignal def grabFramebuffer(self) -> QtGui.QImage: ... def defaultFramebufferObject(self) -> int: ... def context(self) -> QtGui.QOpenGLContext: ... @@ -6820,16 +6669,6 @@ class QPlainTextEdit(QAbstractScrollArea): @typing.overload def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... - modificationChanged: QtCore.pyqtSignal - blockCountChanged: QtCore.pyqtSignal - updateRequest: QtCore.pyqtSignal - cursorPositionChanged: QtCore.pyqtSignal - selectionChanged: QtCore.pyqtSignal - copyAvailable: QtCore.pyqtSignal - redoAvailable: QtCore.pyqtSignal - undoAvailable: QtCore.pyqtSignal - textChanged: QtCore.pyqtSignal - def placeholderText(self) -> str: ... def setPlaceholderText(self, placeholderText: str) -> None: ... def zoomOut(self, range: int = ...) -> None: ... @@ -6870,15 +6709,15 @@ class QPlainTextEdit(QAbstractScrollArea): def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - # def modificationChanged(self, a0: bool) -> None: ... - # def blockCountChanged(self, newBlockCount: int) -> None: ... - # def updateRequest(self, rect: QtCore.QRect, dy: int) -> None: ... - # def cursorPositionChanged(self) -> None: ... - # def selectionChanged(self) -> None: ... - # def copyAvailable(self, b: bool) -> None: ... - # def redoAvailable(self, b: bool) -> None: ... - # def undoAvailable(self, b: bool) -> None: ... - # def textChanged(self) -> None: ... + modificationChanged: QtCore.pyqtSignal + blockCountChanged: QtCore.pyqtSignal + updateRequest: QtCore.pyqtSignal + cursorPositionChanged: QtCore.pyqtSignal + selectionChanged: QtCore.pyqtSignal + copyAvailable: QtCore.pyqtSignal + redoAvailable: QtCore.pyqtSignal + undoAvailable: QtCore.pyqtSignal + textChanged: QtCore.pyqtSignal def centerCursor(self) -> None: ... def appendHtml(self, html: str) -> None: ... def appendPlainText(self, text: str) -> None: ... @@ -6916,10 +6755,12 @@ class QPlainTextEdit(QAbstractScrollArea): def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... def ensureCursorVisible(self) -> None: ... def toPlainText(self) -> str: ... - @typing.overload # type: ignore # fix issue #2 + @typing.overload # type: ignore def find(self, exp: str, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... @typing.overload def find(self, exp: QtCore.QRegExp, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... def centerOnScroll(self) -> bool: ... def setCenterOnScroll(self, enabled: bool) -> None: ... def backgroundVisible(self) -> bool: ... @@ -6973,13 +6814,11 @@ class QProgressBar(QWidget): BottomToTop = ... # type: 'QProgressBar.Direction' def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - - valueChanged: QtCore.pyqtSignal def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def initStyleOption(self, option: 'QStyleOptionProgressBar') -> None: ... - # def valueChanged(self, value: int) -> None: ... + valueChanged: QtCore.pyqtSignal def setOrientation(self, a0: QtCore.Qt.Orientation) -> None: ... def setValue(self, value: int) -> None: ... def setMaximum(self, maximum: int) -> None: ... @@ -7011,8 +6850,6 @@ class QProgressDialog(QDialog): @typing.overload def __init__(self, labelText: str, cancelButtonText: str, minimum: int, maximum: int, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - canceled: QtCore.pyqtSignal - @typing.overload def open(self) -> None: ... @typing.overload @@ -7022,7 +6859,7 @@ class QProgressDialog(QDialog): def changeEvent(self, a0: QtCore.QEvent) -> None: ... def closeEvent(self, a0: QtGui.QCloseEvent) -> None: ... def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... - # def canceled(self) -> None: ... + canceled: QtCore.pyqtSignal def setMinimumDuration(self, ms: int) -> None: ... def setCancelButtonText(self, a0: str) -> None: ... def setLabelText(self, a0: str) -> None: ... @@ -7060,7 +6897,7 @@ class QProxyStyle(QCommonStyle): def unpolish(self, widget: QWidget) -> None: ... @typing.overload def unpolish(self, app: QApplication) -> None: ... - @typing.overload # type: ignore # fix issue #2 + @typing.overload # type: ignore def polish(self, widget: QWidget) -> None: ... @typing.overload def polish(self, pal: QtGui.QPalette) -> QtGui.QPalette: ... @@ -7068,7 +6905,7 @@ class QProxyStyle(QCommonStyle): def polish(self, app: QApplication) -> None: ... def standardPalette(self) -> QtGui.QPalette: ... def generatedIconPixmap(self, iconMode: QtGui.QIcon.Mode, pixmap: QtGui.QPixmap, opt: 'QStyleOption') -> QtGui.QPixmap: ... - def standardPixmap(self, standardPixmap: QStyle.StandardPixmap, opt: 'QStyleOption', widget: typing.Optional[QWidget] = ...) -> QtGui.QPixmap: ... # type: ignore # fix issue #2 + def standardPixmap(self, standardPixmap: QStyle.StandardPixmap, opt: 'QStyleOption', widget: typing.Optional[QWidget] = ...) -> QtGui.QPixmap: ... # type: ignore def standardIcon(self, standardIcon: QStyle.StandardPixmap, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> QtGui.QIcon: ... def layoutSpacing(self, control1: 'QSizePolicy.ControlType', control2: 'QSizePolicy.ControlType', orientation: QtCore.Qt.Orientation, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... def pixelMetric(self, metric: QStyle.PixelMetric, option: typing.Optional['QStyleOption'] = ..., widget: typing.Optional[QWidget] = ...) -> int: ... @@ -7076,9 +6913,9 @@ class QProxyStyle(QCommonStyle): def hitTestComplexControl(self, control: QStyle.ComplexControl, option: 'QStyleOptionComplex', pos: QtCore.QPoint, widget: typing.Optional[QWidget] = ...) -> QStyle.SubControl: ... def itemPixmapRect(self, r: QtCore.QRect, flags: int, pixmap: QtGui.QPixmap) -> QtCore.QRect: ... def itemTextRect(self, fm: QtGui.QFontMetrics, r: QtCore.QRect, flags: int, enabled: bool, text: str) -> QtCore.QRect: ... - def subControlRect(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex', sc: QStyle.SubControl, widget: QWidget) -> QtCore.QRect: ... # type: ignore # fix issue #2 - def subElementRect(self, element: QStyle.SubElement, option: 'QStyleOption', widget: QWidget) -> QtCore.QRect: ... # type: ignore # fix issue #2 - def sizeFromContents(self, type: QStyle.ContentsType, option: 'QStyleOption', size: QtCore.QSize, widget: QWidget) -> QtCore.QSize: ... # type: ignore # fix issue #2 + def subControlRect(self, cc: QStyle.ComplexControl, opt: 'QStyleOptionComplex', sc: QStyle.SubControl, widget: QWidget) -> QtCore.QRect: ... # type: ignore + def subElementRect(self, element: QStyle.SubElement, option: 'QStyleOption', widget: QWidget) -> QtCore.QRect: ... # type: ignore + def sizeFromContents(self, type: QStyle.ContentsType, option: 'QStyleOption', size: QtCore.QSize, widget: QWidget) -> QtCore.QSize: ... # type: ignore def drawItemPixmap(self, painter: QtGui.QPainter, rect: QtCore.QRect, alignment: int, pixmap: QtGui.QPixmap) -> None: ... def drawItemText(self, painter: QtGui.QPainter, rect: QtCore.QRect, flags: int, pal: QtGui.QPalette, enabled: bool, text: str, textRole: QtGui.QPalette.ColorRole = ...) -> None: ... def drawComplexControl(self, control: QStyle.ComplexControl, option: 'QStyleOptionComplex', painter: QtGui.QPainter, widget: typing.Optional[QWidget] = ...) -> None: ... @@ -7119,7 +6956,7 @@ class QRubberBand(QWidget): def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def initStyleOption(self, option: 'QStyleOptionRubberBand') -> None: ... - @typing.overload # type: ignore # fix issue #2 + @typing.overload # type: ignore def resize(self, w: int, h: int) -> None: ... @typing.overload def resize(self, s: QtCore.QSize) -> None: ... @@ -7197,9 +7034,6 @@ class QScroller(QtCore.QObject): scrollerPropertiesChanged: QtCore.pyqtSignal stateChanged: QtCore.pyqtSignal - - # def scrollerPropertiesChanged(self, a0: 'QScrollerProperties') -> None: ... - # def stateChanged(self, newstate: 'QScroller.State') -> None: ... def resendPrepareEvent(self) -> None: ... @typing.overload def ensureVisible(self, rect: QtCore.QRectF, xmargin: float, ymargin: float) -> None: ... @@ -7296,12 +7130,9 @@ class QShortcut(QtCore.QObject): @typing.overload def __init__(self, key: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, str, int], parent: QWidget, member: PYQT_SLOT = ..., ambiguousMember: PYQT_SLOT = ..., context: QtCore.Qt.ShortcutContext = ...) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... activatedAmbiguously: QtCore.pyqtSignal activated: QtCore.pyqtSignal - - def event(self, e: QtCore.QEvent) -> bool: ... - # def activatedAmbiguously(self) -> None: ... - # def activated(self) -> None: ... def autoRepeat(self) -> bool: ... def setAutoRepeat(self, on: bool) -> None: ... def parentWidget(self) -> QWidget: ... @@ -7446,14 +7277,11 @@ class QSpinBox(QAbstractSpinBox): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - valueChanged: QtCore.pyqtSignal # fix issue #5 - + def setStepType(self, stepType: QAbstractSpinBox.StepType) -> None: ... + def stepType(self) -> QAbstractSpinBox.StepType: ... def setDisplayIntegerBase(self, base: int) -> None: ... def displayIntegerBase(self) -> int: ... - # @typing.overload - # def valueChanged(self, a0: int) -> None: ... - # @typing.overload - # def valueChanged(self, a0: str) -> None: ... + valueChanged: QtCore.pyqtSignal def setValue(self, val: int) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def fixup(self, str: str) -> str: ... @@ -7479,12 +7307,7 @@ class QDoubleSpinBox(QAbstractSpinBox): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - valueChanged: QtCore.pyqtSignal # fix issue #5 - - # @typing.overload - # def valueChanged(self, a0: float) -> None: ... - # @typing.overload - # def valueChanged(self, a0: str) -> None: ... + valueChanged: QtCore.pyqtSignal def setValue(self, val: float) -> None: ... def fixup(self, str: str) -> str: ... def textFromValue(self, v: float) -> str: ... @@ -7514,16 +7337,14 @@ class QSplashScreen(QWidget): @typing.overload def __init__(self, parent: QWidget, pixmap: QtGui.QPixmap = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - messageChanged: QtCore.pyqtSignal - def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def drawContents(self, painter: QtGui.QPainter) -> None: ... - # def messageChanged(self, message: str) -> None: ... + messageChanged: QtCore.pyqtSignal def clearMessage(self) -> None: ... def showMessage(self, message: str, alignment: int = ..., color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient] = ...) -> None: ... def message(self) -> str: ... - def repaint(self) -> None: ... # type: ignore # fix issue #2 + def repaint(self) -> None: ... # type: ignore def finish(self, w: QWidget) -> None: ... def pixmap(self) -> QtGui.QPixmap: ... def setPixmap(self, pixmap: QtGui.QPixmap) -> None: ... @@ -7536,8 +7357,6 @@ class QSplitter(QFrame): @typing.overload def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QWidget] = ...) -> None: ... - splitterMoved: QtCore.pyqtSignal - def closestLegalPosition(self, a0: int, a1: int) -> int: ... def setRubberBand(self, position: int) -> None: ... def moveSplitter(self, pos: int, index: int) -> None: ... @@ -7546,7 +7365,7 @@ class QSplitter(QFrame): def event(self, a0: QtCore.QEvent) -> bool: ... def childEvent(self, a0: QtCore.QChildEvent) -> None: ... def createHandle(self) -> 'QSplitterHandle': ... - # def splitterMoved(self, pos: int, index: int) -> None: ... + splitterMoved: QtCore.pyqtSignal def replaceWidget(self, index: int, widget: QWidget) -> QWidget: ... def setStretchFactor(self, index: int, stretch: int) -> None: ... def handle(self, index: int) -> 'QSplitterHandle': ... @@ -7608,17 +7427,14 @@ class QStackedLayout(QLayout): @typing.overload def __init__(self, parentLayout: QLayout) -> None: ... - currentChanged: QtCore.pyqtSignal - widgetRemoved: QtCore.pyqtSignal - def heightForWidth(self, width: int) -> int: ... def hasHeightForWidth(self) -> bool: ... def setStackingMode(self, stackingMode: 'QStackedLayout.StackingMode') -> None: ... def stackingMode(self) -> 'QStackedLayout.StackingMode': ... def setCurrentWidget(self, w: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... - # def currentChanged(self, index: int) -> None: ... - # def widgetRemoved(self, index: int) -> None: ... + currentChanged: QtCore.pyqtSignal + widgetRemoved: QtCore.pyqtSignal def setGeometry(self, rect: QtCore.QRect) -> None: ... def takeAt(self, a0: int) -> QLayoutItem: ... def itemAt(self, a0: int) -> QLayoutItem: ... @@ -7633,19 +7449,16 @@ class QStackedLayout(QLayout): def currentIndex(self) -> int: ... def currentWidget(self) -> QWidget: ... def insertWidget(self, index: int, w: QWidget) -> int: ... - def addWidget(self, w: QWidget) -> int: ... # type: ignore # fix issue #2 + def addWidget(self, w: QWidget) -> int: ... # type: ignore class QStackedWidget(QFrame): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - currentChanged: QtCore.pyqtSignal - widgetRemoved: QtCore.pyqtSignal - def event(self, e: QtCore.QEvent) -> bool: ... - # def widgetRemoved(self, index: int) -> None: ... - # def currentChanged(self, a0: int) -> None: ... + widgetRemoved: QtCore.pyqtSignal + currentChanged: QtCore.pyqtSignal def setCurrentWidget(self, w: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... def __len__(self) -> int: ... @@ -7663,15 +7476,13 @@ class QStatusBar(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - messageChanged: QtCore.pyqtSignal - def showEvent(self, a0: QtGui.QShowEvent) -> None: ... def event(self, a0: QtCore.QEvent) -> bool: ... def hideOrShow(self) -> None: ... def reformat(self) -> None: ... def resizeEvent(self, a0: QtGui.QResizeEvent) -> None: ... def paintEvent(self, a0: QtGui.QPaintEvent) -> None: ... - # def messageChanged(self, text: str) -> None: ... + messageChanged: QtCore.pyqtSignal def clearMessage(self) -> None: ... def showMessage(self, message: str, msecs: int = ...) -> None: ... def insertPermanentWidget(self, index: int, widget: QWidget, stretch: int = ...) -> int: ... @@ -8542,7 +8353,7 @@ class QStylePainter(QtGui.QPainter): def drawControl(self, ce: QStyle.ControlElement, opt: QStyleOption) -> None: ... def drawPrimitive(self, pe: QStyle.PrimitiveElement, opt: QStyleOption) -> None: ... def style(self) -> QStyle: ... - @typing.overload # type: ignore # fix issue #2 + @typing.overload # type: ignore def begin(self, w: QWidget) -> bool: ... @typing.overload def begin(self, pd: QtGui.QPaintDevice, w: QWidget) -> bool: ... @@ -8568,12 +8379,9 @@ class QSystemTrayIcon(QtCore.QObject): @typing.overload def __init__(self, icon: QtGui.QIcon, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... - activated: QtCore.pyqtSignal - messageClicked: QtCore.pyqtSignal - def event(self, event: QtCore.QEvent) -> bool: ... - # def messageClicked(self) -> None: ... - # def activated(self, reason: 'QSystemTrayIcon.ActivationReason') -> None: ... + messageClicked: QtCore.pyqtSignal + activated: QtCore.pyqtSignal def show(self) -> None: ... def setVisible(self, visible: bool) -> None: ... def hide(self) -> None: ... @@ -8617,12 +8425,6 @@ class QTabBar(QWidget): TriangularEast = ... # type: 'QTabBar.Shape' def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - - currentChanged: QtCore.pyqtSignal - tabBarClicked: QtCore.pyqtSignal - tabBarDoubleClicked: QtCore.pyqtSignal - tabCloseRequested: QtCore.pyqtSignal - tabMoved: QtCore.pyqtSignal def setAccessibleTabName(self, index: int, name: str) -> None: ... def accessibleTabName(self, index: int) -> str: ... @@ -8631,13 +8433,13 @@ class QTabBar(QWidget): def changeCurrentOnDrag(self) -> bool: ... def setAutoHide(self, hide: bool) -> None: ... def autoHide(self) -> bool: ... - # def tabBarDoubleClicked(self, index: int) -> None: ... - # def tabBarClicked(self, index: int) -> None: ... + tabBarDoubleClicked: QtCore.pyqtSignal + tabBarClicked: QtCore.pyqtSignal def minimumTabSizeHint(self, index: int) -> QtCore.QSize: ... def wheelEvent(self, event: QtGui.QWheelEvent) -> None: ... def hideEvent(self, a0: QtGui.QHideEvent) -> None: ... - # def tabMoved(self, from_: int, to: int) -> None: ... - # def tabCloseRequested(self, index: int) -> None: ... + tabMoved: QtCore.pyqtSignal + tabCloseRequested: QtCore.pyqtSignal def setDocumentMode(self, set: bool) -> None: ... def documentMode(self) -> bool: ... def setMovable(self, movable: bool) -> None: ... @@ -8665,7 +8467,7 @@ class QTabBar(QWidget): def tabInserted(self, index: int) -> None: ... def tabSizeHint(self, index: int) -> QtCore.QSize: ... def initStyleOption(self, option: QStyleOptionTab, tabIndex: int) -> None: ... - # def currentChanged(self, index: int) -> None: ... + currentChanged: QtCore.pyqtSignal def setCurrentIndex(self, index: int) -> None: ... def usesScrollButtons(self) -> bool: ... def setUsesScrollButtons(self, useButtons: bool) -> None: ... @@ -8869,6 +8671,15 @@ class QTableWidget(QTableView): @typing.overload def __init__(self, rows: int, columns: int, parent: typing.Optional[QWidget] = ...) -> None: ... + def dropEvent(self, event: QtGui.QDropEvent) -> None: ... + def event(self, e: QtCore.QEvent) -> bool: ... + def itemFromIndex(self, index: QtCore.QModelIndex) -> QTableWidgetItem: ... + def indexFromItem(self, item: QTableWidgetItem) -> QtCore.QModelIndex: ... + def items(self, data: QtCore.QMimeData) -> typing.List[QTableWidgetItem]: ... + def supportedDropActions(self) -> QtCore.Qt.DropActions: ... + def dropMimeData(self, row: int, column: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... + def mimeData(self, items: typing.Iterable[QTableWidgetItem]) -> QtCore.QMimeData: ... + def mimeTypes(self) -> typing.List[str]: ... currentCellChanged: QtCore.pyqtSignal cellChanged: QtCore.pyqtSignal cellEntered: QtCore.pyqtSignal @@ -8884,31 +8695,6 @@ class QTableWidget(QTableView): itemDoubleClicked: QtCore.pyqtSignal itemClicked: QtCore.pyqtSignal itemPressed: QtCore.pyqtSignal - - def dropEvent(self, event: QtGui.QDropEvent) -> None: ... - def event(self, e: QtCore.QEvent) -> bool: ... - def itemFromIndex(self, index: QtCore.QModelIndex) -> QTableWidgetItem: ... - def indexFromItem(self, item: QTableWidgetItem) -> QtCore.QModelIndex: ... - def items(self, data: QtCore.QMimeData) -> typing.List[QTableWidgetItem]: ... - def supportedDropActions(self) -> QtCore.Qt.DropActions: ... - def dropMimeData(self, row: int, column: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... - def mimeData(self, items: typing.Iterable[QTableWidgetItem]) -> QtCore.QMimeData: ... - def mimeTypes(self) -> typing.List[str]: ... - # def currentCellChanged(self, currentRow: int, currentColumn: int, previousRow: int, previousColumn: int) -> None: ... - # def cellChanged(self, row: int, column: int) -> None: ... - # def cellEntered(self, row: int, column: int) -> None: ... - # def cellActivated(self, row: int, column: int) -> None: ... - # def cellDoubleClicked(self, row: int, column: int) -> None: ... - # def cellClicked(self, row: int, column: int) -> None: ... - # def cellPressed(self, row: int, column: int) -> None: ... - # def itemSelectionChanged(self) -> None: ... - # def currentItemChanged(self, current: QTableWidgetItem, previous: QTableWidgetItem) -> None: ... - # def itemChanged(self, item: QTableWidgetItem) -> None: ... - # def itemEntered(self, item: QTableWidgetItem) -> None: ... - # def itemActivated(self, item: QTableWidgetItem) -> None: ... - # def itemDoubleClicked(self, item: QTableWidgetItem) -> None: ... - # def itemClicked(self, item: QTableWidgetItem) -> None: ... - # def itemPressed(self, item: QTableWidgetItem) -> None: ... def clearContents(self) -> None: ... def clear(self) -> None: ... def removeColumn(self, column: int) -> None: ... @@ -8932,8 +8718,8 @@ class QTableWidget(QTableView): def removeCellWidget(self, arow: int, acolumn: int) -> None: ... def setCellWidget(self, row: int, column: int, widget: QWidget) -> None: ... def cellWidget(self, row: int, column: int) -> QWidget: ... - def closePersistentEditor(self, item: QTableWidgetItem) -> None: ... # type: ignore # fix issue #2 - def openPersistentEditor(self, item: QTableWidgetItem) -> None: ... # type: ignore # fix issue #2 + def closePersistentEditor(self, item: QTableWidgetItem) -> None: ... # type: ignore + def openPersistentEditor(self, item: QTableWidgetItem) -> None: ... # type: ignore def editItem(self, item: QTableWidgetItem) -> None: ... def isSortingEnabled(self) -> bool: ... def setSortingEnabled(self, enable: bool) -> None: ... @@ -8982,18 +8768,13 @@ class QTabWidget(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - currentChanged: QtCore.pyqtSignal - tabBarClicked: QtCore.pyqtSignal - tabBarDoubleClicked: QtCore.pyqtSignal - tabCloseRequested: QtCore.pyqtSignal - def setTabBarAutoHide(self, enabled: bool) -> None: ... def tabBarAutoHide(self) -> bool: ... - # def tabBarDoubleClicked(self, index: int) -> None: ... - # def tabBarClicked(self, index: int) -> None: ... + tabBarDoubleClicked: QtCore.pyqtSignal + tabBarClicked: QtCore.pyqtSignal def hasHeightForWidth(self) -> bool: ... def heightForWidth(self, width: int) -> int: ... - # def tabCloseRequested(self, index: int) -> None: ... + tabCloseRequested: QtCore.pyqtSignal def setDocumentMode(self, set: bool) -> None: ... def documentMode(self) -> bool: ... def setMovable(self, movable: bool) -> None: ... @@ -9017,7 +8798,7 @@ class QTabWidget(QWidget): def tabRemoved(self, index: int) -> None: ... def tabInserted(self, index: int) -> None: ... def initStyleOption(self, option: QStyleOptionTabWidgetFrame) -> None: ... - # def currentChanged(self, index: int) -> None: ... + currentChanged: QtCore.pyqtSignal def setCurrentWidget(self, widget: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... def cornerWidget(self, corner: QtCore.Qt.Corner = ...) -> QWidget: ... @@ -9098,15 +8879,11 @@ class QTextEdit(QAbstractScrollArea): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... @typing.overload def __init__(self, text: str, parent: typing.Optional[QWidget] = ...) -> None: ... - - cursorPositionChanged: QtCore.pyqtSignal - selectionChanged: QtCore.pyqtSignal - copyAvailable: QtCore.pyqtSignal - currentCharFormatChanged: QtCore.pyqtSignal - redoAvailable: QtCore.pyqtSignal - undoAvailable: QtCore.pyqtSignal - textChanged: QtCore.pyqtSignal + def setMarkdown(self, markdown: str) -> None: ... + def toMarkdown(self, features: typing.Union[QtGui.QTextDocument.MarkdownFeatures, QtGui.QTextDocument.MarkdownFeature] = ...) -> str: ... + def setTabStopDistance(self, distance: float) -> None: ... + def tabStopDistance(self) -> float: ... def placeholderText(self) -> str: ... def setPlaceholderText(self, placeholderText: str) -> None: ... def setTextBackgroundColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, QtGui.QGradient]) -> None: ... @@ -9141,13 +8918,13 @@ class QTextEdit(QAbstractScrollArea): def keyPressEvent(self, e: QtGui.QKeyEvent) -> None: ... def timerEvent(self, e: QtCore.QTimerEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - # def cursorPositionChanged(self) -> None: ... - # def selectionChanged(self) -> None: ... - # def copyAvailable(self, b: bool) -> None: ... - # def currentCharFormatChanged(self, format: QtGui.QTextCharFormat) -> None: ... - # def redoAvailable(self, b: bool) -> None: ... - # def undoAvailable(self, b: bool) -> None: ... - # def textChanged(self) -> None: ... + cursorPositionChanged: QtCore.pyqtSignal + selectionChanged: QtCore.pyqtSignal + copyAvailable: QtCore.pyqtSignal + currentCharFormatChanged: QtCore.pyqtSignal + redoAvailable: QtCore.pyqtSignal + undoAvailable: QtCore.pyqtSignal + textChanged: QtCore.pyqtSignal def zoomOut(self, range: int = ...) -> None: ... def zoomIn(self, range: int = ...) -> None: ... def undo(self) -> None: ... @@ -9202,10 +8979,12 @@ class QTextEdit(QAbstractScrollArea): def append(self, text: str) -> None: ... def toHtml(self) -> str: ... def toPlainText(self) -> str: ... - @typing.overload # type: ignore # fix issue #1 + @typing.overload # type: ignore def find(self, exp: str, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... @typing.overload def find(self, exp: QtCore.QRegExp, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + @typing.overload + def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... def setWordWrapMode(self, policy: QtGui.QTextOption.WrapMode) -> None: ... def wordWrapMode(self) -> QtGui.QTextOption.WrapMode: ... def setLineWrapColumnOrWidth(self, w: int) -> None: ... @@ -9242,15 +9021,10 @@ class QTextEdit(QAbstractScrollArea): class QTextBrowser(QTextEdit): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - - anchorClicked: QtCore.pyqtSignal - highlighted: QtCore.pyqtSignal - sourceChanged: QtCore.pyqtSignal - forwardAvailable: QtCore.pyqtSignal - backwardAvailable: QtCore.pyqtSignal - historyChanged: QtCore.pyqtSignal - # def historyChanged(self) -> None: ... + def doSetSource(self, name: QtCore.QUrl, type: QtGui.QTextDocument.ResourceType = ...) -> None: ... + def sourceType(self) -> QtGui.QTextDocument.ResourceType: ... + historyChanged: QtCore.pyqtSignal def forwardHistoryCount(self) -> int: ... def backwardHistoryCount(self) -> int: ... def historyUrl(self, a0: int) -> QtCore.QUrl: ... @@ -9270,19 +9044,19 @@ class QTextBrowser(QTextEdit): def mouseMoveEvent(self, ev: QtGui.QMouseEvent) -> None: ... def keyPressEvent(self, ev: QtGui.QKeyEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... - # def anchorClicked(self, a0: QtCore.QUrl) -> None: ... - # @typing.overload - # def highlighted(self, a0: QtCore.QUrl) -> None: ... - # @typing.overload - # def highlighted(self, a0: str) -> None: ... - # def sourceChanged(self, a0: QtCore.QUrl) -> None: ... - # def forwardAvailable(self, a0: bool) -> None: ... - # def backwardAvailable(self, a0: bool) -> None: ... + anchorClicked: QtCore.pyqtSignal + highlighted: QtCore.pyqtSignal + sourceChanged: QtCore.pyqtSignal + forwardAvailable: QtCore.pyqtSignal + backwardAvailable: QtCore.pyqtSignal def reload(self) -> None: ... def home(self) -> None: ... def forward(self) -> None: ... def backward(self) -> None: ... + @typing.overload def setSource(self, name: QtCore.QUrl) -> None: ... + @typing.overload + def setSource(self, name: QtCore.QUrl, type: QtGui.QTextDocument.ResourceType) -> None: ... def loadResource(self, type: int, name: QtCore.QUrl) -> typing.Any: ... def setSearchPaths(self, paths: typing.Iterable[str]) -> None: ... def searchPaths(self) -> typing.List[str]: ... @@ -9296,15 +9070,6 @@ class QToolBar(QWidget): @typing.overload def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - visibilityChanged: QtCore.pyqtSignal - topLevelChanged: QtCore.pyqtSignal - toolButtonStyleChanged: QtCore.pyqtSignal - iconSizeChanged: QtCore.pyqtSignal - orientationChanged: QtCore.pyqtSignal - allowedAreasChanged: QtCore.pyqtSignal - movableChanged: QtCore.pyqtSignal - actionTriggered: QtCore.pyqtSignal - def isFloating(self) -> bool: ... def setFloatable(self, floatable: bool) -> None: ... def isFloatable(self) -> bool: ... @@ -9313,14 +9078,14 @@ class QToolBar(QWidget): def changeEvent(self, event: QtCore.QEvent) -> None: ... def actionEvent(self, event: QtGui.QActionEvent) -> None: ... def initStyleOption(self, option: QStyleOptionToolBar) -> None: ... - # def visibilityChanged(self, visible: bool) -> None: ... - # def topLevelChanged(self, topLevel: bool) -> None: ... - # def toolButtonStyleChanged(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... - # def iconSizeChanged(self, iconSize: QtCore.QSize) -> None: ... - # def orientationChanged(self, orientation: QtCore.Qt.Orientation) -> None: ... - # def allowedAreasChanged(self, allowedAreas: typing.Union[QtCore.Qt.ToolBarAreas, QtCore.Qt.ToolBarArea]) -> None: ... - # def movableChanged(self, movable: bool) -> None: ... - # def actionTriggered(self, action: QAction) -> None: ... + visibilityChanged: QtCore.pyqtSignal + topLevelChanged: QtCore.pyqtSignal + toolButtonStyleChanged: QtCore.pyqtSignal + iconSizeChanged: QtCore.pyqtSignal + orientationChanged: QtCore.pyqtSignal + allowedAreasChanged: QtCore.pyqtSignal + movableChanged: QtCore.pyqtSignal + actionTriggered: QtCore.pyqtSignal def setToolButtonStyle(self, toolButtonStyle: QtCore.Qt.ToolButtonStyle) -> None: ... def setIconSize(self, iconSize: QtCore.QSize) -> None: ... def widgetForAction(self, action: QAction) -> QWidget: ... @@ -9359,15 +9124,13 @@ class QToolBar(QWidget): class QToolBox(QFrame): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - - currentChanged: QtCore.pyqtSignal - + def changeEvent(self, a0: QtCore.QEvent) -> None: ... def showEvent(self, e: QtGui.QShowEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def itemRemoved(self, index: int) -> None: ... def itemInserted(self, index: int) -> None: ... - # def currentChanged(self, index: int) -> None: ... + currentChanged: QtCore.pyqtSignal def setCurrentWidget(self, widget: QWidget) -> None: ... def setCurrentIndex(self, index: int) -> None: ... def __len__(self) -> int: ... @@ -9404,8 +9167,6 @@ class QToolButton(QAbstractButton): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - triggered: QtCore.pyqtSignal - def hitButton(self, pos: QtCore.QPoint) -> bool: ... def nextCheckState(self) -> None: ... def mouseReleaseEvent(self, a0: QtGui.QMouseEvent) -> None: ... @@ -9418,7 +9179,7 @@ class QToolButton(QAbstractButton): def mousePressEvent(self, a0: QtGui.QMouseEvent) -> None: ... def event(self, e: QtCore.QEvent) -> bool: ... def initStyleOption(self, option: QStyleOptionToolButton) -> None: ... - # def triggered(self, a0: QAction) -> None: ... + triggered: QtCore.pyqtSignal def setDefaultAction(self, a0: QAction) -> None: ... def setToolButtonStyle(self, style: QtCore.Qt.ToolButtonStyle) -> None: ... def showMenu(self) -> None: ... @@ -9469,9 +9230,6 @@ class QTreeView(QAbstractItemView): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - collapsed: QtCore.pyqtSignal - expanded: QtCore.pyqtSignal - def resetIndentation(self) -> None: ... def viewportSizeHint(self) -> QtCore.QSize: ... def treePosition(self) -> int: ... @@ -9538,8 +9296,8 @@ class QTreeView(QAbstractItemView): def showColumn(self, column: int) -> None: ... def hideColumn(self, column: int) -> None: ... def dataChanged(self, topLeft: QtCore.QModelIndex, bottomRight: QtCore.QModelIndex, roles: typing.Iterable[int] = ...) -> None: ... - # def collapsed(self, index: QtCore.QModelIndex) -> None: ... - # def expanded(self, index: QtCore.QModelIndex) -> None: ... + collapsed: QtCore.pyqtSignal + expanded: QtCore.pyqtSignal def reset(self) -> None: ... def indexBelow(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... def indexAbove(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ... @@ -9664,17 +9422,6 @@ class QTreeWidget(QTreeView): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - itemSelectionChanged: QtCore.pyqtSignal - currentItemChanged: QtCore.pyqtSignal - itemCollapsed: QtCore.pyqtSignal - itemExpanded: QtCore.pyqtSignal - itemChanged: QtCore.pyqtSignal - itemEntered: QtCore.pyqtSignal - itemActivated: QtCore.pyqtSignal - itemDoubleClicked: QtCore.pyqtSignal - itemClicked: QtCore.pyqtSignal - itemPressed: QtCore.pyqtSignal - def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... def removeItemWidget(self, item: QTreeWidgetItem, column: int) -> None: ... def itemBelow(self, item: QTreeWidgetItem) -> QTreeWidgetItem: ... @@ -9691,16 +9438,16 @@ class QTreeWidget(QTreeView): def dropMimeData(self, parent: QTreeWidgetItem, index: int, data: QtCore.QMimeData, action: QtCore.Qt.DropAction) -> bool: ... def mimeData(self, items: typing.Iterable[QTreeWidgetItem]) -> QtCore.QMimeData: ... def mimeTypes(self) -> typing.List[str]: ... - # def itemSelectionChanged(self) -> None: ... - # def currentItemChanged(self, current: QTreeWidgetItem, previous: QTreeWidgetItem) -> None: ... - # def itemCollapsed(self, item: QTreeWidgetItem) -> None: ... - # def itemExpanded(self, item: QTreeWidgetItem) -> None: ... - # def itemChanged(self, item: QTreeWidgetItem, column: int) -> None: ... - # def itemEntered(self, item: QTreeWidgetItem, column: int) -> None: ... - # def itemActivated(self, item: QTreeWidgetItem, column: int) -> None: ... - # def itemDoubleClicked(self, item: QTreeWidgetItem, column: int) -> None: ... - # def itemClicked(self, item: QTreeWidgetItem, column: int) -> None: ... - # def itemPressed(self, item: QTreeWidgetItem, column: int) -> None: ... + itemSelectionChanged: QtCore.pyqtSignal + currentItemChanged: QtCore.pyqtSignal + itemCollapsed: QtCore.pyqtSignal + itemExpanded: QtCore.pyqtSignal + itemChanged: QtCore.pyqtSignal + itemEntered: QtCore.pyqtSignal + itemActivated: QtCore.pyqtSignal + itemDoubleClicked: QtCore.pyqtSignal + itemClicked: QtCore.pyqtSignal + itemPressed: QtCore.pyqtSignal def clear(self) -> None: ... def collapseItem(self, item: QTreeWidgetItem) -> None: ... def expandItem(self, item: QTreeWidgetItem) -> None: ... @@ -9709,8 +9456,8 @@ class QTreeWidget(QTreeView): def selectedItems(self) -> typing.List[QTreeWidgetItem]: ... def setItemWidget(self, item: QTreeWidgetItem, column: int, widget: QWidget) -> None: ... def itemWidget(self, item: QTreeWidgetItem, column: int) -> QWidget: ... - def closePersistentEditor(self, item: QTreeWidgetItem, column: int = ...) -> None: ... # type: ignore # fix issue #2 - def openPersistentEditor(self, item: QTreeWidgetItem, column: int = ...) -> None: ... # type: ignore # fix issue #2 + def closePersistentEditor(self, item: QTreeWidgetItem, column: int = ...) -> None: ... # type: ignore + def openPersistentEditor(self, item: QTreeWidgetItem, column: int = ...) -> None: ... # type: ignore def editItem(self, item: QTreeWidgetItem, column: int = ...) -> None: ... def sortItems(self, column: int, order: QtCore.Qt.SortOrder) -> None: ... def sortColumn(self) -> int: ... @@ -9802,14 +9549,6 @@ class QUndoGroup(QtCore.QObject): canUndoChanged: QtCore.pyqtSignal canRedoChanged: QtCore.pyqtSignal activeStackChanged: QtCore.pyqtSignal - - # def undoTextChanged(self, undoText: str) -> None: ... - # def redoTextChanged(self, redoText: str) -> None: ... - # def indexChanged(self, idx: int) -> None: ... - # def cleanChanged(self, clean: bool) -> None: ... - # def canUndoChanged(self, canUndo: bool) -> None: ... - # def canRedoChanged(self, canRedo: bool) -> None: ... - # def activeStackChanged(self, stack: 'QUndoStack') -> None: ... def undo(self) -> None: ... def setActiveStack(self, stack: 'QUndoStack') -> None: ... def redo(self) -> None: ... @@ -9850,22 +9589,15 @@ class QUndoStack(QtCore.QObject): def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ... + def command(self, index: int) -> QUndoCommand: ... + def undoLimit(self) -> int: ... + def setUndoLimit(self, limit: int) -> None: ... undoTextChanged: QtCore.pyqtSignal redoTextChanged: QtCore.pyqtSignal indexChanged: QtCore.pyqtSignal cleanChanged: QtCore.pyqtSignal canUndoChanged: QtCore.pyqtSignal canRedoChanged: QtCore.pyqtSignal - - def command(self, index: int) -> QUndoCommand: ... - def undoLimit(self) -> int: ... - def setUndoLimit(self, limit: int) -> None: ... - # def undoTextChanged(self, undoText: str) -> None: ... - # def redoTextChanged(self, redoText: str) -> None: ... - # def indexChanged(self, idx: int) -> None: ... - # def cleanChanged(self, clean: bool) -> None: ... - # def canUndoChanged(self, canUndo: bool) -> None: ... - # def canRedoChanged(self, canRedo: bool) -> None: ... def resetClean(self) -> None: ... def undo(self) -> None: ... def setIndex(self, idx: int) -> None: ... @@ -10005,14 +9737,8 @@ class QWizard(QDialog): def __init__(self, parent: typing.Optional[QWidget] = ..., flags: typing.Union[QtCore.Qt.WindowFlags, QtCore.Qt.WindowType] = ...) -> None: ... - customButtonClicked: QtCore.pyqtSignal - helpRequested: QtCore.pyqtSignal - currentIdChanged: QtCore.pyqtSignal pageRemoved: QtCore.pyqtSignal pageAdded: QtCore.pyqtSignal - - # def pageRemoved(self, id: int) -> None: ... - # def pageAdded(self, id: int) -> None: ... def sideWidget(self) -> QWidget: ... def setSideWidget(self, widget: QWidget) -> None: ... def pageIds(self) -> typing.List[int]: ... @@ -10026,9 +9752,9 @@ class QWizard(QDialog): def restart(self) -> None: ... def next(self) -> None: ... def back(self) -> None: ... - # def customButtonClicked(self, which: int) -> None: ... - # def helpRequested(self) -> None: ... - # def currentIdChanged(self, id: int) -> None: ... + customButtonClicked: QtCore.pyqtSignal + helpRequested: QtCore.pyqtSignal + currentIdChanged: QtCore.pyqtSignal def sizeHint(self) -> QtCore.QSize: ... def setVisible(self, visible: bool) -> None: ... def setDefaultProperty(self, className: str, property: str, changedSignal: PYQT_SIGNAL) -> None: ... @@ -10068,13 +9794,11 @@ class QWizardPage(QWidget): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - completeChanged: QtCore.pyqtSignal - def wizard(self) -> QWizard: ... def registerField(self, name: str, widget: QWidget, property: typing.Optional[str] = ..., changedSignal: PYQT_SIGNAL = ...) -> None: ... def field(self, name: str) -> typing.Any: ... def setField(self, name: str, value: typing.Any) -> None: ... - # def completeChanged(self) -> None: ... + completeChanged: QtCore.pyqtSignal def nextId(self) -> int: ... def isComplete(self) -> bool: ... def validatePage(self) -> bool: ... From c00521912e150427a7493799ae57a7e88500297a Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 16:35:16 +0200 Subject: [PATCH 10/12] Update QtXml.pyi --- PyQt5-stubs/QtXml.pyi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/PyQt5-stubs/QtXml.pyi b/PyQt5-stubs/QtXml.pyi index e8a41d04..d7e261c8 100644 --- a/PyQt5-stubs/QtXml.pyi +++ b/PyQt5-stubs/QtXml.pyi @@ -1,6 +1,6 @@ # The PEP 484 type hints stub file for the QtXml module. # -# Generated by SIP 5.1.2 +# Generated by SIP 5.2.0 # # Copyright (c) 2020 Riverbank Computing Limited # @@ -129,7 +129,7 @@ class QXmlReader(sip.simplewrapper): @typing.overload def __init__(self, a0: 'QXmlReader') -> None: ... - # @typing.overload # fix issue #4 + # @typing.overload # def parse(self, input: QXmlInputSource) -> bool: ... # @typing.overload def parse(self, input: QXmlInputSource) -> bool: ... @@ -593,12 +593,12 @@ class QDomElement(QDomNode): @typing.overload def setAttributeNS(self, nsURI: str, qName: str, value: str) -> None: ... @typing.overload - # def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ... # fix issue #4 + # def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ... # @typing.overload # def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ... # @typing.overload def setAttributeNS(self, nsURI: str, qName: str, value: float) -> None: ... - # @typing.overload # fix issue #4 + # @typing.overload # def setAttributeNS(self, nsURI: str, qName: str, value: int) -> None: ... def attributeNS(self, nsURI: str, localName: str, defaultValue: str = ...) -> str: ... def hasAttribute(self, name: str) -> bool: ... @@ -610,12 +610,12 @@ class QDomElement(QDomNode): @typing.overload def setAttribute(self, name: str, value: str) -> None: ... @typing.overload - # def setAttribute(self, name: str, value: int) -> None: ... # fix issue #4 + # def setAttribute(self, name: str, value: int) -> None: ... # @typing.overload # def setAttribute(self, name: str, value: int) -> None: ... # @typing.overload def setAttribute(self, name: str, value: float) -> None: ... - # @typing.overload # fix issue #4 + # @typing.overload # def setAttribute(self, name: str, value: int) -> None: ... def attribute(self, name: str, defaultValue: str = ...) -> str: ... From da319ec52e5a176fc0c56e978fc4bc3c7ec5625f Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 18:02:31 +0200 Subject: [PATCH 11/12] Fix issues to make mypy succeed --- PyQt5-stubs/QtCore.pyi | 23 +++++++------- PyQt5-stubs/QtGui.pyi | 66 +++++++++++++++++++-------------------- PyQt5-stubs/QtNetwork.pyi | 6 ++-- PyQt5-stubs/QtTest.pyi | 12 +++---- PyQt5-stubs/QtWidgets.pyi | 20 ++++++------ 5 files changed, 63 insertions(+), 64 deletions(-) diff --git a/PyQt5-stubs/QtCore.pyi b/PyQt5-stubs/QtCore.pyi index 7283ff6e..11065c12 100644 --- a/PyQt5-stubs/QtCore.pyi +++ b/PyQt5-stubs/QtCore.pyi @@ -2869,7 +2869,7 @@ class QConcatenateTablesProxyModel(QAbstractItemModel): def columnCount(self, parent: QModelIndex = ...) -> int: ... def headerData(self, section: int, orientation: Qt.Orientation, role: int = ...) -> typing.Any: ... def rowCount(self, parent: QModelIndex = ...) -> int: ... - def parent(self, index: QModelIndex) -> QModelIndex: ... + def parent(self, index: QModelIndex) -> QModelIndex: ... # type: ignore def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... def flags(self, index: QModelIndex) -> Qt.ItemFlags: ... def setItemData(self, index: QModelIndex, roles: typing.Dict[int, typing.Any]) -> bool: ... @@ -3434,10 +3434,10 @@ class QDate(sip.simplewrapper): def year(self) -> int: ... @typing.overload def year(self, cal: QCalendar) -> int: ... - @typing.overload + # @typing.overload def isValid(self) -> bool: ... - @typing.overload - @staticmethod + # @typing.overload + @staticmethod # type: ignore def isValid(y: int, m: int, d: int) -> bool: ... def __bool__(self) -> int: ... def isNull(self) -> bool: ... @@ -6661,18 +6661,17 @@ class QProcess(QIODevice): def processChannelMode(self) -> 'QProcess.ProcessChannelMode': ... @staticmethod def systemEnvironment() -> typing.List[str]: ... - @typing.overload + def startDetached(self) -> typing.Tuple[bool, int]: ... + @typing.overload # type: ignore @staticmethod def startDetached(program: str, arguments: typing.Iterable[str], workingDirectory: str) -> typing.Tuple[bool, int]: ... - @typing.overload + @typing.overload # type: ignore @staticmethod def startDetached(program: str, arguments: typing.Iterable[str]) -> bool: ... - @typing.overload + @typing.overload # type: ignore @staticmethod def startDetached(program: str) -> bool: ... @typing.overload - def startDetached(self) -> typing.Tuple[bool, int]: ... - @typing.overload @staticmethod def execute(program: str, arguments: typing.Iterable[str]) -> int: ... @typing.overload @@ -6758,7 +6757,7 @@ class QRandomGenerator(sip.simplewrapper): @typing.overload def bounded(self, highest: float) -> float: ... @typing.overload - def bounded(self, highest: int) -> int: ... + def bounded(self, highest: int) -> int: ... # type: ignore @typing.overload def bounded(self, lowest: int, highest: int) -> int: ... def generateDouble(self) -> float: ... @@ -8408,8 +8407,8 @@ class QTransposeProxyModel(QAbstractProxyModel): def removeRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... def insertRows(self, row: int, count: int, parent: QModelIndex = ...) -> bool: ... def index(self, row: int, column: int, parent: QModelIndex = ...) -> QModelIndex: ... - def parent(self, index: QModelIndex) -> QModelIndex: ... - def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... + def parent(self, index: QModelIndex) -> QModelIndex: ... # type: ignore + def mapToSource(self, proxyIndex: QModelIndex) -> QModelIndex: ... # type: ignore def mapFromSource(self, sourceIndex: QModelIndex) -> QModelIndex: ... def itemData(self, index: QModelIndex) -> typing.Dict[int, typing.Any]: ... def span(self, index: QModelIndex) -> QSize: ... diff --git a/PyQt5-stubs/QtGui.pyi b/PyQt5-stubs/QtGui.pyi index b77ffcf2..cd4ad4c8 100644 --- a/PyQt5-stubs/QtGui.pyi +++ b/PyQt5-stubs/QtGui.pyi @@ -176,7 +176,7 @@ class QPixmap(QPaintDevice): @typing.overload def __init__(self, xpm: typing.List[str]) -> None: ... @typing.overload - def __init__(self, a0: 'QPixmap') -> None: ... + def __init__(self, a0: 'QPixmap') -> None: ... # type: ignore @typing.overload def __init__(self, variant: typing.Any) -> None: ... @@ -938,26 +938,26 @@ class QClipboard(QtCore.QObject): class QColorSpace(sip.simplewrapper): - class TransferFunction(int): ... - Custom = ... # type: 'QColorSpace.TransferFunction' - Linear = ... # type: 'QColorSpace.TransferFunction' - Gamma = ... # type: 'QColorSpace.TransferFunction' - SRgb = ... # type: 'QColorSpace.TransferFunction' - ProPhotoRgb = ... # type: 'QColorSpace.TransferFunction' + class TransferFunction(int): + Custom = ... # type: 'QColorSpace.TransferFunction' + Linear = ... # type: 'QColorSpace.TransferFunction' + Gamma = ... # type: 'QColorSpace.TransferFunction' + SRgb = ... # type: 'QColorSpace.TransferFunction' + ProPhotoRgb = ... # type: 'QColorSpace.TransferFunction' - class Primaries(int): ... - Custom = ... # type: 'QColorSpace.Primaries' - SRgb = ... # type: 'QColorSpace.Primaries' - AdobeRgb = ... # type: 'QColorSpace.Primaries' - DciP3D65 = ... # type: 'QColorSpace.Primaries' - ProPhotoRgb = ... # type: 'QColorSpace.Primaries' + class Primaries(int): + Custom = ... # type: 'QColorSpace.Primaries' + SRgb = ... # type: 'QColorSpace.Primaries' + AdobeRgb = ... # type: 'QColorSpace.Primaries' + DciP3D65 = ... # type: 'QColorSpace.Primaries' + ProPhotoRgb = ... # type: 'QColorSpace.Primaries' - class NamedColorSpace(int): ... - SRgb = ... # type: 'QColorSpace.NamedColorSpace' - SRgbLinear = ... # type: 'QColorSpace.NamedColorSpace' - AdobeRgb = ... # type: 'QColorSpace.NamedColorSpace' - DisplayP3 = ... # type: 'QColorSpace.NamedColorSpace' - ProPhotoRgb = ... # type: 'QColorSpace.NamedColorSpace' + class NamedColorSpace(int): + SRgb = ... # type: 'QColorSpace.NamedColorSpace' + SRgbLinear = ... # type: 'QColorSpace.NamedColorSpace' + AdobeRgb = ... # type: 'QColorSpace.NamedColorSpace' + DisplayP3 = ... # type: 'QColorSpace.NamedColorSpace' + ProPhotoRgb = ... # type: 'QColorSpace.NamedColorSpace' @typing.overload def __init__(self) -> None: ... @@ -2667,7 +2667,7 @@ class QImage(QPaintDevice): @typing.overload def fill(self, color: QtCore.Qt.GlobalColor) -> None: ... @typing.overload - def fill(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... + def fill(self, color: typing.Union[QColor, QtCore.Qt.GlobalColor, QGradient]) -> None: ... # type: ignore @typing.overload def fill(self, pixel: int) -> None: ... def setColorTable(self, colors: typing.Iterable[int]) -> None: ... @@ -3090,11 +3090,11 @@ class QMatrix4x4(sip.simplewrapper): @typing.overload def map(self, point: QtCore.QPoint) -> QtCore.QPoint: ... @typing.overload - def map(self, point: QtCore.QPointF) -> QtCore.QPointF: ... + def map(self, point: QtCore.QPointF) -> QtCore.QPointF: ... # type: ignore @typing.overload - def map(self, point: 'QVector3D') -> 'QVector3D': ... + def map(self, point: 'QVector3D') -> 'QVector3D': ... # type: ignore @typing.overload - def map(self, point: 'QVector4D') -> 'QVector4D': ... + def map(self, point: 'QVector4D') -> 'QVector4D': ... # type: ignore def fill(self, value: float) -> None: ... def setToIdentity(self) -> None: ... def isIdentity(self) -> bool: ... @@ -3109,7 +3109,7 @@ class QMatrix4x4(sip.simplewrapper): @typing.overload def mapRect(self, rect: QtCore.QRect) -> QtCore.QRect: ... @typing.overload - def mapRect(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... + def mapRect(self, rect: QtCore.QRectF) -> QtCore.QRectF: ... # type: ignore @typing.overload def toTransform(self) -> 'QTransform': ... @typing.overload @@ -3121,7 +3121,7 @@ class QMatrix4x4(sip.simplewrapper): @typing.overload def ortho(self, rect: QtCore.QRect) -> None: ... @typing.overload - def ortho(self, rect: QtCore.QRectF) -> None: ... + def ortho(self, rect: QtCore.QRectF) -> None: ... # type: ignore @typing.overload def ortho(self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None: ... @typing.overload @@ -3758,11 +3758,11 @@ class QOpenGLShaderProgram(QtCore.QObject): @typing.overload def setUniformValue(self, location: int, point: QtCore.QPoint) -> None: ... @typing.overload - def setUniformValue(self, location: int, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def setUniformValue(self, location: int, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... # type: ignore @typing.overload def setUniformValue(self, location: int, size: QtCore.QSize) -> None: ... @typing.overload - def setUniformValue(self, location: int, size: QtCore.QSizeF) -> None: ... + def setUniformValue(self, location: int, size: QtCore.QSizeF) -> None: ... # type: ignore @typing.overload def setUniformValue(self, location: int, value: QMatrix2x2) -> None: ... @typing.overload @@ -3804,11 +3804,11 @@ class QOpenGLShaderProgram(QtCore.QObject): @typing.overload def setUniformValue(self, name: str, point: QtCore.QPoint) -> None: ... @typing.overload - def setUniformValue(self, name: str, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... + def setUniformValue(self, name: str, point: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... # type: ignore @typing.overload def setUniformValue(self, name: str, size: QtCore.QSize) -> None: ... @typing.overload - def setUniformValue(self, name: str, size: QtCore.QSizeF) -> None: ... + def setUniformValue(self, name: str, size: QtCore.QSizeF) -> None: ... # type: ignore @typing.overload def setUniformValue(self, name: str, value: QMatrix2x2) -> None: ... @typing.overload @@ -5214,7 +5214,7 @@ class QPainter(sip.simplewrapper): @typing.overload def drawRoundedRect(self, x: int, y: int, w: int, h: int, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... @typing.overload - def drawRoundedRect(self, rect: QtCore.QRect, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... + def drawRoundedRect(self, rect: QtCore.QRect, xRadius: float, yRadius: float, mode: QtCore.Qt.SizeMode = ...) -> None: ... # type: ignore def testRenderHint(self, hint: 'QPainter.RenderHint') -> bool: ... def combinedTransform(self) -> 'QTransform': ... def worldTransform(self) -> 'QTransform': ... @@ -5230,7 +5230,7 @@ class QPainter(sip.simplewrapper): @typing.overload def drawImage(self, r: QtCore.QRectF, image: QImage) -> None: ... @typing.overload - def drawImage(self, r: QtCore.QRect, image: QImage) -> None: ... + def drawImage(self, r: QtCore.QRect, image: QImage) -> None: ... # type: ignore @typing.overload def drawImage(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], image: QImage) -> None: ... # @typing.overload @@ -5240,11 +5240,11 @@ class QPainter(sip.simplewrapper): @typing.overload def drawImage(self, targetRect: QtCore.QRectF, image: QImage, sourceRect: QtCore.QRectF, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... @typing.overload - def drawImage(self, targetRect: QtCore.QRect, image: QImage, sourceRect: QtCore.QRect, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + def drawImage(self, targetRect: QtCore.QRect, image: QImage, sourceRect: QtCore.QRect, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... # type: ignore @typing.overload def drawImage(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint], image: QImage, sr: QtCore.QRectF, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... @typing.overload - def drawImage(self, p: QtCore.QPoint, image: QImage, sr: QtCore.QRect, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... + def drawImage(self, p: QtCore.QPoint, image: QImage, sr: QtCore.QRect, flags: typing.Union[QtCore.Qt.ImageConversionFlags, QtCore.Qt.ImageConversionFlag] = ...) -> None: ... # type: ignore @typing.overload def drawPoint(self, p: typing.Union[QtCore.QPointF, QtCore.QPoint]) -> None: ... @typing.overload diff --git a/PyQt5-stubs/QtNetwork.pyi b/PyQt5-stubs/QtNetwork.pyi index 85a4075b..fed0d1e1 100644 --- a/PyQt5-stubs/QtNetwork.pyi +++ b/PyQt5-stubs/QtNetwork.pyi @@ -34,7 +34,7 @@ PYQT_SLOT = typing.Union[typing.Callable[..., None], QtCore.pyqtBoundSignal] class QOcspRevocationReason(int): ... -None = ... # type: QOcspRevocationReason +# None = ... # type: QOcspRevocationReason Unspecified = ... # type: QOcspRevocationReason KeyCompromise = ... # type: QOcspRevocationReason CACompromise = ... # type: QOcspRevocationReason @@ -771,13 +771,13 @@ class QNetworkAccessManager(QtCore.QObject): @typing.overload def put(self, request: 'QNetworkRequest', data: QtCore.QIODevice) -> 'QNetworkReply': ... @typing.overload - def put(self, request: 'QNetworkRequest', data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkReply': ... + def put(self, request: 'QNetworkRequest', data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkReply': ... # type: ignore @typing.overload def put(self, request: 'QNetworkRequest', multiPart: QHttpMultiPart) -> 'QNetworkReply': ... @typing.overload def post(self, request: 'QNetworkRequest', data: QtCore.QIODevice) -> 'QNetworkReply': ... @typing.overload - def post(self, request: 'QNetworkRequest', data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkReply': ... + def post(self, request: 'QNetworkRequest', data: typing.Union[QtCore.QByteArray, bytes, bytearray]) -> 'QNetworkReply': ... # type: ignore @typing.overload def post(self, request: 'QNetworkRequest', multiPart: QHttpMultiPart) -> 'QNetworkReply': ... def get(self, request: 'QNetworkRequest') -> 'QNetworkReply': ... diff --git a/PyQt5-stubs/QtTest.pyi b/PyQt5-stubs/QtTest.pyi index e017ea61..053401a4 100644 --- a/PyQt5-stubs/QtTest.pyi +++ b/PyQt5-stubs/QtTest.pyi @@ -140,19 +140,19 @@ class QTest(sip.simplewrapper): @typing.overload def keyRelease(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload - def keyRelease(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def keyRelease(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... # type: ignore @typing.overload def keyRelease(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload - def keyRelease(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def keyRelease(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... # type: ignore @typing.overload def keyPress(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload - def keyPress(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def keyPress(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... # type: ignore @typing.overload def keyPress(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload - def keyPress(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def keyPress(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... # type: ignore @typing.overload def keyEvent(self, action: 'QTest.KeyAction', widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload @@ -165,9 +165,9 @@ class QTest(sip.simplewrapper): @typing.overload def keyClick(self, widget: QtWidgets.QWidget, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload - def keyClick(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def keyClick(self, widget: QtWidgets.QWidget, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... # type: ignore @typing.overload def keyClick(self, window: QtGui.QWindow, key: QtCore.Qt.Key, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... @typing.overload - def keyClick(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... + def keyClick(self, window: QtGui.QWindow, key: str, modifier: typing.Union[QtCore.Qt.KeyboardModifiers, QtCore.Qt.KeyboardModifier] = ..., delay: int = ...) -> None: ... # type: ignore def qSleep(self, ms: int) -> None: ... diff --git a/PyQt5-stubs/QtWidgets.pyi b/PyQt5-stubs/QtWidgets.pyi index ec3538f7..4dc8c64e 100644 --- a/PyQt5-stubs/QtWidgets.pyi +++ b/PyQt5-stubs/QtWidgets.pyi @@ -259,13 +259,13 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): @typing.overload def repaint(self, a0: QtCore.QRect) -> None: ... @typing.overload - def repaint(self, a0: QtGui.QRegion) -> None: ... + def repaint(self, a0: QtGui.QRegion) -> None: ... # type: ignore @typing.overload def update(self) -> None: ... @typing.overload def update(self, a0: QtCore.QRect) -> None: ... @typing.overload - def update(self, a0: QtGui.QRegion) -> None: ... + def update(self, a0: QtGui.QRegion) -> None: ... # type: ignore @typing.overload def update(self, ax: int, ay: int, aw: int, ah: int) -> None: ... def setUpdatesEnabled(self, enable: bool) -> None: ... @@ -330,7 +330,7 @@ class QWidget(QtCore.QObject, QtGui.QPaintDevice): @typing.overload def setMask(self, a0: QtGui.QBitmap) -> None: ... @typing.overload - def setMask(self, a0: QtGui.QRegion) -> None: ... + def setMask(self, a0: QtGui.QRegion) -> None: ... # type: ignore def unsetCursor(self) -> None: ... def setCursor(self, a0: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ... def cursor(self) -> QtGui.QCursor: ... @@ -1038,7 +1038,7 @@ class QAction(QtCore.QObject): class QActionGroup(QtCore.QObject): class ExclusionPolicy(int): ... - None = ... # type: 'QActionGroup.ExclusionPolicy' + # None = ... # type: 'QActionGroup.ExclusionPolicy' Exclusive = ... # type: 'QActionGroup.ExclusionPolicy' ExclusiveOptional = ... # type: 'QActionGroup.ExclusionPolicy' @@ -1188,7 +1188,7 @@ class QApplication(QtGui.QGuiApplication): def colorSpec() -> int: ... @typing.overload @staticmethod - def setStyle(a0: 'QStyle') -> None: ... + def setStyle(a0: 'QStyle') -> None: ... # type: ignore @typing.overload @staticmethod def setStyle(a0: str) -> 'QStyle': ... @@ -2705,7 +2705,7 @@ class QDesktopWidget(QWidget): @typing.overload def screenGeometry(self, point: QtCore.QPoint) -> QtCore.QRect: ... def screenCount(self) -> int: ... - def screen(self, screen: int = ...) -> QWidget: ... + def screen(self, screen: int = ...) -> QWidget: ... # type: ignore @typing.overload def screenNumber(self, widget: typing.Optional[QWidget] = ...) -> int: ... @typing.overload @@ -4995,7 +4995,7 @@ class QGraphicsRotation(QGraphicsTransform): @typing.overload def setAxis(self, axis: QtGui.QVector3D) -> None: ... @typing.overload - def setAxis(self, axis: QtCore.Qt.Axis) -> None: ... + def setAxis(self, axis: QtCore.Qt.Axis) -> None: ... # type: ignore def axis(self) -> QtGui.QVector3D: ... def setAngle(self, a0: float) -> None: ... def angle(self) -> float: ... @@ -6021,7 +6021,7 @@ class QListWidget(QListView): def __init__(self, parent: typing.Optional[QWidget] = ...) -> None: ... - def isPersistentEditorOpen(self, item: QListWidgetItem) -> bool: ... + def isPersistentEditorOpen(self, item: QListWidgetItem) -> bool: ... # type: ignore def setSelectionModel(self, selectionModel: QtCore.QItemSelectionModel) -> None: ... def removeItemWidget(self, aItem: QListWidgetItem) -> None: ... def dropEvent(self, event: QtGui.QDropEvent) -> None: ... @@ -6760,7 +6760,7 @@ class QPlainTextEdit(QAbstractScrollArea): @typing.overload def find(self, exp: QtCore.QRegExp, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... @typing.overload - def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... # type: ignore def centerOnScroll(self) -> bool: ... def setCenterOnScroll(self, enabled: bool) -> None: ... def backgroundVisible(self) -> bool: ... @@ -8984,7 +8984,7 @@ class QTextEdit(QAbstractScrollArea): @typing.overload def find(self, exp: QtCore.QRegExp, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... @typing.overload - def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... + def find(self, exp: QtCore.QRegularExpression, options: typing.Union[QtGui.QTextDocument.FindFlags, QtGui.QTextDocument.FindFlag] = ...) -> bool: ... # type: ignore def setWordWrapMode(self, policy: QtGui.QTextOption.WrapMode) -> None: ... def wordWrapMode(self) -> QtGui.QTextOption.WrapMode: ... def setLineWrapColumnOrWidth(self, w: int) -> None: ... From 5b89051e61a61d312dafa4bf39c324249a3670c8 Mon Sep 17 00:00:00 2001 From: Stefan Lehmann Date: Sat, 2 May 2020 20:11:32 +0200 Subject: [PATCH 12/12] Update CHANGELOG.md --- CHANGELOG.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ed7305e..6de2f244 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 5.14.2.2 [unreleased] + +### Added + +### Changed +* [#43](https://github.com/stlehmann/PyQt5-stubs/pull/43) Update stubs to PyQt5.14.2 + +### Removed + ## 5.14.2.1 ### Added @@ -16,4 +25,4 @@ like QtWebEngine and Qt3D ### Changed * [#38](https://github.com/stlehmann/PyQt5-stubs/pull/38) Changed license to GPLv3 to be compilient with PyQt5 license -### Fixed \ No newline at end of file +### Removed \ No newline at end of file