mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-18 11:18:36 -05:00
The FocusList subclass of QListWidget emits a GotFocus signal when it gets focus -- used for the filters window to know when a specific filter list gets focus.
11 lines
198 B
C++
11 lines
198 B
C++
#include "focus-list.hpp"
|
|
|
|
FocusList::FocusList(QWidget *parent) : QListWidget(parent) {}
|
|
|
|
void FocusList::focusInEvent(QFocusEvent *event)
|
|
{
|
|
QListWidget::focusInEvent(event);
|
|
|
|
emit GotFocus();
|
|
}
|