]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Hide extra scroll bar in object browser
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 29 Aug 2016 13:55:11 +0000 (16:55 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 29 Aug 2016 13:55:11 +0000 (16:55 +0300)
src/XGUI/XGUI_ObjectsBrowser.cpp

index 15fba977ca2d02a3318d9a14d981641015534e74..f8956bacc9cc9278f283cde75d71f7e930d894a3 100644 (file)
@@ -134,12 +134,12 @@ void XGUI_DataTree::clear()
 
 void XGUI_DataTree::resizeEvent(QResizeEvent* theEvent)
 {
+  QTreeView::resizeEvent(theEvent);
   QSize aSize = theEvent->size();
   if (aSize.isValid()) {
-    setColumnWidth(0, aSize.width() - SECOND_COL_WIDTH);
+    setColumnWidth(0, aSize.width() - SECOND_COL_WIDTH - 3);
     setColumnWidth(1, SECOND_COL_WIDTH);
   }
-  QTreeView::resizeEvent(theEvent);
 }
 
 void XGUI_DataTree::onDoubleClick(const QModelIndex& theIndex)