mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 12:20:32 +02:00
push thatv thing
This commit is contained in:
@@ -1,306 +0,0 @@
|
|||||||
src/GUI/IntelliInputDialog.h:4:0: information: Include file: <QtWidgets> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliInputDialog.cpp:2:0: information: Include file: <QFile> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:4:0: information: Include file: <QtWidgets> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:5:0: information: Include file: <QPixmap> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:6:0: information: Include file: <QList> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:7:0: information: Include file: <QMainWindow> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:8:0: information: Include file: <QGridLayout> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:9:0: information: Include file: <QPushButton> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:10:0: information: Include file: <QTextEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:11:0: information: Include file: <QLabel> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.h:12:0: information: Include file: <QLineEdit> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.cpp:4:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliImage.cpp:1:0: information: Include file: "Image/IntelliImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliImage.cpp:2:0: information: Include file: <QSize> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliImage.cpp:3:0: information: Include file: <QPainter> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliRasterImage.cpp:1:0: information: Include file: "Image/IntelliRasterImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliRasterImage.cpp:2:0: information: Include file: <QPainter> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliRasterImage.cpp:3:0: information: Include file: <QRect> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliRasterImage.cpp:4:0: information: Include file: <QDebug> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliShapedImage.cpp:1:0: information: Include file: "Image/IntelliShapedImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliShapedImage.cpp:2:0: information: Include file: "IntelliHelper/IntelliTriangulation.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliShapedImage.cpp:3:0: information: Include file: <QPainter> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliShapedImage.cpp:4:0: information: Include file: <QRect> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Image/IntelliShapedImage.cpp:5:0: information: Include file: <QDebug> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliColorPicker.h:4:0: information: Include file: "QColor" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliColorPicker.h:5:0: information: Include file: "QPoint" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliColorPicker.h:6:0: information: Include file: "QColorDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliToolsettings.cpp:2:0: information: Include file: <QInputDialog> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliTriangulation.h:4:0: information: Include file: <QPoint> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliTriangulation.h:5:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliTriangulation.cpp:2:0: information: Include file: <algorithm> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliTriangulation.cpp:3:0: information: Include file: <queue> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliTriangulation.cpp:4:0: information: Include file: <cmath> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:2:0: information: Include file: "string.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:6:0: information: Include file: <QtWidgets> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:7:0: information: Include file: <QPoint> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:8:0: information: Include file: <QRect> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:5:0: information: Include file: <QColor> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:6:0: information: Include file: <QImage> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:7:0: information: Include file: <QPoint> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:8:0: information: Include file: <QWidget> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:9:0: information: Include file: <QList> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:10:0: information: Include file: "GUI/IntelliPhotoGui.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:11:0: information: Include file: "Image/IntelliImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:12:0: information: Include file: "Image/IntelliRasterImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:13:0: information: Include file: "Image/IntelliShapedImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:14:0: information: Include file: "Tool/IntelliTool.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.h:15:0: information: Include file: "IntelliHelper/IntelliColorPicker.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:11:0: information: Include file: "Image/IntelliRasterImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:12:0: information: Include file: "Image/IntelliShapedImage.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:13:0: information: Include file: "Tool/IntelliToolPen.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:14:0: information: Include file: "Tool/IntelliToolPlain.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:15:0: information: Include file: "Tool/IntelliToolLine.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:16:0: information: Include file: "Tool/IntelliToolCircle.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:17:0: information: Include file: "Tool/IntelliToolRectangle.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:18:0: information: Include file: "Tool/IntelliToolFloodFill.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:19:0: information: Include file: "Tool/IntelliToolPolygon.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliColorPicker.cpp:1:0: information: Include file: "IntelliColorPicker.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliColorPicker.cpp:2:0: information: Include file: "QDebug" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.h:4:0: information: Include file: "IntelliHelper/IntelliColorPicker.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.h:5:0: information: Include file: "IntelliHelper/IntelliToolsettings.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.h:6:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.h:5:0: information: Include file: "QColor" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.h:6:0: information: Include file: "QPoint" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:3:0: information: Include file: "QInputDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:4:0: information: Include file: <cmath> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolFloodFill.h:5:0: information: Include file: "QColor" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolFloodFill.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolFloodFill.cpp:3:0: information: Include file: "QColorDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolFloodFill.cpp:4:0: information: Include file: "QInputDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolFloodFill.cpp:5:0: information: Include file: <functional> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolFloodFill.cpp:6:0: information: Include file: <queue> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolLine.h:5:0: information: Include file: "QPoint" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolLine.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolLine.cpp:3:0: information: Include file: "QColorDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolLine.cpp:4:0: information: Include file: "QInputDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPen.h:5:0: information: Include file: "QColor" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPen.h:6:0: information: Include file: "QPoint" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPen.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPen.cpp:3:0: information: Include file: "QDebug" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPen.cpp:4:0: information: Include file: "QColorDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPen.cpp:5:0: information: Include file: "QInputDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPlain.h:5:0: information: Include file: "QColor" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPlain.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPlain.cpp:3:0: information: Include file: "QColorDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.h:5:0: information: Include file: "IntelliHelper/IntelliTriangulation.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.h:6:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.h:7:0: information: Include file: <QPoint> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.cpp:3:0: information: Include file: <QCursor> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.cpp:4:0: information: Include file: <QInputDialog> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.cpp:5:0: information: Include file: <QDebug> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolRectangle.h:6:0: information: Include file: "QColor" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolRectangle.h:7:0: information: Include file: "QPoint" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolRectangle.cpp:2:0: information: Include file: "Layer/PaintingArea.h" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolRectangle.cpp:3:0: information: Include file: "QInputDialog" not found. [missingInclude]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/main.cpp:2:0: information: Include file: <QApplication> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/main.cpp:3:0: information: Include file: <QDebug> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/main.cpp:4:0: information: Include file: <vector> not found. Please note: Cppcheck does not need standard library headers to get proper results. [missingIncludeSystem]
|
|
||||||
|
|
||||||
^
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
src/IntelliHelper/IntelliColorPicker.cpp:4:3: performance: Variable 'firstColor' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList]
|
|
||||||
firstColor = {255,0,0,255};
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliColorPicker.cpp:5:3: performance: Variable 'secondColor' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList]
|
|
||||||
secondColor = {0,255,255,255};
|
|
||||||
^
|
|
||||||
src/IntelliHelper/IntelliTriangulation.cpp:116:63: style: Parameter 'triangles' can be declared with const [constParameter]
|
|
||||||
bool IntelliTriangulation::isInPolygon(std::vector<Triangle> &triangles, QPoint &point){
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:344:22: style: Redundant condition: If 'activeLayer > 0', the comparison 'activeLayer != -1' is always true. [redundantCondition]
|
|
||||||
if(activeLayer!=-1 && activeLayer>0) {
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.cpp:4:14: warning: Member variable 'IntelliTool::ActiveType' is not initialized in the constructor. [uninitMemberVar]
|
|
||||||
IntelliTool::IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings){
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.cpp:4:14: warning: Member variable 'IntelliTool::activeLayer' is not initialized in the constructor. [uninitMemberVar]
|
|
||||||
IntelliTool::IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings){
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.cpp:4:14: warning: Member variable 'IntelliTool::Canvas' is not initialized in the constructor. [uninitMemberVar]
|
|
||||||
IntelliTool::IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker, IntelliToolsettings* Toolsettings){
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:42:9: style: Local variable 'yMin' shadows outer variable [shadowVariable]
|
|
||||||
int yMin = static_cast<int>(centerPoint.y() - sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:18:7: note: Shadowed declaration
|
|
||||||
int yMin, yMax, xMin, xMax;
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:42:9: note: Shadow variable
|
|
||||||
int yMin = static_cast<int>(centerPoint.y() - sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:43:9: style: Local variable 'yMax' shadows outer variable [shadowVariable]
|
|
||||||
int yMax = static_cast<int>(centerPoint.y() + sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:18:13: note: Shadowed declaration
|
|
||||||
int yMin, yMax, xMin, xMax;
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolCircle.cpp:43:9: note: Shadow variable
|
|
||||||
int yMax = static_cast<int>(centerPoint.y() + sqrt(pow(radius,2) - pow(i - centerPoint.x(),2)));
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.h:25:6: warning: The class 'IntelliToolPolygon' defines member variable with name 'isDrawing' also defined in its parent class 'IntelliTool'. [duplInheritedMember]
|
|
||||||
bool isDrawing;
|
|
||||||
^
|
|
||||||
src/Tool/IntelliTool.h:69:6: note: Parent variable 'IntelliTool::isDrawing'
|
|
||||||
bool isDrawing = false;
|
|
||||||
^
|
|
||||||
src/Tool/IntelliToolPolygon.h:25:6: note: Derived variable 'IntelliToolPolygon::isDrawing'
|
|
||||||
bool isDrawing;
|
|
||||||
^
|
|
||||||
src/GUI/IntelliPhotoGui.cpp:23:0: style: The function 'closeEvent' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:271:0: style: The function 'mouseMoveEvent' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:252:0: style: The function 'mousePressEvent' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:284:0: style: The function 'mouseReleaseEvent' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:314:0: style: The function 'paintEvent' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:325:0: style: The function 'resizeEvent' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:330:0: style: The function 'resizeLayer' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:170:0: style: The function 'slotActivateLayer' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:88:0: style: The function 'slotDeleteActiveLayer' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
src/Layer/PaintingArea.cpp:299:0: style: The function 'wheelEvent' is never used. [unusedFunction]
|
|
||||||
|
|
||||||
^
|
|
||||||
nofile:0:0: information: Cppcheck cannot find all the include files (use --check-config for details) [missingInclude]
|
|
||||||
|
|
||||||
@@ -12,11 +12,11 @@ void IntelliColorPicker::swapColors(){
|
|||||||
std::swap(firstColor, secondColor);
|
std::swap(firstColor, secondColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor IntelliColorPicker::getFirstColor(){
|
QColor IntelliColorPicker::getFirstColor() const{
|
||||||
return this->firstColor;
|
return this->firstColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
QColor IntelliColorPicker::getSecondColor(){
|
QColor IntelliColorPicker::getSecondColor() const{
|
||||||
return this->secondColor;
|
return this->secondColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,13 +33,13 @@ void swapColors();
|
|||||||
* \brief A function to read the primary selected color.
|
* \brief A function to read the primary selected color.
|
||||||
* \return Returns the primary color.
|
* \return Returns the primary color.
|
||||||
*/
|
*/
|
||||||
QColor getFirstColor();
|
QColor getFirstColor() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief A function to read the secondary selected color.
|
* \brief A function to read the secondary selected color.
|
||||||
* \return Returns the secondary color.
|
* \return Returns the secondary color.
|
||||||
*/
|
*/
|
||||||
QColor getSecondColor();
|
QColor getSecondColor() const;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief A function to set the primary color.
|
* \brief A function to set the primary color.
|
||||||
|
|||||||
@@ -9,6 +9,6 @@ void IntelliRenderSettings::setFastRendering(bool Updatedsetting){
|
|||||||
this->fastRenderering = Updatedsetting;
|
this->fastRenderering = Updatedsetting;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IntelliRenderSettings::isFastRenderering(){
|
bool IntelliRenderSettings::isFastRenderering() const{
|
||||||
return fastRenderering;
|
return fastRenderering;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ void setFastRendering(bool Updatedsetting);
|
|||||||
* \brief The getfastRenderer gets the value of the flag for the fastRenderer setting.
|
* \brief The getfastRenderer gets the value of the flag for the fastRenderer setting.
|
||||||
* \return Returns true if fastRenderer is active else false
|
* \return Returns true if fastRenderer is active else false
|
||||||
*/
|
*/
|
||||||
bool isFastRenderering();
|
bool isFastRenderering() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool fastRenderering = true;
|
bool fastRenderering = true;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ IntelliToolsettings::~IntelliToolsettings(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int IntelliToolsettings::getLineWidth(){
|
int IntelliToolsettings::getLineWidth() const{
|
||||||
return lineWidth;
|
return lineWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ void IntelliToolsettings::setLineWidth(int LineWidth){
|
|||||||
lineWidth = LineWidth;
|
lineWidth = LineWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
int IntelliToolsettings::getInnerAlpha(){
|
int IntelliToolsettings::getInnerAlpha() const{
|
||||||
return this->innerAlpha;
|
return this->innerAlpha;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ public:
|
|||||||
IntelliToolsettings();
|
IntelliToolsettings();
|
||||||
virtual ~IntelliToolsettings();
|
virtual ~IntelliToolsettings();
|
||||||
|
|
||||||
int getLineWidth();
|
int getLineWidth() const;
|
||||||
void setLineWidth(int LineWidth);
|
void setLineWidth(int LineWidth);
|
||||||
|
|
||||||
int getInnerAlpha();
|
int getInnerAlpha() const;
|
||||||
void setInnerAlpha(int innerAlpha);
|
void setInnerAlpha(int innerAlpha);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -96,10 +96,10 @@ void IntelliTool::deleteToolLayer(){
|
|||||||
this->Canvas = nullptr;
|
this->Canvas = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
IntelliTool::Tooltype IntelliTool::getTooltype(){
|
IntelliTool::Tooltype IntelliTool::getTooltype() const{
|
||||||
return ActiveType;
|
return ActiveType;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IntelliTool::getIsDrawing(){
|
bool IntelliTool::getIsDrawing() const{
|
||||||
return isDrawing;
|
return isDrawing;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,9 +127,9 @@ virtual void onWheelScrolled(int value);
|
|||||||
*/
|
*/
|
||||||
virtual void onMouseMoved(int x, int y);
|
virtual void onMouseMoved(int x, int y);
|
||||||
|
|
||||||
Tooltype getTooltype();
|
Tooltype getTooltype() const;
|
||||||
|
|
||||||
bool getIsDrawing();
|
bool getIsDrawing() const;
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user