Logo Search packages:      
Sourcecode: kcm-qt-graphicssystem version File versions  Download package

void Module::setType ( int  type ) [protected, slot]

Called by EngineProbe once it found the current engine.

Parameters:
typeQGraphicsEngine::Type enumeration value of the engine in use.
See also:
EngineProbe

Definition at line 136 of file Module.cpp.

References probedButton, and ui.

Referenced by load().

{
    QPaintEngine::Type type_ = static_cast<QPaintEngine::Type>(type);
    switch (type_) {
    case QPaintEngine::X11 :
        ui->nativeButton->setChecked(true);
        probedButton = ui->nativeButton;
        break;
    case QPaintEngine::Raster :
        ui->rasterButton->setChecked(true);
        probedButton = ui->rasterButton;
        break;
    case QPaintEngine::OpenGL2 :
        ui->openglButton->setChecked(true);
        probedButton = ui->openglButton;
        break;
    default:
        // Unhandled type.
        // TODO: throw warning?
        break;
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index