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

void QPlainTextEdit::changeEvent ( QEvent e  )  [protected, virtual]

Reimplemented from QFrame.

Definition at line 2131 of file qplaintextedit.cpp.

References QFrame::changeEvent(), QWidget::font, QWidget::isActiveWindow, QWidget::palette, QEvent::setAccepted(), and QEvent::type().

{
    Q_D(QPlainTextEdit);
    QAbstractScrollArea::changeEvent(e);
    if (e->type() == QEvent::ApplicationFontChange
        || e->type() == QEvent::FontChange) {
        d->control->document()->setDefaultFont(font());
    }  else if(e->type() == QEvent::ActivationChange) {
        if (!isActiveWindow())
            d->autoScrollTimer.stop();
    } else if (e->type() == QEvent::EnabledChange) {
        e->setAccepted(isEnabled());
        d->sendControlEvent(e);
    } else if (e->type() == QEvent::PaletteChange) {
        d->control->setPalette(palette());
    }
}


Generated by  Doxygen 1.6.0   Back to index