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

void TabletApplet::updateWidget (  )  [slot]

Updates the widget content and internal values.

Called when the tablet deamon detects that a new tablet was added or the existing tablet has been removed.

Definition at line 81 of file tabletapplet.cpp.

References m_deviceInterface, m_deviceName, m_eraserName, m_padName, m_stylusName, and updateProfile().

Referenced by showApplet().

{
    QDBusReply<QString> deviceName  = m_deviceInterface->call("deviceName");
    m_deviceName->setText(deviceName);

    QDBusReply<QString> padName  = m_deviceInterface->call("padName");
    if (padName.isValid()) {
        m_padName = padName;
    }
    QDBusReply<QString> stylusName  = m_deviceInterface->call("stylusName");
    if (stylusName.isValid()) {
        m_stylusName = stylusName;
    }
    QDBusReply<QString> eraserName  = m_deviceInterface->call("eraserName");
    if (eraserName.isValid()) {
        m_eraserName = eraserName;
    }

    updateProfile();
}


Generated by  Doxygen 1.6.0   Back to index