-
Notifications
You must be signed in to change notification settings - Fork 671
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
Don't inherit QApplication #10754
Don't inherit QApplication #10754
Conversation
Results for GUI-tests-ocis https://drone.owncloud.com/owncloud/client/15114/6/1 |
8ad9991
to
65b92f9
Compare
65b92f9
to
105a6cf
Compare
Kudos, SonarCloud Quality Gate passed! |
@@ -124,13 +108,16 @@ protected slots: | |||
QTimer _checkConnectionTimer; | |||
|
|||
QScopedPointer<FolderMan> _folderManager; | |||
|
|||
|
|||
static Application *_instance; |
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.
A simple static variable outside this namespace should work, too. Is there any advantage in using a member?
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.
So I can access it in the current inline function.
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.
You could, too, even if stored outside.
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.
But that would make _instance public?
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.
You don't need to declare it in a header...
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.
Anyway, doesn't matter, really. Feel free to ignore.
Looks like only code refactoring. Nothing is to be tested manually. Moving to Done |
In a second pr I will introduce KDSingleApplication
Issue: #8432