(self)
Return the 'header' geometry.

        This is the top part of the widget spanning the top dendrogram,
        column labels... (can be empty).
Return the 'header' geometry.
Return the header geometry .
def headerGeometry(self) -> QRectF:
        """Return the 'header' geometry.

        This is the top part of the widget spanning the top dendrogram,
        column labels... (can be empty).
        """
        layout = self.__layout
        geom1 = grid_layout_row_geometry(layout, self.DendrogramRow)
        geom2 = grid_layout_row_geometry(layout, self.TopLabelsRow)
        first = grid_layout_row_geometry(layout, self.TopLabelsRow + 1)
        geom = geom1.united(geom2)
        if geom.isValid():
            if first.isValid():
                geom.setBottom(geom.bottom() / 2.0 + first.top() / 2.0)
            return QRectF(self.geometry().topLeft(), geom.bottomRight())
        else:
            return QRectF()
def headerGeometry ( self ) -> QRectF : layout = self . __layout geom1 = grid_layout_row_geometry ( layout , self . DendrogramRow ) geom2 = grid_layout_row_geometry ( layout , self . TopLabelsRow ) first = grid_layout_row_geometry ( layout , self . TopLabelsRow + 1 ) geom = geom1 . united ( geom2 ) if geom . isValid ( ) : if first . isValid ( ) : geom . setBottom ( geom . bottom ( ) / 2.0 + first . top ( ) / 2.0 ) return QRectF ( self . geometry ( ) . topLeft ( ) , geom . bottomRight ( ) ) else : return QRectF ( )