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

ENH: Add API to get message handler from ctkErrorLogAbstractModel #1043

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

lassoan
Copy link
Member

@lassoan lassoan commented Oct 13, 2022

This API is useful for accessing message handlers, for example to connect to messageHandled signals.

@lassoan lassoan self-assigned this Oct 13, 2022
@lassoan lassoan force-pushed the get-log-msg-handler-api branch 2 times, most recently from a5d67b3 to af815c0 Compare October 13, 2022 05:22

QStringList msgHandlerNames()const;
Q_INVOKABLE QStringList msgHandlerNames()const;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of specifying Q_INVOKABLE, I suggest to specify this:

Q_PROPERTY(QStringList msgHandlerNames READ msgHandlerNames)

This will allow to use model.msgHandlerNames from python

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q_PROPERTY(QStringList msgHandlerNames READ msgHandlerNames)

Done.

This API is useful for accessing message handlers, for example to connect to messageHandled signals.
@lassoan lassoan force-pushed the get-log-msg-handler-api branch from af815c0 to dd002cd Compare October 13, 2022 12:37
@lassoan lassoan merged commit 8540722 into commontk:master Oct 13, 2022
@lassoan lassoan deleted the get-log-msg-handler-api branch October 13, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants