basics of zoom and scroll

This commit is contained in:
Jonas Mucke
2020-01-22 21:19:24 +01:00
parent 31553b2e94
commit 8e187ba6b3
5 changed files with 71 additions and 41 deletions

View File

@@ -50,7 +50,7 @@ struct LayerObject {
/*!
* \brief The PaintingArea class manages the methods and stores information about the current painting area, which is the currently opened project
*/
class PaintingArea : public QWidget
class PaintingArea : public QLabel
{
friend UnitTest;
// Declares our class as a QObject which is the base class
@@ -228,6 +228,7 @@ void selectLayerDown();
IntelliTool* copyActiveTool();
QImage* Canvas;
QImage ScaledCanvas;
int maxWidth;
int maxHeight;
@@ -235,7 +236,7 @@ bool isSettingPolygon = false;
IntelliRenderSettings renderSettings;
IntelliTool* Tool;
IntelliPhotoGui* DummyGui;
IntelliPhotoGui* guiReference;
std::vector<LayerObject> layerBundle;
int activeLayer = -1;