Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for QtSignals #401

Merged
merged 2 commits into from
Oct 30, 2018
Merged

Add support for QtSignals #401

merged 2 commits into from
Oct 30, 2018

Conversation

fetzerch
Copy link
Contributor

This change adds proper support for QtSignals by treating signals as functions (similar to what has been done for QtSlots in b584c32).

In addition change the example for QtSlots to QtSignalsAndSlots so that both signals and slots are properly documented and validated.

Without this change breathe emits the following warnings for classes
that contain signals:

WARNING: Error in declarator or parameters and qualifiers
If pointer to member declarator:
  Invalid definition: Expected identifier in nested name. [error at 34]
      QtSignalSlotExample::workingSignal
          ----------------------------------^

This change adds proper support for QtSignals by treating signals
as functions (similar to what has been done for QtSlots).

In addition change the example for QtSlots to QtSignalsAndSlots so
that both signals and slots are properly documented and validated.

Without this change breathe emits the following warnings for classes
that contain signals:

WARNING: Error in declarator or parameters and qualifiers
If pointer to member declarator:
  Invalid definition: Expected identifier in nested name. [error at 34]
      QtSignalSlotExample::workingSignal
          ----------------------------------^
breathe/renderer/sphinxrenderer.py:802:14: W605 invalid escape sequence '\['
breathe/renderer/sphinxrenderer.py:802:14: W605 invalid escape sequence '\]'
@vermeeren vermeeren self-assigned this Oct 30, 2018
@vermeeren vermeeren added enhancement Improvements, additions (also cosmetics) documentation Generated html, changelog, inline comments code Source code labels Oct 30, 2018
@vermeeren
Copy link
Collaborator

Looks good to me, thanks.

Should I bump version and release for this?

@vermeeren vermeeren merged commit 9661ce8 into breathe-doc:master Oct 30, 2018
vermeeren added a commit that referenced this pull request Oct 30, 2018
@fetzerch
Copy link
Contributor Author

Thanks. A new release would be great, then I can start using it in my CI pipeline.

@fetzerch fetzerch deleted the qtsignals branch October 31, 2018 06:12
@vermeeren
Copy link
Collaborator

Released v4.11.0 just now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Source code documentation Generated html, changelog, inline comments enhancement Improvements, additions (also cosmetics)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants