scrolol ready

This commit is contained in:
Jonas Mucke
2020-01-23 16:37:55 +01:00
parent 651bf806fc
commit 4217b00d88
4 changed files with 24 additions and 12 deletions

View File

@@ -7,6 +7,8 @@
#include "QCloseEvent"
#include "QScrollBar"
#include <QDebug>
// IntelliPhotoGui constructor
IntelliPhotoGui::IntelliPhotoGui(){
// create Gui elements and lay them out
@@ -19,7 +21,7 @@ IntelliPhotoGui::IntelliPhotoGui(){
setIntelliStyle();
// Size the app
resize(600,600);
setDefaultToolValue();
setDefaultValues();
}
// User tried to close the app
@@ -118,6 +120,8 @@ void IntelliPhotoGui::slotChangeDim(){
int height = IntelliInputDialog::getInt("New Canvas Size", "Height:", 600, 1, 50000, 1, &ok2);
// Change dimension
if (ok1&&ok2) {
paintingArea->setLayerDimensions(width,height);
@@ -768,6 +772,7 @@ void IntelliPhotoGui::createGui(){
mainLayout->addWidget(dimActive,13,2,1,2);
mainLayout->addWidget(dimCanvas,14,2,1,2);
mainLayout->setHorizontalSpacing(0);
}
void IntelliPhotoGui::setIntelliStyle(){
@@ -828,7 +833,7 @@ bool IntelliPhotoGui::saveFile(const QByteArray &fileFormat){
}
}
void IntelliPhotoGui::setDefaultToolValue(){
void IntelliPhotoGui::setDefaultValues(){
slotEnterPressed();
}