提交 bf6e8382 编写于 作者: J jp9000

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)
上级 74d886c2
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册