From: vsv Date: Mon, 29 Aug 2016 13:55:11 +0000 (+0300) Subject: Hide extra scroll bar in object browser X-Git-Tag: V_2.5.0~120 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36dfac883a2293f906d68db9f88826aa50c1b424;p=modules%2Fshaper.git Hide extra scroll bar in object browser --- diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index 15fba977c..f8956bacc 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -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)