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

void TabletApplet::setProfile ( const QString &  name  )  [slot]

Selects the current used profile in the KComboBox.

Called via DBus from the tablet deamon to change the current used profile

Parameters:
name the current used profile name

Definition at line 133 of file tabletapplet.cpp.

References m_comboBoxProfile, and updateProfile().

{
    updateProfile();

    m_comboBoxProfile->blockSignals(true);
    KComboBox* nativeBox = m_comboBoxProfile->nativeWidget();
    int index = nativeBox->findText(name);
    nativeBox->setCurrentIndex(index);
    m_comboBoxProfile->blockSignals(false);
}


Generated by  Doxygen 1.6.0   Back to index