From ca05954b3f9fe2c1a21333df5d454eeccbd42224 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 11 Nov 2015 19:17:04 +0300 Subject: [PATCH] Set font of the Root Label the same as in Tree View --- src/XGUI/XGUI_ObjectsBrowser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index 5171a65c1..c169228c2 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -234,6 +234,8 @@ XGUI_ActiveDocLbl::XGUI_ActiveDocLbl(const QString& theText, QWidget* theParent void XGUI_ActiveDocLbl::setTreeView(QTreeView* theView) { myTreeView = theView; + setFont(myTreeView->font()); + QPalette aPalet = myTreeView->palette(); QColor aHighlight = aPalet.highlight().color(); QColor aHighlightText = aPalet.highlightedText().color(); -- 2.39.2