X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ObjectsBrowser.cpp;h=eda25f837032b3830713a6fb4b4ef37f9c6a4657;hb=1e63ae393cf1ce1923329c90aa66fa33f957f268;hp=5b86c1c0338802ccd92a85e420016d1b66dc3b49;hpb=6fb5a58743556b877d64129002572de4116abd96;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index 5b86c1c03..eda25f837 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -43,7 +43,7 @@ #endif /// Width of second column (minimum acceptable = 27) -#define FIRST_COL_WIDTH 30 +#define FIRST_COL_WIDTH 20 #define SECOND_COL_WIDTH 30 @@ -147,7 +147,7 @@ void XGUI_DataTree::resizeEvent(QResizeEvent* theEvent) QSize aSize = theEvent->size(); if (aSize.isValid()) { setColumnWidth(0, FIRST_COL_WIDTH); - setColumnWidth(1, aSize.width() - SECOND_COL_WIDTH - FIRST_COL_WIDTH - 12); + setColumnWidth(1, aSize.width() - SECOND_COL_WIDTH - FIRST_COL_WIDTH - 10); setColumnWidth(2, SECOND_COL_WIDTH); } } @@ -159,10 +159,12 @@ void XGUI_DataTree::mousePressEvent(QMouseEvent* theEvent) if (theEvent->button() != Qt::MidButton) return; QModelIndex aInd = indexAt(theEvent->pos()); - QString aTxt = QString("r=%1 c=%2 p=%3").arg(aInd.row()).arg(aInd.column()).arg((long)aInd.internalPointer()); + QString aTxt = + QString("r=%1 c=%2 p=%3").arg(aInd.row()).arg(aInd.column()).arg((long)aInd.internalPointer()); QModelIndex aPar = aInd.parent(); - QString aTxt1 = QString("r=%1 c=%2 p=%3").arg(aPar.row()).arg(aPar.column()).arg((long)aPar.internalPointer()); + QString aTxt1 = + QString("r=%1 c=%2 p=%3").arg(aPar.row()).arg(aPar.column()).arg((long)aPar.internalPointer()); QToolTip::showText(theEvent->globalPos(), aTxt + '\n' + aTxt1); } #endif @@ -236,7 +238,8 @@ void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex) Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY)); update(theIndex); } - // Update list of selected objects because this event happens after selection event in object browser + // Update list of selected objects because this event happens after + // selection event in object browser XGUI_ObjectsBrowser* aObjBrowser = qobject_cast(parent()); if (aObjBrowser) { aObjBrowser->onSelectionChanged();