mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
upset for future work
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "QEvent"
|
||||
#include "QCloseEvent"
|
||||
#include "QScrollBar"
|
||||
|
||||
// IntelliPhotoGui constructor
|
||||
IntelliPhotoGui::IntelliPhotoGui(){
|
||||
|
||||
@@ -322,7 +322,7 @@ void PaintingArea::wheelEvent(QWheelEvent*event){
|
||||
// The QPaintEvent is sent to widgets that need to
|
||||
// update themselves
|
||||
void PaintingArea::paintEvent(QPaintEvent*event){
|
||||
this->setFixedSize(QSize(maxWidth,maxHeight));
|
||||
this->setFixedSize(QSize(maxWidth*2,maxHeight*2));
|
||||
this->drawLayers();
|
||||
|
||||
QPainter painter(this);
|
||||
@@ -331,7 +331,8 @@ void PaintingArea::paintEvent(QPaintEvent*event){
|
||||
painter.scale(1,1);
|
||||
|
||||
//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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user