X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEGUI%2FQAD_ObjectBrowserItem.cxx;h=37035831748131e59405a7b7cebf411517bf4eb0;hb=b5b44337d62219656650cf2b21108594bbf9adc3;hp=ff9b506bb1e63fc2027c300c382cf6607dee5c25;hpb=61d4fc88c862e718985aa6e9b1bf72f055553eee;p=modules%2Fkernel.git diff --git a/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx b/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx index ff9b506bb..370358317 100644 --- a/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx +++ b/src/SALOMEGUI/QAD_ObjectBrowserItem.cxx @@ -1,12 +1,32 @@ -using namespace std; -// File : QAD_ObjectBrowserItem.cxx -// Created : Thu Jun 14 17:07:42 2001 -// Author : Nicolas REJNERI -// Project : SALOME -// Module : SALOMEGUI -// Copyright : Open CASCADE +// SALOME SALOMEGUI : implementation of desktop and GUI kernel +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : QAD_ObjectBrowserItem.cxx +// Author : Nicolas REJNERI +// Module : SALOME // $Header$ +using namespace std; #include "QAD_ObjectBrowserItem.h" #include @@ -206,8 +226,10 @@ void QAD_ObjectBrowserItem::paintCell( QPainter* thePainter, } } - if (myTextColor.isValid()) - aColorGroup.setColor(QColorGroup::Text, myTextColor); + if (myTextColor.isValid()) { + aColorGroup.setColor(QColorGroup::Text, myTextColor); + aColorGroup.setColor(QColorGroup::HighlightedText, myTextColor); + } if (myTextHighlightColor.isValid()) aColorGroup.setColor(QColorGroup::Highlight, myTextHighlightColor); if (myCurrent) { // UseCase's current entry