segfault reeeeeeee
This commit is contained in:
parent
903875fb9a
commit
bde179df55
@ -25,8 +25,6 @@ CropEditor::CropEditor(QPixmap *image, QObject *parent) : QObject(parent)
|
||||
CropEditor::~CropEditor()
|
||||
{
|
||||
delete scene;
|
||||
delete view;
|
||||
delete pixmapItem;
|
||||
}
|
||||
|
||||
void CropEditor::crop(QRect rect)
|
||||
|
@ -19,11 +19,6 @@ CropScene::CropScene(QObject *parent) : QGraphicsScene(parent), prevButtons(Qt::
|
||||
});
|
||||
}
|
||||
|
||||
CropScene::~CropScene()
|
||||
{
|
||||
delete rect;
|
||||
}
|
||||
|
||||
void CropScene::mouseMoveEvent(QGraphicsSceneMouseEvent *e)
|
||||
{
|
||||
auto buttons = e->buttons();
|
||||
|
@ -11,7 +11,6 @@ class CropScene : public QGraphicsScene
|
||||
Q_OBJECT
|
||||
public:
|
||||
CropScene(QObject *parent);
|
||||
virtual ~CropScene();
|
||||
signals:
|
||||
void closedWithRect(QRect rect);
|
||||
|
||||
|
@ -9,10 +9,7 @@
|
||||
void screenshotter::area()
|
||||
{
|
||||
CropEditor *editor = new CropEditor(screenshotutil::fullscreen());
|
||||
QObject::connect(editor, &CropEditor::cropped, [&](QPixmap *pixmap) {
|
||||
UploaderSingleton::inst().upload(pixmap);
|
||||
delete editor;
|
||||
});
|
||||
QObject::connect(editor, &CropEditor::cropped, [&](QPixmap *pixmap) { UploaderSingleton::inst().upload(pixmap); });
|
||||
}
|
||||
|
||||
void screenshotter::fullscreen()
|
||||
|
Loading…
Reference in New Issue
Block a user