Reformat code

This commit is contained in:
ArsenArsen 2017-10-17 20:15:34 +02:00
parent 821d11efe0
commit 7d3aabe1eb
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2

View File

@ -200,10 +200,10 @@ void CropScene::setDrawingSelection(QString name, std::function<DrawItem *()> 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) {