UI: Add OBSBasicPreview::Get helper func
This commit is contained in:
parent
25bc6db718
commit
7068e61fd9
@ -1587,3 +1587,8 @@ void OBSBasicPreview::SetScalingAmount(float newScalingAmountVal) {
|
||||
scrollingOffset.y *= newScalingAmountVal / scalingAmount;
|
||||
scalingAmount = newScalingAmountVal;
|
||||
}
|
||||
|
||||
OBSBasicPreview *OBSBasicPreview::Get()
|
||||
{
|
||||
return OBSBasic::Get()->ui->preview;
|
||||
}
|
||||
|
@ -91,6 +91,8 @@ public:
|
||||
OBSBasicPreview(QWidget *parent, Qt::WindowFlags flags = 0);
|
||||
~OBSBasicPreview();
|
||||
|
||||
static OBSBasicPreview *Get();
|
||||
|
||||
virtual void keyPressEvent(QKeyEvent *event) override;
|
||||
virtual void keyReleaseEvent(QKeyEvent *event) override;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user