1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0029018: Documentation - Provide user guide for Qt browser

Documentation is added in a new "Inspector" page of "User Guides".
Inspector plugins has some improvements by the documentation needs.
New DRAW scripts are implemented for 'tinspector' command.
This commit is contained in:
nds
2017-08-28 12:29:29 +03:00
committed by bugmaster
parent 434098193a
commit d2c909178e
117 changed files with 3166 additions and 463 deletions

View File

@@ -15,6 +15,10 @@
#include <inspector/DFBrowserPane_AttributePaneModel.hxx>
#include <QApplication>
#include <QFont>
#include <QColor>
// =======================================================================
// function : Constructor
// purpose :
@@ -22,6 +26,7 @@
DFBrowserPane_AttributePaneModel::DFBrowserPane_AttributePaneModel (QObject* theParent)
: QAbstractTableModel (theParent), myOrientation (Qt::Vertical), myColumnCount (1)
{
myItalicColumns.append (0);
}
// =======================================================================
@@ -120,6 +125,15 @@ QVariant DFBrowserPane_AttributePaneModel::data (const QModelIndex& theIndex, in
aValue = aColValues.at (theIndex.row());
}
}
if (myItalicColumns.contains (theIndex.column()) && theRole == Qt::FontRole)
{
QFont aFont = qApp->font();
aFont.setItalic (true);
return aFont;
}
if (myItalicColumns.contains (theIndex.column()) && theRole == Qt::ForegroundRole)
return QColor (Qt::darkGray).darker(150);
return aValue;
}