]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Temporarily decision for signal about drawing of row.
authornds <nds@opencascade.com>
Fri, 25 Apr 2008 07:10:44 +0000 (07:10 +0000)
committernds <nds@opencascade.com>
Fri, 25 Apr 2008 07:10:44 +0000 (07:10 +0000)
src/Qtx/QtxTreeView.cxx
src/Qtx/QtxTreeView.h

index 001ebd6d3d7fbda1a9565e88f4141a9b7cdd4488..bd07c12067149aff77dfd08f3ba9138f720f5b76 100644 (file)
@@ -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
index b11a31c40782c0fbe3b4883118a8c31da6ec1b0a..8106afcb807f2060c84e9f7254134c8c652d9a57 100644 (file)
@@ -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 );