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

Use explicit conversion to QString (needed to compile Kalzium without removing -DQT_RESTRICTED_CAST_FROM_ASCII) #414

Closed
wants to merge 1 commit into from

Conversation

yurchor
Copy link
Contributor

@yurchor yurchor commented Dec 13, 2018

Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.

@welcome
Copy link

welcome bot commented Dec 13, 2018

Thanks for opening this pull request! Please check out our contributing guidelines and check for the automated tests.

Copy link
Member

@cryos cryos left a comment

Choose a reason for hiding this comment

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

Why is "-DQT_RESTRICTED_CAST_FROM_ASCII" needed/used in Kalzium? I think we use this in a few places, and wasn't aware of issues doing it. It would be good to understand the reasoning - is there a link to any further explanation on why you wouldn't allow the cast?

@yurchor
Copy link
Contributor Author

yurchor commented Dec 13, 2018

Oops... My bad. To port Kalzium to KF5/Qt5 I firstly used more strict rules that were committed by other developers

https://cgit.kde.org/extra-cmake-modules.git/tree/kde-modules/KDEFrameworkCompilerSettings.cmake

and that was the only place that does not allow libscience to compile.

But the rules are too strict as it seems. So I switched to

https://cgit.kde.org/extra-cmake-modules.git/tree/kde-modules/KDECompilerSettings.cmake

forgetting to test if it works without changing libavogadro. Now I have tested this and it works without altering libavogadro code.

Sorry for your time. :'(

@yurchor yurchor closed this Dec 13, 2018
@ghutchis
Copy link
Member

No worries - we’d rather have issues reported than to have something missing! Thanks!

@cryos
Copy link
Member

cryos commented Dec 13, 2018

As Geoff said no worries, I was more interested in the underlying reason as I make calls like this in a number of pure C++ API interfacing with Qt APIs. I appreciate you taking a second look.

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.

None yet

3 participants