Go to the documentation of this file.
3 #include "QColorDialog"
4 #include "QInputDialog"
8 this->lineWidth = QInputDialog::getInt(
nullptr,
"Line Width Input",
"Width",1,1,50,1);
28 this->start=QPoint(x,y);
39 this->lineWidth+=value;
40 if(this->lineWidth<=0){
54 QPoint p1 =start.x() <= next.x() ? start : next;
55 QPoint p2 =start.x() < next.x() ? next : start;
56 int m = (float)(p2.y()-p1.y())/(
float)(p2.x()-p1.x())+0.5f;
57 int c = start.y()-start.x()*m;
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
QColor getFirstColor()
A function to read the primary selected color.
The IntelliColorPicker manages the selected colors for one whole project.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.