Open source properties on double click
This commit is contained in:
parent
eadea9a7e5
commit
1e41dab7b5
@ -1745,6 +1745,18 @@ void OBSBasic::on_sources_customContextMenuRequested(const QPoint &pos)
|
||||
popup.exec(QCursor::pos());
|
||||
}
|
||||
|
||||
void OBSBasic::on_sources_itemDoubleClicked(QListWidgetItem *witem)
|
||||
{
|
||||
if (!witem)
|
||||
return;
|
||||
|
||||
OBSSceneItem item = GetSceneItem(witem);
|
||||
OBSSource source = obs_sceneitem_get_source(item);
|
||||
|
||||
if (source)
|
||||
CreatePropertiesWindow(source);
|
||||
}
|
||||
|
||||
void OBSBasic::AddSource(const char *id)
|
||||
{
|
||||
if (id && *id) {
|
||||
|
@ -265,6 +265,7 @@ private slots:
|
||||
void on_sources_currentItemChanged(QListWidgetItem *current,
|
||||
QListWidgetItem *prev);
|
||||
void on_sources_customContextMenuRequested(const QPoint &pos);
|
||||
void on_sources_itemDoubleClicked(QListWidgetItem *item);
|
||||
void on_actionAddSource_triggered();
|
||||
void on_actionRemoveSource_triggered();
|
||||
void on_actionInteract_triggered();
|
||||
|
Loading…
x
Reference in New Issue
Block a user