mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-16 05:10:32 +02:00
upset for future work
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
#include "QEvent"
|
#include "QEvent"
|
||||||
#include "QCloseEvent"
|
#include "QCloseEvent"
|
||||||
|
#include "QScrollBar"
|
||||||
|
|
||||||
// IntelliPhotoGui constructor
|
// IntelliPhotoGui constructor
|
||||||
IntelliPhotoGui::IntelliPhotoGui(){
|
IntelliPhotoGui::IntelliPhotoGui(){
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ void PaintingArea::wheelEvent(QWheelEvent*event){
|
|||||||
// The QPaintEvent is sent to widgets that need to
|
// The QPaintEvent is sent to widgets that need to
|
||||||
// update themselves
|
// update themselves
|
||||||
void PaintingArea::paintEvent(QPaintEvent*event){
|
void PaintingArea::paintEvent(QPaintEvent*event){
|
||||||
this->setFixedSize(QSize(maxWidth,maxHeight));
|
this->setFixedSize(QSize(maxWidth*2,maxHeight*2));
|
||||||
this->drawLayers();
|
this->drawLayers();
|
||||||
|
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
@@ -331,7 +331,8 @@ void PaintingArea::paintEvent(QPaintEvent*event){
|
|||||||
painter.scale(1,1);
|
painter.scale(1,1);
|
||||||
|
|
||||||
//calulate image here for scroll
|
//calulate image here for scroll
|
||||||
painter.drawImage(0,0, *Canvas);
|
//Todo set offset in first to parameters and calulate them into mouse position
|
||||||
|
painter.drawImage(0, 0, *Canvas, 0, 0);
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user