Skip to content

Commit

Permalink
create QtCore.SignalInstance; append name to location
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Aug 28, 2022
1 parent c9e1f59 commit fa513d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file modified docs/PySide6-aliases.inv
Binary file not shown.
7 changes: 5 additions & 2 deletions docs/create_pyside_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# :class:`QWidget`
# :class:`QtWidgets.QWidget`
# :class:`PySide6.QtWidgets.QWidget`
# only do this for some of the Qt modules
# only do this for some Qt modules
alias_modules = ('QtWidgets', 'QtCore', 'QtGui')

# the filename to use to save the original objects.inv file
Expand Down Expand Up @@ -55,9 +55,12 @@ def write(*args):
continue

name, typ, prio, location, dispname = m.groups()
location = pyside_uri + location.rstrip('#$')
location = pyside_uri + location.rstrip('$') + name

write(name, typ, prio, location, dispname)
if name.endswith('QtCore.Signal'):
# QtCore.SignalInstance maps to QtCore.Signal
write(package_name + '.QtCore.SignalInstance', typ, prio, location, dispname)

# apply the aliases
for module in alias_modules:
Expand Down

0 comments on commit fa513d3

Please sign in to comment.