d44aae4f43
I did not properly handle deleting the editor so it would stay in memory permanently.
13 lines
639 B
C++
13 lines
639 B
C++
#include "cropview.hpp"
|
|
|
|
CropView::CropView(QGraphicsScene *scene) : QGraphicsView(scene) {
|
|
setFrameShape(QFrame::NoFrame); // Time taken to solve: A george99g and 38 minutes.
|
|
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
|
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
|
setWindowFlags(windowFlags() | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
|
|
setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform | QPainter::HighQualityAntialiasing);
|
|
setCursor(QCursor(Qt::CrossCursor));
|
|
setMouseTracking(true);
|
|
setSizePolicy(QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed));
|
|
}
|