From: vsv Date: Wed, 11 Nov 2015 16:17:04 +0000 (+0300) Subject: Set font of the Root Label the same as in Tree View X-Git-Tag: V_2.0.0_alfa2~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca05954b3f9fe2c1a21333df5d454eeccbd42224;p=modules%2Fshaper.git Set font of the Root Label the same as in Tree View --- 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();