mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0029674: Improvements in Inspector tool
- preferences for dock windows geometry, tree view columns and current view projection; - ViewControl package for common functionality between plugins; - processing Location and Orientation for external TopoDS_Shape object - 'F5' key to update content of each plugin - visibility column in tree view (used now only in ShapeView) - properties child item for context (presents tree of current Filters of context)
This commit is contained in:
@@ -31,8 +31,6 @@
|
||||
#include <QObject>
|
||||
#include <Standard_WarningsRestore.hxx>
|
||||
|
||||
const int INFO_LENGHT = 60;
|
||||
|
||||
// =======================================================================
|
||||
// function : hasAttribute
|
||||
// purpose :
|
||||
@@ -136,8 +134,8 @@ QVariant DFBrowser_Item::initValue (const int theItemRole) const
|
||||
DFBrowser_ItemRole_AdditionalInfo, Column()).toString();
|
||||
if (!anAdditionalInfo.isEmpty())
|
||||
{
|
||||
if (theItemRole == DFBrowserPane_ItemRole_DisplayExtended && anAdditionalInfo.length() > INFO_LENGHT)
|
||||
anAdditionalInfo = anAdditionalInfo.mid (0, INFO_LENGHT - 3) + "...";
|
||||
if (theItemRole == DFBrowserPane_ItemRole_DisplayExtended)
|
||||
anAdditionalInfo = TreeModel_Tools::CutString (anAdditionalInfo);
|
||||
if (!anAdditionalInfo.isEmpty())
|
||||
aValue = QVariant (aValue.toString() + QString (" [%1]").arg (anAdditionalInfo));
|
||||
//if (aRole == Qt::ToolTipRole)
|
||||
|
Reference in New Issue
Block a user