]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixing height of Object Browser Item
authordmv <dmv@opencascade.com>
Thu, 28 May 2009 12:32:16 +0000 (12:32 +0000)
committerdmv <dmv@opencascade.com>
Thu, 28 May 2009 12:32:16 +0000 (12:32 +0000)
src/SUIT/SUIT_TreeModel.cxx
src/SUIT/SUIT_TreeModel.h

index 718d42514683d4bee88e974fc1fc5299b367a5b1..10ce1667ebad1d706264e4bffac0c9ce6cf51a0c 100755 (executable)
@@ -1672,3 +1672,10 @@ void SUIT_ItemDelegate::paint( QPainter* painter,
   }
   QItemDelegate::paint( painter, opt, index );
 }
+
+QSize SUIT_ItemDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
+{
+    QSize size = QItemDelegate::sizeHint ( option, index );
+    size.setHeight( size.height() + 1 );
+    return size;
+}
index e35570342eed3397db4127c4841497bde9e5922b..5c1565ce6ec11e9e171ae1e7c5779ee998b96b07 100755 (executable)
@@ -248,6 +248,8 @@ public:
   
   virtual void paint( QPainter*, const QStyleOptionViewItem&,
                      const QModelIndex& ) const;
+                     
+  virtual QSize sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const;
 };
 
 #ifdef WIN32