From 77bd82b3f7040d74c2ab07093ffe8d9cd0190dd3 Mon Sep 17 00:00:00 2001 From: tsl115 Date: Fri, 24 Nov 2023 09:59:00 +0800 Subject: [PATCH] feat: Abnormal background color selected in symbol plugin Abnormal background color selected in symbol plugin --- src/plugins/symbol/mainframe/symboltreeview.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/symbol/mainframe/symboltreeview.cpp b/src/plugins/symbol/mainframe/symboltreeview.cpp index ce1084ae4..7e002e515 100644 --- a/src/plugins/symbol/mainframe/symboltreeview.cpp +++ b/src/plugins/symbol/mainframe/symboltreeview.cpp @@ -43,7 +43,6 @@ SymbolTreeView::SymbolTreeView(DWidget *parent) setEditTriggers(DTreeView::NoEditTriggers); //节点不能编辑 setSelectionBehavior(DTreeView::SelectRows); //一次选中整行 setSelectionMode(DTreeView::SingleSelection); //单选,配合上面的整行就是一次选单行 - setFocusPolicy(Qt::NoFocus); //去掉鼠标移到节点上时的虚线框 header()->setVisible(false); QObject::connect(this, &DTreeView::doubleClicked, this, &SymbolTreeView::doDoubleClieked,