-
Notifications
You must be signed in to change notification settings - Fork 285
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
Show classnames next to objectNames, when different #865
Conversation
I would prefer this as its slightly more accurate. For the case where we don't have objectName, I think show |
Brainstorming other solutions: About |
Right, I thought you were asking about whether to show an asterisk for the raw pointer case. Otherwise yeah, then just showing the className is enough. It also consumes less space (which is a somewhat important thing in this context) Now that I saw the code and tried it out, I think I understand question a bit better. In the properties tab, just showing the objectName is more confusing imo. So I think |
I actually don't think standardizing around
(...Might encourage people to name their objects, too.) |
Thanks for the suggestion. I like it, it's much more consistent than what I have until now. I'll change it accordingly. |
Property | Value | Type | Class Before: parent | m_loadingWidget | QObject* | QObject After: parent | m_loadingWidget (QSvgWidget) | QObject* | QObject For consistency, change the case without object name from "QFrame[this=0xdcd22e0]" to "0xdcd22e0 (QFrame)", as suggested by ferdnyc. The change propagated to other classes to fix const [in]correctness (the const_cast is only because of QHash API, it shouldn't be necessary for the caller of those methods).
79951c3
to
eb5eab2
Compare
+1 from me too |
Property | Value | Type | Class
Before:
parent | m_loadingWidget | QObject* | QObject
After:
parent | m_loadingWidget (QSvgWidget) | QObject* | QObject
Should this be QSvgWidget* with a star?
Or something more consistent with the case where there's no objectName, which shows "QFrame[this=0xdcd22e0]" ?
The change propagated to other classes to fix const [in]correctness (the const_cast is only because of QHash API, it shouldn't be necessary for the caller of those methods).