diff --git a/IntelliPhoto/Painting/IntelliPhoto.pro.user b/IntelliPhoto/Painting/IntelliPhoto.pro.user index 1c2c4e7..fe52988 100644 --- a/IntelliPhoto/Painting/IntelliPhoto.pro.user +++ b/IntelliPhoto/Painting/IntelliPhoto.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/IntelliPhoto/Painting/Layer/PaintingArea.cpp b/IntelliPhoto/Painting/Layer/PaintingArea.cpp index 5076b39..33c0fc3 100644 --- a/IntelliPhoto/Painting/Layer/PaintingArea.cpp +++ b/IntelliPhoto/Painting/Layer/PaintingArea.cpp @@ -19,6 +19,7 @@ PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent) this->addLayer(200,200,150,150); layerStructure[1].image->floodFill(QColor(0,255,0,255)); layerStructure[1].alpha=100; + activeLayer=1; } @@ -124,7 +125,7 @@ void PaintingArea::clearImage() return; } IntelliImage* active = layerStructure[activeLayer].image; - active->floodFill(qRgb(255, 255, 255)); + active->floodFill(QColor(255, 255, 255, 255)); update(); } diff --git a/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/IntelliPhoto.exe b/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/IntelliPhoto.exe index 4684ab8..3af9543 100644 Binary files a/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/IntelliPhoto.exe and b/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/IntelliPhoto.exe differ diff --git a/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/PaintingArea.o b/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/PaintingArea.o index b08ddaf..23d70c6 100644 Binary files a/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/PaintingArea.o and b/IntelliPhoto/build-IntelliPhoto-Desktop_Qt_5_12_5_MinGW_64_bit-Debug/debug/PaintingArea.o differ