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

void QTableWidget::setHorizontalHeaderItem ( int  column,
QTableWidgetItem item 

Sets the horizontal header item for column column to item.

Definition at line 1678 of file qtablewidget.cpp.

References QTableWidgetItem::itemFlags, takeHorizontalHeaderItem(), and QTableWidgetItem::view.

Referenced by QAbstractFormBuilder::loadTableWidgetExtraInfo(), and setHorizontalHeaderLabels().

    if (item) {
        item->view = this;
        item->itemFlags = Qt::ItemFlags(int(item->itemFlags) |
        d->model()->setHorizontalHeaderItem(column, item);
    } else {
        delete takeHorizontalHeaderItem(column);

Generated by  Doxygen 1.6.0   Back to index