X Tutup
The Wayback Machine - https://web.archive.org/web/20201220223646/https://github.com/paceholder/nodeeditor/pull/199
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

Qt no keywords #199

Merged
merged 3 commits into from Feb 6, 2019
Merged

Qt no keywords #199

merged 3 commits into from Feb 6, 2019

Conversation

@fredakilla
Copy link
Contributor

@fredakilla fredakilla commented Oct 25, 2018

see: #160
using Q_SIGNALS, Q_SLOTS, Q_EMIT instead of qt keywords

@Quincunx271
Copy link
Contributor

@Quincunx271 Quincunx271 commented Oct 25, 2018

Looks great. The one suggestion I have is to add

add_definitions(-DQT_NO_KEYWORDS)

to the root CMakeLists.txt, so that building the library will fail if a Qt keyword is used. It may be preferable to write:

target_compile_definitions(nodes
  PRIVATE
    QT_NO_KEYWORDS
)

Which would accomplish the same thing, but only for the nodes target instead of all targets defined under this project.

@fredakilla
Copy link
Contributor Author

@fredakilla fredakilla commented Oct 26, 2018

right, thanks.

@paceholder
Copy link
Owner

@paceholder paceholder commented Feb 6, 2019

Looks like a reasonable improvement. Thank you

@paceholder paceholder closed this Feb 6, 2019
@paceholder paceholder merged commit 282b439 into paceholder:master Feb 6, 2019
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
signmotion added a commit to signmotion/nodeeditor that referenced this pull request Feb 7, 2019
* Qt no keywords

* replace emit with Q_EMIT

* add QT_NO_KEYWORDS definition to CMakeLists.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.
X Tutup