9 #include <QResizeEvent>
12 #include <QScrollArea>
13 #include <QGraphicsSceneMouseEvent>
41 QTimer *timer =
new QTimer(
this);
125 x = floor(event->scenePos().x());
126 y = floor(event->scenePos().y());
138 int width = MainWindow::width()-20;
139 int heigth = MainWindow::height()-200;
150 if (event->key() == Qt::Key_E){
154 if (event->key() == Qt::Key_W){
159 if ((event->key() == 16777249)&&(
ui->
maksmode->isChecked()==
true)){
169 if ((event->key() == 16777249)&&(
ui->
clearmode->isChecked() ==
true)){
174 if ((event->key() == 16777249)&&(
ui->
clearpixel->isChecked() ==
true)){
178 if ((event->key() == 16777249)&&(
ui->
maskpixel->isChecked() ==
true)){
182 if ((event->key() == 16777249)&&(
ui->
maskislands->isChecked() ==
true)){
186 if ((event->key() == 16777249)&&(
ui->
windemitter->isChecked() ==
true)){
216 image =
image.convertToFormat(QImage::Format_ARGB32,Qt::AutoColor);
298 image =
image.scaled(x,y,Qt::KeepAspectRatio,Qt::FastTransformation);
314 QApplication::setOverrideCursor(Qt::ArrowCursor);