From: nds Date: Fri, 25 Apr 2008 07:10:44 +0000 (+0000) Subject: Temporarily decision for signal about drawing of row. X-Git-Tag: TG_ACHERON_V9_0_6~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f7d536b65c127889d50e570ca0bd644595f7412;p=modules%2Fgui.git Temporarily decision for signal about drawing of row. --- diff --git a/src/Qtx/QtxTreeView.cxx b/src/Qtx/QtxTreeView.cxx index 001ebd6d3..bd07c1206 100644 --- a/src/Qtx/QtxTreeView.cxx +++ b/src/Qtx/QtxTreeView.cxx @@ -331,6 +331,20 @@ void QtxTreeView::selectionChanged( const QItemSelection& selected, emit( selectionChanged() ); } +void QtxTreeView::drawRow( QPainter* painter, const QStyleOptionViewItem& option, + const QModelIndex& index ) const +{ + QTreeView::drawRow( painter, option, index ); + + QtxTreeView* aThis = (QtxTreeView*)this; + aThis->drawRow( index ); +} + +void QtxTreeView::drawRow( const QModelIndex& index ) +{ + emit drawedRow( index ); +} + /*! \brief Expand/collapse the specified item (recursively). \param index model index diff --git a/src/Qtx/QtxTreeView.h b/src/Qtx/QtxTreeView.h index b11a31c40..8106afcb8 100644 --- a/src/Qtx/QtxTreeView.h +++ b/src/Qtx/QtxTreeView.h @@ -59,10 +59,14 @@ protected slots: protected: void setOpened( const QModelIndex&, const int, bool ); + virtual void drawRow( QPainter*, const QStyleOptionViewItem&, + const QModelIndex& ) const; + void drawRow( const QModelIndex& ); signals: void sortingEnabled( bool ); void selectionChanged(); + void drawedRow( const QModelIndex& ); private: void emitSortingEnabled( bool );