Salome HOME
NRI : Merge from V1_2.
[modules/kernel.git] / src / SALOMEGUI / QAD_ObjectBrowserItem.cxx
index ff9b506bb1e63fc2027c300c382cf6607dee5c25..37035831748131e59405a7b7cebf411517bf4eb0 100644 (file)
@@ -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 <qcolor.h>
@@ -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