obs-aitum-multistream/stream-key-input.cpp
2024-07-31 21:58:25 +01:00

19 lines
354 B
C++

#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();
}