Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-scripts
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuya Nishihara
qt-scripts
Commits
9519bdd4
Commit
9519bdd4
authored
3 years ago
by
Yuya Nishihara
Browse files
Options
Downloads
Patches
Plain Diff
dump-qml-metatype-json: extract types of signal arguments
parent
a2cb202f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dump-qml-metatype-json.py
+8
-1
8 additions, 1 deletion
dump-qml-metatype-json.py
with
8 additions
and
1 deletion
dump-qml-metatype-json.py
+
8
−
1
View file @
9519bdd4
...
...
@@ -137,10 +137,17 @@ def maybe_process_signal_assign(assign_node: ast.Assign) -> Optional[Dict[str, A
signal_name
=
extract_name
(
assign_node
.
targets
[
0
])
if
not
signal_name
:
return
arguments_data
=
[]
scall_node
=
assign_node
.
value
assert
isinstance
(
scall_node
,
ast
.
Call
)
for
node
in
scall_node
.
args
:
arguments_data
.
append
({
"
type
"
:
map_to_qt_type
(
extract_name
(
node
))})
return
{
"
access
"
:
"
public
"
,
"
name
"
:
signal_name
,
"
arguments
"
:
[],
# TODO
"
arguments
"
:
arguments_data
,
"
returnType
"
:
"
void
"
,
# TODO
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment