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

ProfileManagement::PadButton ProfileManagement::getPadButtonFunction ( const QString &  buttonParam  ) 

Transforms the retrieved pad button function from xsetwacom into an Enumeration

buttonParam name of the Button to ask for
Button function as Enumeration

Definition at line 201 of file profilemanagement.cpp.

References Pad_Button, Pad_Disable, Pad_Keystroke, and Pad_QuoteDbl.

Referenced by Wacom::PadButtonWidget::loadFromProfile().

    if (buttonParam.contains("button", Qt::CaseInsensitive)) {
        return Pad_Button;

    if (buttonParam.contains("quotedbl", Qt::CaseInsensitive)) {
        return Pad_QuoteDbl;

    if (buttonParam.contains("core key", Qt::CaseInsensitive)) {
        return Pad_Keystroke;

    return Pad_Disable;

Generated by  Doxygen 1.6.0   Back to index