D10797: Add asterisk when an annotation is associated to non-empty popup

Albert Astals Cid noreply at phabricator.kde.org
Fri Apr 6 21:24:12 UTC 2018


aacid added a comment.


  In D10797#241432 <https://phabricator.kde.org/D10797#241432>, @simgunz wrote:
  
  > What is the best way to implement this? Given the call to i18n I guess I cannot just append a suffix to ret.
  >  Should I do for each annotation type something like:
  >
  >   bool hasComment = !ann->contents().isEmpty();
  >   ret =  hasComment ? i18n( "Highlight with Comment" ) : i18n( "Highlight Note" );
  >
  
  
  Yeah, that's it. Make the bool const for extra points :)
  
  > I guess I do not need to add "with Comment" to Pop-up note and Inline note given that they always have a comment.
  
  Pop-up note can have empty contents, but i guess since contents it's its main focus we can leave it out?

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D10797

To: simgunz, #okular, aacid
Cc: aacid, ngraham, michaelweghorn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180406/bbe310fa/attachment.html>


More information about the Okular-devel mailing list