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

void TabletApplet::showError ( const QString &  msg  ) 

Shows an error icon and message when no tablet is connected or a DBus failure has occurred.

Parameters:
msg the massage shown in the applet

Definition at line 379 of file tabletapplet.cpp.

References m_configWidget, m_deviceName, m_errorMsg, m_errorWidget, and m_layoutMain.

Referenced by connectDBus(), Wacom::TabletSettings::init(), and Wacom::TabletSettings::onTabletRemoved().

{
    m_deviceName->setText(i18nc("Title of the applet when an error shows up", "Tablet Error"));
    m_errorMsg->setText(msg);

    m_configWidget->hide();
    m_layoutMain->removeItem(m_configWidget);
    m_errorWidget->show();
    m_layoutMain->addItem(m_errorWidget);
}


Generated by  Doxygen 1.6.0   Back to index