Salome HOME
Key_Escape processing in File selector widget. Otherwise, crash happens if file dialo...
[modules/shaper.git] / src / XGUI / XGUI_ObjectsBrowser.cpp
index 5b86c1c0338802ccd92a85e420016d1b66dc3b49..eda25f837032b3830713a6fb4b4ef37f9c6a4657 100644 (file)
@@ -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<XGUI_ObjectsBrowser*>(parent());
     if (aObjBrowser) {
       aObjBrowser->onSelectionChanged();