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

Some modernisation of QtPropertyBrowser #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

john-paulsmith
Copy link

I'm starting to use QtPropertyBrowser on a new project and ran into a couple of problems. We compile with CONFIG = no_keywords, so I replaced emit, foreach and slots with their Q_ macro equivalents, which also work if no_keywords hasn't been defined. I also replaced use of the obsolete method QColorDialog::getRgba() with QColorDialog::getColor(). It's been available since Qt 4.5 so should be OK to use and it's cleaner in this use case.

Replaced emit, slots and foreach with Q_EMIT, Q_SLOTS and Q_FOREACH.
Replaced with QColorDialog::getColor() which is simpler anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant