Add option to check for addition chat message properties

This commit is contained in:
WarmUpTill
2024-08-17 22:16:12 +02:00
committed by WarmUpTill
parent d69364ec19
commit 93efc7cab3
12 changed files with 784 additions and 185 deletions

View File

@@ -23,13 +23,16 @@ bool MouseWheelWidgetAdjustmentGuard::eventFilter(QObject *o, QEvent *e)
void PreventMouseWheelAdjustWithoutFocus(QWidget *w)
{
// Ignore QScrollBar as there is no danger of accidentally modifying anything
// and long expanded QComboBox would be difficult to interact with otherwise.
// Ignore OSCMessageElementEdit to allow OSCMessageEdit list to up update
// current index correctly.
// Ignore QScrollBar as there is no danger of accidentally modifying
// anything and long expanded QComboBox would be difficult to interact
// with otherwise.
// Ignore OSCMessageElementEdit and ChatMessagePropertyEdit to allow
// lists to up update the current index correctly.
if (qobject_cast<QScrollBar *>(w) ||
QString(w->metaObject()->className()) ==
"advss::OSCMessageElementEdit") {
"advss::OSCMessageElementEdit" ||
QString(w->metaObject()->className()) ==
"advss::ChatMessagePropertyEdit") {
return;
}
w->setFocusPolicy(Qt::StrongFocus);