mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-25 03:33:28 +01:00
19 lines
354 B
C++
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();
|
|
}
|