Reformat code
This commit is contained in:
parent
821d11efe0
commit
7d3aabe1eb
@ -200,10 +200,10 @@ void CropScene::setDrawingSelection(QString name, std::function<DrawItem *()> dr
|
|||||||
if (drawingSelection)
|
if (drawingSelection)
|
||||||
if (!drawingSelection->init(this)) setDrawingSelection(tr("None"), [] { return nullptr; });
|
if (!drawingSelection->init(this)) setDrawingSelection(tr("None"), [] { return nullptr; });
|
||||||
menu->adjustSize();
|
menu->adjustSize();
|
||||||
auto screen = QApplication::primaryScreen();
|
auto screen = QApplication::primaryScreen();
|
||||||
int w = screen->geometry().width();
|
int w = screen->geometry().width();
|
||||||
proxyMenu->setPos(views()[0]->mapToScene(
|
proxyMenu->setPos(views()[0]->mapToScene(
|
||||||
QPoint(screen->geometry().x() + (w - proxyMenu->boundingRect().width()) / 2, screen->geometry().y() + 100)));
|
QPoint(screen->geometry().x() + (w - proxyMenu->boundingRect().width()) / 2, screen->geometry().y() + 100)));
|
||||||
}
|
}
|
||||||
|
|
||||||
QGraphicsItem *CropScene::whichItem(QPointF scenePos) {
|
QGraphicsItem *CropScene::whichItem(QPointF scenePos) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user