D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-10 Thread Shubham
This revision was automatically updated to reflect the committed changes. Closed by commit R39:b9a52834ec45: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e) (authored by shubham). REPOSITORY R39 KTextEditor CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18788?vs=5110

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-09 Thread Dominik Haumann
dhaumann accepted this revision. dhaumann added a comment. This revision is now accepted and ready to land. I think it's ok, although it is arguably whether this improves anything. Still, let's move on. REPOSITORY R39 KTextEditor BRANCH arcpatch-D18788 REVISION DETAIL https://phabrica

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-09 Thread Shubham
shubham added a comment. Is it okay now? REPOSITORY R39 KTextEditor REVISION DETAIL https://phabricator.kde.org/D18788 To: shubham, cullmann Cc: dhaumann, sars, kwrite-devel, kde-frameworks-devel, michaelh, ngraham, bruns, demsking, cullmann

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-07 Thread Shubham
shubham updated this revision to Diff 51102. shubham added a comment. Accept and ignore the event REPOSITORY R39 KTextEditor CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D18788?vs=51039&id=51102 BRANCH arcpatch-D18788 REVISION DETAIL https://phabricator.kde.org/D18788 AFFE

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-06 Thread Shubham
shubham added inline comments. INLINE COMMENTS > sars wrote in kateviewinternal.cpp:2718 > Where did e->accept() / e->ignore() go? There is a reason they are there... Btw no need to explicitly accept() the event, because isAccepted() function returns true by default. But surely, event should be

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-06 Thread Shubham
shubham added a comment. @dhaumann I don't think using switch when there is only a single case good thought INLINE COMMENTS > sars wrote in kateviewinternal.cpp:2702 > does this even compile on OSX? Why did you change this? I can't tell, I don't have one. Btw Q_OS_OSX is deprecated. > sar

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-06 Thread Dominik Haumann
dhaumann added a comment. I am with Kåre here: this change does not fix any issue nor does it improve the current state significantly. In fact, there is a risk of introducing a regression by removing the accept/reject calls. I don't think this should go in as is. Shubham, on bugs.kd

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-06 Thread Kåre Särs
sars added inline comments. INLINE COMMENTS > kateviewinternal.cpp:2702 > // Move cursor to end (or beginning) of selected word > +#ifndef Q_OS_MACOS > if (view()->selection()) { does this even compile on OSX? Why did you change this? > kateviewinternal.cpp:2718 > - > -

D18788: Refactor KateViewInternal::mouseDoubleClickEvent(QMouseEvent *e)

2019-02-06 Thread Shubham
shubham created this revision. shubham added a reviewer: cullmann. Herald added projects: Kate, Frameworks. Herald added subscribers: kde-frameworks-devel, kwrite-devel. shubham requested review of this revision. REVISION SUMMARY Removed unncessary switch and replaced it with simple if, more eff