SkinningTools.UI.weightEditor.vertHeaderView

Module Contents

Classes

VertHeaderView

header view that displays text in a vertical manner

class SkinningTools.UI.weightEditor.vertHeaderView.VertHeaderView(parent=None)

header view that displays text in a vertical manner

_font
_margin = 3
_metrics
_selectedFont
rightClicked
_getData(self, index)

get the current data of the header view

Parameters

index (int) – the index of the header

Returns

the header data of the model

Return type

QVariant

_getWidth(self)

get the width of the current headerview

Returns

the total width of all the headers

Return type

float

checkSelected(self, index)

check if the current object is selected

Parameters

index (int) – the index of the header

Returns

if the current header is selected

Return type

bool

mouseReleaseEvent(self, event)

mouse event to emit when mouse is right clicked

paintSection(self, painter, rect, index)

painter that will set the text in the correct scale and oriented vertically

Parameters
  • painter (QPainter) – painter class to override to make sure everything is drawn correctly

  • rect (Qrect) – the size of the current header

  • index (int) – the index of the header that needs to be drawn

rotate(self, index, rect)

convenience function to rotate the current header from horizontal to vertical

Parameters
  • index (int) – index of the header to change

  • rect (QRect) – the horizontally placed rect

Returns

the vertically placed rect

Return type

QRect

sizeHint(self)

returns the size hint

Returns

the size hint of the current headerview

Return type

QSize