- QSignalMapper can mostly be replaced using straightforward lambdas, reducing the code size
Details
- Reviewers
mwolff - Group Reviewers
KDevelop - Commits
- R32:90a36b8b1e11: Replace deprecated QSignalMapper by lambda expressions
- switch scope and arrangement of problems in ProblemView
- create an application using the AppWizard
- add a compiler
- switch representation of register variables
- add code to an existing file using a file template
- open a file with an external application
- switch to header/source file using the context menu action
- track changes of a variable in the debugger
- status bar seems to work
- untested: runcontroller
Diff Detail
- Repository
- R32 KDevelop
- Branch
- deprSignalMapper
- Lint
No Linters Available - Unit
No Unit Test Coverage
All in all, LGTM. +1
plugins/debuggercommon/midebuggerplugin.cpp | ||
---|---|---|
88 ↗ | (On Diff #25353) | Shouldn't this line go to the end of the file? |
plugins/debuggercommon/midebuggerplugin.cpp | ||
---|---|---|
88 ↗ | (On Diff #25353) | That's probably more common, thanks. |
excellent work! some nits, otherwise lgtm
plugins/debuggercommon/midebuggerplugin.cpp | ||
---|---|---|
64 | style: remove space before & | |
70 | dito | |
151 | the old code was odd here already, but shouldn't you first check whether the service is already known and a proxy exists? also, add a comment here please saying that we use the proxy to map N services to the one slot that takes the proxy. Finally, can't we just use old-style connect + sender() here to simplify the code? Yes, sender() isn't the nicest thing on earth, but it certainly is less code than this here. | |
plugins/debuggercommon/registers/registersview.cpp | ||
244 | why not capture a and then call a->text() in the lambda? |
plugins/debuggercommon/midebuggerplugin.cpp | ||
---|---|---|
151 | Actually, since I didn't know what the thing is supposed to do, I checked the DrKonqi side of the code: The whole thing is never called, since DrKonqi never starts a service called "org.kde.drkonqi". There is a service foreseen called "org.kde.Krash", but it is not registered to the DBus. | |
plugins/debuggercommon/registers/registersview.cpp | ||
244 | Sure, if there is no a, there is no connection. Thanks. |
- directly access QAction inside lambda
- revert changes to MIDebuggerPlugin for postponed changes to DBus connection
I first wanted to evaluate if it makes sense to drop the changes here. But it does and I will propose that patch soon.