"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/backend/worksheet/plots/cartesian/Symbol.cpp" between
labplot-2.8.1.tar.gz and labplot-2.8.2.tar.gz

About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.

Symbol.cpp  (labplot-2.8.1):Symbol.cpp  (labplot-2.8.2)
/*************************************************************************** /***************************************************************************
File : Symbol.cpp File : Symbol.cpp
Project : LabPlot Project : LabPlot
Description : Symbol Description : Symbol
-------------------------------------------------------------------- --------------------------------------------------------------------
Copyright : (C) 2015 Alexander Semke (alexander.semke@web.de) Copyright : (C) 2015-2020 Alexander Semke (alexander.semke@web.de )
***************************************************************************/ ***************************************************************************/
/*************************************************************************** /***************************************************************************
* * * *
* This program is free software; you can redistribute it and/or modify * * This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
skipping to change at line 39 skipping to change at line 39
/*! /*!
\class Symbol \class Symbol
\brief \brief
\ingroup worksheet \ingroup worksheet
*/ */
#include "Symbol.h" #include "Symbol.h"
#include <KLocalizedString> #include <KLocalizedString>
int Symbol::stylesCount() {
return 19;
}
QPainterPath Symbol::pathFromStyle(Symbol::Style style) { QPainterPath Symbol::pathFromStyle(Symbol::Style style) {
QPainterPath path; QPainterPath path;
QPolygonF polygon; QPolygonF polygon;
if (style == Style::Circle) { if (style == Style::Circle) {
path.addEllipse(QPoint(0,0), 0.5, 0.5); path.addEllipse(QPoint(0,0), 0.5, 0.5);
} else if (style == Style::Square) { } else if (style == Style::Square) {
path.addRect(QRectF(- 0.5, -0.5, 1.0, 1.0)); path.addRect(QRectF(- 0.5, -0.5, 1.0, 1.0));
} else if (style == Style::EquilateralTriangle) { } else if (style == Style::EquilateralTriangle) {
polygon<<QPointF(-0.5, 0.5)<<QPointF(0, -0.5)<<QPointF(0.5, 0.5)< <QPointF(-0.5, 0.5); polygon<<QPointF(-0.5, 0.5)<<QPointF(0, -0.5)<<QPointF(0.5, 0.5)< <QPointF(-0.5, 0.5);
path.addPolygon(polygon); path.addPolygon(polygon);
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

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