mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
UI: Emit DisplayResized() viewport signal
This allows knowing when the graphics viewport itself changes in size (in case the window with the graphics viewport does not change size)
This commit is contained in:
parent
74d886c2f8
commit
bf6e83821c
|
@ -5,6 +5,15 @@
|
|||
class OBSQTDisplay : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
virtual void resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
emit DisplayResized();
|
||||
QWidget::resizeEvent(event);
|
||||
}
|
||||
|
||||
signals:
|
||||
void DisplayResized();
|
||||
|
||||
public:
|
||||
inline OBSQTDisplay(QWidget *parent = 0, Qt::WindowFlags flags = 0)
|
||||
: QWidget(parent, flags)
|
||||
|
|
Loading…
Reference in a new issue