From 5f7d536b65c127889d50e570ca0bd644595f7412 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 25 Apr 2008 07:10:44 +0000 Subject: [PATCH] Temporarily decision for signal about drawing of row. --- src/Qtx/QtxTreeView.cxx | 14 ++++++++++++++ src/Qtx/QtxTreeView.h | 4 ++++ 2 files changed, 18 insertions(+) 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 ); -- 2.39.2