From: stv Date: Tue, 31 May 2005 05:28:31 +0000 (+0000) Subject: Filter mechanism improvements X-Git-Tag: T3_0_0_a1~75 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=46549371d06dd21546927d8af1a124fdb256dd28;p=modules%2Fgui.git Filter mechanism improvements --- diff --git a/src/ObjBrowser/OB_ListItem.cxx b/src/ObjBrowser/OB_ListItem.cxx index 81fa6b747..663040ebb 100755 --- a/src/ObjBrowser/OB_ListItem.cxx +++ b/src/ObjBrowser/OB_ListItem.cxx @@ -119,10 +119,11 @@ void ListItem::paintFocus( QPainter* p, const QColorGroup& cg, const QRect& r template void ListItem::setSelected( bool s ) { - if ( s && listView() && listView()->inherits( "OB_ListView" ) ) + QListView* lv = T::listView(); + if ( s && lv && lv->inherits( "OB_ListView" ) ) { - OB_ListView* oblv = (OB_ListView*)listView(); - s = s && oblv->isOk( this ); + OB_ListView* objlv = (OB_ListView*)lv; + s = s && objlv->isOk( this ); } QListViewItem::setSelected( s ); diff --git a/src/ObjBrowser/OB_ListItem.h b/src/ObjBrowser/OB_ListItem.h index f53145c66..cc789d297 100755 --- a/src/ObjBrowser/OB_ListItem.h +++ b/src/ObjBrowser/OB_ListItem.h @@ -1,3 +1,4 @@ + #ifndef OB_LISTITEM_H #define OB_LISTITEM_H