Revision 04e354d...

Go back to digest for 26th January 2014

Features in Office

Dmitry Kazakov committed changes in [calligra/calligra/2.8] /ui:

Change selection outline decoration

The old selection outline draw method was implemented using the
technique of Bill Atkinson. This method has the disadvantage of not
looking like marching ants with selection borders that aren't parallel
to the coordinate axes.

The new method uses a QPen with a dash pattern to draw the ants, so they
are always displayed as dashes, no matter the angle that borders has.
It is draw in two passes. The first one uses a QPen configured
to draw the selection outline in white. Then, the selection outline is
draw again above the white outline, but this time using other QPen
configured to draw the ants in black.

Also, the outline is drawed without antialiasing.

File Changes

Modified 2 files
  • /ui
  •   krita/kis_selection_decoration.cc
  •   krita/kis_selection_decoration.h
2 files changed in total