mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kinfocenter: show information message when exporting is complete
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7599614d85
commit
ead5eb7e5b
3 changed files with 4 additions and 19 deletions
|
@ -67,8 +67,6 @@ KCMPci::KCMPci(QWidget *parent, const QVariantList &) :
|
|||
tree->setAllColumnsShowFocus(true);
|
||||
tree->setRootIsDecorated(false);
|
||||
tree->setWhatsThis(i18n("This list displays PCI information."));
|
||||
|
||||
|
||||
}
|
||||
|
||||
KCMPci::~KCMPci() {
|
||||
|
|
|
@ -247,7 +247,7 @@ void KInfoCenter::exportClickedSlot()
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ void KInfoCenter::exportClickedSlot()
|
|||
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -267,7 +267,7 @@ void KInfoCenter::exportClickedSlot()
|
|||
<< "\n\n" << m_contain->exportText() << endl;
|
||||
|
||||
exportFile.close();
|
||||
KInfoCenter::showError(this, i18n("Information exported"));
|
||||
KMessageBox::information(this, i18n("Information exported"));
|
||||
}
|
||||
|
||||
void KInfoCenter::aboutKcmSlot()
|
||||
|
@ -275,8 +275,3 @@ void KInfoCenter::aboutKcmSlot()
|
|||
KAboutApplicationDialog kcmAboutDialog(m_contain->kcmAboutData());
|
||||
kcmAboutDialog.exec();
|
||||
}
|
||||
|
||||
void KInfoCenter::showError(QWidget *parent, const QString& errorMessage)
|
||||
{
|
||||
KMessageBox::sorry(parent, errorMessage);
|
||||
}
|
||||
|
|
|
@ -99,14 +99,6 @@ class KInfoCenter : public KXmlGuiWindow
|
|||
*/
|
||||
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:
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue