tree->setSelectionMode(QAbstractItemView::ExtendedSelection);
tree->setAllColumnsShowFocus(true);
tree->setRootIsDecorated(false);
- tree->setWhatsThis(i18n("This list displays PCI information.") );
-
-
+ tree->setWhatsThis(i18n("This list displays PCI information."));
}
KCMPci::~KCMPci() {
if(m_contain->exportText().isEmpty())
{
- KInfoCenter::showError(this,i18n("Export of the module has produced no output."));
+ KMessageBox::sorry(this,i18n("Export of the module has produced no output."));
return;
}
if(!exportFile.open(QIODevice::WriteOnly))
{
- KInfoCenter::showError(this,i18n("Unable to open file to write export information"));
+ KMessageBox::sorry(this,i18n("Unable to open file to write export information"));
return;
}
<< "\n\n" << m_contain->exportText() << endl;
exportFile.close();
- KInfoCenter::showError(this, i18n("Information exported"));
+ KMessageBox::information(this, i18n("Information exported"));
}
void KInfoCenter::aboutKcmSlot()
KAboutApplicationDialog kcmAboutDialog(m_contain->kcmAboutData());
kcmAboutDialog.exec();
}
-
-void KInfoCenter::showError(QWidget *parent, const QString& errorMessage)
-{
- KMessageBox::sorry(parent, errorMessage);
-}
*/
void aboutKcmSlot();
- /**
- * Show a error message box
- *
- * @param parent parent object
- * @param errorMessage error message text
- */
- static void showError(QWidget *parent, const QString& errorMessage);
-
private:
/**