obs-studio/UI/record-button.hpp
jp9000 e2fa510436 UI: Add save button next to replay buffer button
Allows the ability to save replays with a button rather than with the
keyboard if desired.

Closes obsproject/obs-studio#1954
2019-12-12 17:59:20 -08:00

26 lines
479 B
C++

#pragma once
#include <QPushButton>
class RecordButton : public QPushButton {
Q_OBJECT
public:
inline RecordButton(QWidget *parent = nullptr) : QPushButton(parent) {}
virtual void resizeEvent(QResizeEvent *event) override;
};
class ReplayBufferButton : public QPushButton {
Q_OBJECT
public:
inline ReplayBufferButton(const QString &text,
QWidget *parent = nullptr)
: QPushButton(text, parent)
{
}
virtual void resizeEvent(QResizeEvent *event) override;
};