diff --git a/forms/advanced-scene-switcher.ui b/forms/advanced-scene-switcher.ui index 13790d0a..83e4577c 100644 --- a/forms/advanced-scene-switcher.ui +++ b/forms/advanced-scene-switcher.ui @@ -1172,43 +1172,26 @@ - + Title - - - - - - - - <html><head/><body><p>Enter either direct window titles or valid regex. You can check syntax and matches for regular expressions using <a href="https://regexr.com"><span style=" text-decoration: underline; color:#268bd2;">RegExr</span></a></p></body></html> - - - Qt::AutoText - - - true - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - + + + + + + <html><head/><body><p>Enter either direct window titles or valid regex. You can check syntax and matches for regular expressions using <a href="https://regexr.com"><span style=" text-decoration: underline; color:#268bd2;">RegExr</span></a></p></body></html> + + + Qt::AutoText + + + true + + @@ -1482,20 +1465,6 @@ - - - - Qt::Horizontal - - - - - - - (If you want to add OBS itself as a window title use "OBS" - If you want to add ALT + TAB add "Task Switching") - - - diff --git a/src/advanced-scene-switcher.cpp b/src/advanced-scene-switcher.cpp index 4b2344a5..de4a3e3e 100644 --- a/src/advanced-scene-switcher.cpp +++ b/src/advanced-scene-switcher.cpp @@ -121,6 +121,13 @@ void AdvSceneSwitcher::populateWindowSelection(QComboBox *sel, bool addSelect) for (std::string &window : windows) { sel->addItem(window.c_str()); } + +#ifdef WIN32 + sel->setItemData( + 0, + "Use \"OBS\" to specify OBS window\nUse \"Task Switching\"to specify ALT + TAB", + Qt::ToolTipRole); +#endif } void AdvSceneSwitcher::populateAudioSelection(QComboBox *sel, bool addSelect)