mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
UI: Ignore resizing item when it is locked
Fixes https://github.com/obsproject/obs-studio/issues/5724
This commit is contained in:
parent
83c89d06b5
commit
066b281db8
|
@ -572,6 +572,11 @@ void OBSBasicPreview::mousePressEvent(QMouseEvent *event)
|
|||
|
||||
void OBSBasicPreview::UpdateCursor(uint32_t &flags)
|
||||
{
|
||||
if (obs_sceneitem_locked(stretchItem)) {
|
||||
unsetCursor();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!flags && cursor().shape() != Qt::OpenHandCursor)
|
||||
unsetCursor();
|
||||
if (cursor().shape() != Qt::ArrowCursor)
|
||||
|
@ -1481,6 +1486,9 @@ void OBSBasicPreview::mouseMoveEvent(QMouseEvent *event)
|
|||
pos.y = std::round(pos.y);
|
||||
|
||||
if (stretchHandle != ItemHandle::None) {
|
||||
if (obs_sceneitem_locked(stretchItem))
|
||||
return;
|
||||
|
||||
selectionBox = false;
|
||||
|
||||
OBSBasic *main = reinterpret_cast<OBSBasic *>(
|
||||
|
|
Loading…
Reference in a new issue