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

void Q3Header::resizeEvent ( QResizeEvent e  )  [protected, virtual]

Reimplemented from QWidget.

Definition at line 1870 of file q3header.cpp.

References adjustHeaderSize(), QWidget::height(), QSize::height(), QResizeEvent::oldSize(), QWidget::resizeEvent(), QWidget::update(), QSize::width(), and QWidget::width().

{
    if (e)
        QWidget::resizeEvent(e);

    if(d->lastPos < width()) {
            offs = 0;
    }

    if (e) {
        adjustHeaderSize(orientation() == Qt::Horizontal ?
                          width() - e->oldSize().width() : height() - e->oldSize().height());
        if ((orientation() == Qt::Horizontal && height() != e->oldSize().height())
             || (orientation() == Qt::Vertical && width() != e->oldSize().width()))
            update();
    } else
        adjustHeaderSize();
}


Generated by  Doxygen 1.6.0   Back to index