Okular Annotation: use the new signal-slot connect syntax
ClosedPublic

Authored by knambiar on May 9 2019, 6:12 AM.

Details

Summary

Use the new signal-slot connect syntax

Diff Detail

Repository
R223 Okular
Lint
Lint Skipped
Unit
Unit Tests Skipped
knambiar created this revision.May 9 2019, 6:12 AM
Restricted Application added a project: Okular. · View Herald TranscriptMay 9 2019, 6:12 AM
Restricted Application added a subscriber: okular-devel. · View Herald Transcript
knambiar requested review of this revision.May 9 2019, 6:12 AM
aacid added a subscriber: aacid.May 9 2019, 10:17 PM

please use QOverload<int>::of() instead of static_cast<void (QComboBox::*)(int)> much easier to read.

knambiar updated this revision to Diff 57843.May 10 2019, 8:47 AM

Use QOverload instead of static_cast

aacid added inline comments.May 10 2019, 8:06 PM
ui/annotationwidgets.cpp
543

Why this change?

knambiar updated this revision to Diff 57892.May 11 2019, 8:26 AM

Drop the combobox change

aacid accepted this revision.May 12 2019, 8:45 AM
This revision is now accepted and ready to land.May 12 2019, 8:45 AM
aacid closed this revision.May 12 2019, 7:05 PM

commited, somehow phabricator decided not to autoclose this

@knambiar
Rajeesh, would you be around for another patch? PDF / poppler allow to draw arrows on both ends of a line (aka start style, end style). Your patches currently target only the line end. Would you implement "start style" in the UI too?

See poppler API

void setLineStartStyle( TermStyle style );
void setLineEndStyle( TermStyle style );

and XML attributes "startStyle" and "endStyle".

knambiar marked an inline comment as done.May 14 2019, 10:48 AM

@knambiar
Rajeesh, would you be around for another patch? PDF / poppler allow to draw arrows on both ends of a line (aka start style, end style). Your patches currently target only the line end. Would you implement "start style" in the UI too?

Certainly. I did notice the startStyle as well, but decided to ignore it for the time being.
I'm afraid we'll have similar objections to the endStyle, though, specifically “PDF only” — would that be okay?

sander added a subscriber: sander.May 14 2019, 11:25 AM

I'm afraid we'll have similar objections to the endStyle, though, specifically “PDF only” — would that be okay?

IMO it would be okay. Plus, with the help of Tobias maybe you can even teach Okular how to draw the start/end markers for non-pdf documents in a separate patch? I remember him saying that that is not very difficult.

I'm afraid we'll have similar objections to the endStyle, though, specifically “PDF only” — would that be okay?

IMO it would be okay. Plus, with the help of Tobias maybe you can even teach Okular how to draw the start/end markers for non-pdf documents in a separate patch? I remember him saying that that is not very difficult.

Yes, I'm slowly working on it. As I understand we have time until 19.08 tagging to make non-PDF line end drawing work and remove the tooltip again. That should be doable, so ideally no user will ever see "PDF only" in a released version of Okular. If we're too slow, the tooltip is kind of backup. If Albert or Nate disagree, their opinion should have more weight.

Review D21238 created for the line start style.