mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 03:40:31 +02:00
scrolol ready
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user