Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

bool QHeaderView::isSectionHidden ( int  logicalIndex  )  const

Returns true if the section specified by logicalIndex is explicitly hidden from the user; otherwise returns false.

See also:
setSectionHidden()

Definition at line 682 of file qheaderview.cpp.

References visualIndex().

Referenced by QTreeView::drawRow(), mouseDoubleClickEvent(), mousePressEvent(), QTableView::paintEvent(), resizeSection(), and sectionSize().

{
    Q_D(const QHeaderView);
    Q_ASSERT(logicalIndex >= 0);
    d->executePostedLayout();
    if (logicalIndex >= d->sections.count() - 1)
        return false;
    int visual = visualIndex(logicalIndex);
    Q_ASSERT(visual != -1);
    return d->sections.at(visual).hidden;
}


Generated by  Doxygen 1.6.0   Back to index