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

void TabletApplet::selectRelativeMode ( bool  state  )  [slot]

Sets the stylus and eraser mode to relative

Called when selected from the Radiobuttons

Parameters:
state state of the radiobutton when clicked

Definition at line 178 of file tabletapplet.cpp.

References m_deviceInterface, m_eraserName, m_radioButtonAbsolute, and m_stylusName.

Referenced by buildConfigDialog().

{
    if (state) {
        m_radioButtonAbsolute->setChecked(false);
        m_deviceInterface->call("setConfiguration", m_stylusName, "Mode", "relative");
        m_deviceInterface->call("setConfiguration", m_eraserName, "Mode", "relative");
    }
}


Generated by  Doxygen 1.6.0   Back to index