Expose a method to open projects to dbus
ClosedPublic

Authored by apol on May 7 2017, 10:54 PM.

Diff Detail

Repository
R33 KDevPlatform
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.May 7 2017, 10:54 PM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptMay 7 2017, 10:54 PM
kfunk requested changes to this revision.May 8 2017, 8:02 AM
kfunk added a subscriber: kfunk.

Please use one of the static methods to construct the QUrl, e.g. QUrl::fromUserInput. More explicit.

I'm actually surprised this code compiles, we define QT_NO_URL_CAST_FROM_STRING already(?)

This revision now requires changes to proceed.May 8 2017, 8:02 AM
apol added a comment.May 8 2017, 9:17 AM

I don't know if that's a good idea. This QString overload is just for dbus who should already be sending proper QUrl but dbus sucks at QUrl, so QString is better, but I wouldn't process it as a path but as a QUrl.

Note this url is already being processed in kdevelop side.

This revision was automatically updated to reflect the committed changes.