mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-16 21:30:31 +02:00
Fixed some bugs, also its mergable now, without any known issues
@DerAnonymos @AshBastian
This commit is contained in:
@@ -89,7 +89,6 @@ void IntelliPhotoGui::slotCreateNewShapedLayer(){
|
|||||||
// Stores button value
|
// Stores button value
|
||||||
bool ok1, ok2;
|
bool ok1, ok2;
|
||||||
|
|
||||||
bool ok1, ok2;
|
|
||||||
// "New Layer" is the title of the window
|
// "New Layer" is the title of the window
|
||||||
// the next tr is the text to display
|
// the next tr is the text to display
|
||||||
// Define the standard Value, min, max, step and ok button
|
// Define the standard Value, min, max, step and ok button
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ PaintingArea::~PaintingArea(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PaintingArea::setRenderSettings(bool isFastRenderingOn){
|
void PaintingArea::setRenderSettings(bool isFastRenderingOn){
|
||||||
if(isFastRenderingOn != renderSettings.isFastRenderering()) {
|
if(isFastRenderingOn != renderSettings.isFastRenderering() && !Tool->getIsDrawing()) {
|
||||||
renderSettings.setFastRendering(isFastRenderingOn);
|
renderSettings.setFastRendering(isFastRenderingOn);
|
||||||
for(auto& layer : layerBundle) {
|
for(auto& layer : layerBundle) {
|
||||||
layer.image->updateRendererSetting(isFastRenderingOn);
|
layer.image->updateRendererSetting(isFastRenderingOn);
|
||||||
@@ -110,6 +110,7 @@ void PaintingArea::setPolygon(int idx){
|
|||||||
delete this->Tool;
|
delete this->Tool;
|
||||||
this->Tool = new IntelliToolPolygon(this,&colorPicker,&Toolsettings, true);
|
this->Tool = new IntelliToolPolygon(this,&colorPicker,&Toolsettings, true);
|
||||||
isSettingPolygon = true;
|
isSettingPolygon = true;
|
||||||
|
this->DummyGui->setToolWidth(5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ IntelliToolPolygon::IntelliToolPolygon(PaintingArea* Area, IntelliColorPicker* c
|
|||||||
isDrawing = false;
|
isDrawing = false;
|
||||||
isInside = false;
|
isInside = false;
|
||||||
this->isSettingPolygon = isSettingPolygon;
|
this->isSettingPolygon = isSettingPolygon;
|
||||||
|
if(isSettingPolygon){
|
||||||
|
Toolsettings->setLineWidth(5);
|
||||||
|
}
|
||||||
this->ActiveType = Tooltype::POLYGON;
|
this->ActiveType = Tooltype::POLYGON;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,14 +124,18 @@ void IntelliToolPolygon::onMouseRightReleased(int x, int y){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void IntelliToolPolygon::onWheelScrolled(int value){
|
void IntelliToolPolygon::onWheelScrolled(int value){
|
||||||
IntelliTool::onWheelScrolled(value);
|
if(!isSettingPolygon){
|
||||||
if(!isDrawing) {
|
IntelliTool::onWheelScrolled(value);
|
||||||
Toolsettings->setLineWidth(Toolsettings->getLineWidth() + value);
|
if(!isDrawing) {
|
||||||
}
|
Toolsettings->setLineWidth(Toolsettings->getLineWidth() + value);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void IntelliToolPolygon::onMouseMoved(int x, int y){
|
void IntelliToolPolygon::onMouseMoved(int x, int y){
|
||||||
IntelliTool::onMouseMoved(x,y);
|
if(!isSettingPolygon){
|
||||||
|
IntelliTool::onMouseMoved(x,y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IntelliToolPolygon::isNearStart(int x, int y, QPoint Startpoint){
|
bool IntelliToolPolygon::isNearStart(int x, int y, QPoint Startpoint){
|
||||||
|
|||||||
Reference in New Issue
Block a user