Pull in QtSingleApplication class and use it as KDevelopApplication's base. Add a CMake option for this.
ClosedPublic

Authored by arrowd on Apr 11 2016, 7:14 PM.

Details

Test Plan

KDevelop starts successfully on Windows. Launching it again doesn't cause second instance to show up.

Diff Detail

Repository
R32 KDevelop
Branch
qtsingleapp (branched from 5.0)
Lint
No Linters Available
Unit
No Unit Test Coverage
arrowd updated this revision to Diff 3282.Apr 11 2016, 7:14 PM
arrowd retitled this revision from to Pull in QtSingleApplication class and use it as KDevelopApplication's base. Add a CMake option for this..
arrowd updated this object.
arrowd edited the test plan for this revision. (Show Details)
arrowd added a reviewer: KDevelop.
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptApr 11 2016, 7:14 PM
kfunk added a subscriber: kfunk.Apr 11 2016, 8:12 PM

Rest looks good to me. Great work.

app/CMakeLists.txt
12 ↗(On Diff #3282)

Default to OFF

23 ↗(On Diff #3282)

Add to config.h.cmake instead.

Then use #if instead of #ifdef => safer.

lnavet added a subscriber: lnavet.Apr 12 2016, 7:35 AM

Copyright really goes to Qt Company or just a copy/paste error ?

**

kfunk added a comment.Apr 12 2016, 7:49 AM
In D1387#25810, @lnavet wrote:

Copyright really goes to Qt Company or just a copy/paste error ?

Well, we copied from there, so we need to play by the rules and keep the copyright.

Ideally QtSingleApplication functionality should be moved into KF5, but we've yet to find a good place for it.

arrowd updated this revision to Diff 3295.Apr 12 2016, 11:18 AM
arrowd marked 2 inline comments as done.

Address comments.

kfunk accepted this revision.Apr 12 2016, 12:01 PM
kfunk added a reviewer: kfunk.
This revision is now accepted and ready to land.Apr 12 2016, 12:01 PM