Make the tool bar always visible on all screens
This commit is contained in:
parent
f3627356b6
commit
097b6991da
@ -149,8 +149,9 @@ CropScene::CropScene(QObject *parent, QPixmap pixmap)
|
|||||||
cursorPos = QPoint(pf.x(), pf.y());
|
cursorPos = QPoint(pf.x(), pf.y());
|
||||||
cursorItem->setPos(cursorPos);
|
cursorItem->setPos(cursorPos);
|
||||||
updateMag();
|
updateMag();
|
||||||
int w = QApplication::primaryScreen()->geometry().width();
|
auto screen = QApplication::primaryScreen();
|
||||||
widget->setPos((w - widget->boundingRect().width()) / 2, 100);
|
int w = screen->geometry().width();
|
||||||
|
widget->setPos((w - widget->boundingRect().width()) / 2, screen->geometry().top() + 100);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user