From 7d3aabe1eb3cb2a6f014371991cd1aff7f892233 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Tue, 17 Oct 2017 20:15:34 +0200 Subject: [PATCH] Reformat code --- src/cropeditor/cropscene.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cropeditor/cropscene.cpp b/src/cropeditor/cropscene.cpp index c1c7fa0..a28a441 100644 --- a/src/cropeditor/cropscene.cpp +++ b/src/cropeditor/cropscene.cpp @@ -200,10 +200,10 @@ void CropScene::setDrawingSelection(QString name, std::function dr if (drawingSelection) if (!drawingSelection->init(this)) setDrawingSelection(tr("None"), [] { return nullptr; }); menu->adjustSize(); - auto screen = QApplication::primaryScreen(); - int w = screen->geometry().width(); - proxyMenu->setPos(views()[0]->mapToScene( - QPoint(screen->geometry().x() + (w - proxyMenu->boundingRect().width()) / 2, screen->geometry().y() + 100))); + auto screen = QApplication::primaryScreen(); + int w = screen->geometry().width(); + proxyMenu->setPos(views()[0]->mapToScene( + QPoint(screen->geometry().x() + (w - proxyMenu->boundingRect().width()) / 2, screen->geometry().y() + 100))); } QGraphicsItem *CropScene::whichItem(QPointF scenePos) {