From 9b19f7eab68361642d41b39a993c8af69d87ca87 Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Mon, 24 Jan 2022 09:58:04 -0800 Subject: [PATCH] NodeParamViewItemBase: Set widget in constructor Fixes #1829 --- app/widget/nodeparamview/nodeparamviewitembase.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/widget/nodeparamview/nodeparamviewitembase.cpp b/app/widget/nodeparamview/nodeparamviewitembase.cpp index 5116d872a..f29d70702 100644 --- a/app/widget/nodeparamview/nodeparamviewitembase.cpp +++ b/app/widget/nodeparamview/nodeparamviewitembase.cpp @@ -45,6 +45,10 @@ NodeParamViewItemBase::NodeParamViewItemBase(QWidget *parent) : // size hints and will shrink as small as possible if the body is hidden) hidden_body_ = new QWidget(this); + // Default to hidden body, this also seems to fix an issue with clicks being intermittent + // on the titlebar + setWidget(hidden_body_); + setAutoFillBackground(true); setFocusPolicy(Qt::ClickFocus);