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

QString ProfileManagement::transformButtonFromConfig ( PadButton  mode,
QString &  buttonParam 
)

Transforms the pad button function value as read from the KConfig file into a human readable version

Parameters:
mode Enumeration function mode
buttonParam Value of the button mode
Returns:
Human readable button function

Definition at line 287 of file profilemanagement.cpp.

Referenced by Wacom::PenWidget::loadFromProfile(), and Wacom::PadButtonWidget::loadFromProfile().

{
    Q_UNUSED(mode);
    buttonParam.remove("core key", Qt::CaseInsensitive);
    buttonParam.remove(QRegExp("\\s?quotedbl\\s?", Qt::CaseInsensitive));
    return buttonParam;
}


Generated by  Doxygen 1.6.0   Back to index