mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-22 10:22:42 +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();
|
|
}
|