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

bool QWebSettings::testAttribute ( WebAttribute  attribute  )  const

Returns true if attribute is enabled; otherwise returns false.

Definition at line 594 of file qwebsettings.cpp.

References d, and globalSettings().

    bool defaultValue = false;
    if (d->settings) {
        QWebSettingsPrivate *global = QWebSettings::globalSettings()->d;
        defaultValue = global->attributes.value(attr);
    return d->attributes.value(attr, defaultValue);

Generated by  Doxygen 1.6.0   Back to index