obs-aitum-multistream/stream-key-input.cpp

19 lines
354 B
C++
Raw Normal View History

2024-07-31 22:58:25 +02:00
#include "stream-key-input.hpp"
#include <QFocusEvent>
StreamKeyInput::StreamKeyInput(QWidget *parent) : QLineEdit(parent)
{
}
void StreamKeyInput::focusInEvent(QFocusEvent *event)
{
QLineEdit::focusInEvent(event);
emit focusGained();
}
void StreamKeyInput::focusOutEvent(QFocusEvent *event)
{
QLineEdit::focusOutEvent(event);
emit focusLost();
}