10namespace MantidWidgets {
18 : QHeaderView(
orientation, parent), m_checked(false) {
20 setSectionsClickable(
true);
28 if (isEnabled() &&
m_checked != checked) {
43 QHeaderView::paintSection(painter,
rect, logicalIndex);
46 if (logicalIndex == 0) {
48 model()->setHeaderData(0, Qt::Horizontal, tr(
""));
50 QStyleOptionButton option;
53 option.state |= QStyle::State_Enabled;
57 option.state |=
m_checked ? QStyle::State_On : QStyle::State_Off;
59 style()->drawControl(QStyle::CE_CheckBox, &option, painter);
68 if (isEnabled() && logicalIndexAt(event->pos()) == 0) {
73 QHeaderView::mousePressEvent(event);
78 QStyleOptionButton checkBoxStyleOption;
80 QRect
checkBoxRect = style()->subElementRect(QStyle::SE_CheckBoxIndicator, &checkBoxStyleOption);
82 QPoint checkBoxPoint(sourceRect.x() + 3, sourceRect.y() + sourceRect.height() / 2 -
checkBoxRect.height() / 2);
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
MANTID_GEOMETRY_DLL PolygonEdge::Orientation orientation(const PolygonEdge &focusEdge, const PolygonEdge &refEdge, double &t)
Calculate the orientation type of one edge wrt to another.