19 lines
464 B
C++
19 lines
464 B
C++
#include "record-button.hpp"
|
|
#include "window-basic-main.hpp"
|
|
|
|
void RecordButton::resizeEvent(QResizeEvent *event)
|
|
{
|
|
OBSBasic *main = OBSBasic::Get();
|
|
if (!main->pause)
|
|
return;
|
|
|
|
QSize pauseSize = main->pause->size();
|
|
int height = main->ui->recordButton->size().height();
|
|
|
|
if (pauseSize.height() != height || pauseSize.width() != height) {
|
|
main->pause->setMinimumSize(height, height);
|
|
main->pause->setMaximumSize(height, height);
|
|
}
|
|
|
|
event->accept();
|
|
}
|