-
Notifications
You must be signed in to change notification settings - Fork 17
Use QGuiApplication::setDesktopFileName #2
Conversation
|
After these changes, I also noticed that you use tabs instead of spaces, which is forbidden by the Qt coding style, but you decide for yourself. |
Skycoder42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the comments in the files. Otherwise ready to be merged. I do use tabs on purpose, as it's my personal preference. I am aware of the Qt coding guidelines.
Removing the setAttribute seems like a good idea. If you want, you can add that change as well, but I can do that by myself as well.
If you are busy, then I can do :) If yes, do I need to leave the prefix |
That would be cool. I would prefer to keep the "Win" prefix, to make clear those methods work only on windows. |
|
Sorry for a lot of questions, I just want to implement it as you like :)
|
|
|
Maybe I should add |
|
No, I would prefer those to stay pure virtual, as they are essential and available on all platforms |
|
Sorry, it was a typo :) I meant to make getters for |
|
Still, keep it as is. The private class is just a design choice, see https://en.cppreference.com/w/cpp/language/pimpl So it's correct that those are accessed via a friend declaration. The virtual methods are only there for the necessary platform abstraction. |
|
Yes, I know about PIMPL, just suggested for consistency. But I think that you are right, keep it as members will be better. The last thing that I want to suggest is to add |
I am torn on this one... I get you point, but I prefer that this is done "automagically" for widgets. Maybe it would be possible to have both? Provide |
|
Sounds good. I will try to implement it :) |
|
What do you think about this implementation? I combined it into one function that checks if And I removed extra pointer from Is it okay? |
* Use static_cast instead of C-style cast; * Fix implicit conversion.
Skycoder42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are getting somewhere. I like your idea, but there are still a few things that need to change. Have a look at the comments in the files. Sorry that this takes so long, but big PRs like this one always need some tweaking. If you implement the requested changes, the PR should finally be ready to be merged
|
Done! But instead of overload I created a separate |
Skycoder42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost done. Just two more changes
|
Feel free to request any other changes or refactoring. |
|
Thank you! |
No description provided.