-
Notifications
You must be signed in to change notification settings - Fork 493
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
Update ctkUtils adding qListToQSet and qSetToQList #1004
Merged
jcfr
merged 2 commits into
commontk:master
from
jcfr:ctkUtils-add-qListToQSet-and-qSetToQList
Nov 4, 2021
Merged
Update ctkUtils adding qListToQSet and qSetToQList #1004
jcfr
merged 2 commits into
commontk:master
from
jcfr:ctkUtils-add-qListToQSet-and-qSetToQList
Nov 4, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jcfr
changed the title
Ctk utils add q list to q set and q set to q list
Update ctkUtils adding qListToQSet and qSetToQList
Nov 3, 2021
jcfr
force-pushed
the
ctkUtils-add-qListToQSet-and-qSetToQList
branch
from
November 4, 2021 16:08
27fcddd
to
c9472cd
Compare
lassoan
reviewed
Nov 4, 2021
lassoan
reviewed
Nov 4, 2021
lassoan
reviewed
Nov 4, 2021
jcfr
force-pushed
the
ctkUtils-add-qListToQSet-and-qSetToQList
branch
from
November 4, 2021 16:35
c9472cd
to
f5c24fd
Compare
This function is useful to support building against Qt>=5.14 and avoid warnings like the following: /path/to/S/Base/QTApp/qSlicerApplicationHelper.txx:170:55: warning: 'toSet' is deprecated: Use QSet<T>(list.begin(), list.end()) instead. [-Wdeprecated-declarations] moduleFactoryManager->registeredModuleNames().toSet() - moduleFactoryManager->instantiatedModuleNames().toSet()); ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qlist.h:412:5: note: 'toSet' has been explicitly marked deprecated here QT_DEPRECATED_VERSION_X_5_14("Use QSet<T>(list.begin(), list.end()) instead.") ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qglobal.h:366:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_14' # define QT_DEPRECATED_VERSION_X_5_14(text) QT_DEPRECATED_X(text) ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X' # define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text) ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X' # define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text))) ^ Co-authored-by: Andras Lasso <[email protected]>
This function is useful to support building against Qt>=5.14 and avoid warnings like the following: /path/to/S/Base/QTApp/qSlicerApplicationHelper.txx:169:64: warning: 'fromSet' is deprecated: Use QList<T>(set.begin(), set.end()) instead. [-Wdeprecated-declarations] QStringList failedToBeInstantiatedModuleNames = QStringList::fromSet( ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qlist.h:410:5: note: 'fromSet' has been explicitly marked deprecated here QT_DEPRECATED_VERSION_X_5_14("Use QList<T>(set.begin(), set.end()) instead.") ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qglobal.h:366:45: note: expanded from macro 'QT_DEPRECATED_VERSION_X_5_14' # define QT_DEPRECATED_VERSION_X_5_14(text) QT_DEPRECATED_X(text) ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qglobal.h:294:33: note: expanded from macro 'QT_DEPRECATED_X' # define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text) ^ /path/to/Support/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qcompilerdetection.h:675:55: note: expanded from macro 'Q_DECL_DEPRECATED_X' # define Q_DECL_DEPRECATED_X(text) __attribute__ ((__deprecated__(text))) ^ Co-authored-by: Andras Lasso <[email protected]>
jcfr
force-pushed
the
ctkUtils-add-qListToQSet-and-qSetToQList
branch
from
November 4, 2021 16:48
f5c24fd
to
8559eba
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These functions are useful to support building against
Qt>=5.14
and avoidwarnings like the following: