"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gmic-qt/src/Widgets/PreviewWidget.cpp" between
gmic_2.8.1.tar.gz and gmic_2.8.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

PreviewWidget.cpp  (gmic_2.8.1):PreviewWidget.cpp  (gmic_2.8.2)
skipping to change at line 254 skipping to change at line 254
void PreviewWidget::paintKeypoints(QPainter & painter) void PreviewWidget::paintKeypoints(QPainter & painter)
{ {
QPen pen; QPen pen;
pen.setColor(Qt::black); pen.setColor(Qt::black);
pen.setWidth(2); pen.setWidth(2);
painter.setRenderHint(QPainter::Antialiasing, true); painter.setRenderHint(QPainter::Antialiasing, true);
painter.setPen(pen); painter.setPen(pen);
QRect visibleRect = rect() & _imagePosition; QRect visibleRect = rect() & _imagePosition;
KeypointList::reverse_iterator it = _keypoints.rbegin(); KeypointList::reverse_iterator it = _keypoints.rbegin();
int index = _keypoints.size() - 1; int index = static_cast<int>(_keypoints.size() - 1);
while (it != _keypoints.rend()) { while (it != _keypoints.rend()) {
if (!it->isNaN()) { if (!it->isNaN()) {
const KeypointList::Keypoint & kp = *it; const KeypointList::Keypoint & kp = *it;
const int & radius = kp.actualRadiusFromPreviewSize(_imagePosition.size()) ; const int & radius = kp.actualRadiusFromPreviewSize(_imagePosition.size()) ;
QPoint visibleCenter = keypointToVisiblePointInWidget(kp); QPoint visibleCenter = keypointToVisiblePointInWidget(kp);
QPoint realCenter = keypointToPointInWidget(kp); QPoint realCenter = keypointToPointInWidget(kp);
QRect r(visibleCenter.x() - radius, visibleCenter.y() - radius, 2 * radius , 2 * radius); QRect r(visibleCenter.x() - radius, visibleCenter.y() - radius, 2 * radius , 2 * radius);
QColor brushColor = kp.color; QColor brushColor = kp.color;
if ((index == _movedKeypointIndex) && !kp.keepOpacityWhenSelected) { if ((index == _movedKeypointIndex) && !kp.keepOpacityWhenSelected) {
brushColor.setAlpha(255); brushColor.setAlpha(255);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)