mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +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
|
@ -66,9 +66,7 @@ KCMPci::KCMPci(QWidget *parent, const QVariantList &) :
|
||||||
tree->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
tree->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
tree->setAllColumnsShowFocus(true);
|
tree->setAllColumnsShowFocus(true);
|
||||||
tree->setRootIsDecorated(false);
|
tree->setRootIsDecorated(false);
|
||||||
tree->setWhatsThis(i18n("This list displays PCI information.") );
|
tree->setWhatsThis(i18n("This list displays PCI information."));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
KCMPci::~KCMPci() {
|
KCMPci::~KCMPci() {
|
||||||
|
|
|
@ -247,7 +247,7 @@ void KInfoCenter::exportClickedSlot()
|
||||||
|
|
||||||
if(m_contain->exportText().isEmpty())
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -258,7 +258,7 @@ void KInfoCenter::exportClickedSlot()
|
||||||
|
|
||||||
if(!exportFile.open(QIODevice::WriteOnly))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ void KInfoCenter::exportClickedSlot()
|
||||||
<< "\n\n" << m_contain->exportText() << endl;
|
<< "\n\n" << m_contain->exportText() << endl;
|
||||||
|
|
||||||
exportFile.close();
|
exportFile.close();
|
||||||
KInfoCenter::showError(this, i18n("Information exported"));
|
KMessageBox::information(this, i18n("Information exported"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void KInfoCenter::aboutKcmSlot()
|
void KInfoCenter::aboutKcmSlot()
|
||||||
|
@ -275,8 +275,3 @@ void KInfoCenter::aboutKcmSlot()
|
||||||
KAboutApplicationDialog kcmAboutDialog(m_contain->kcmAboutData());
|
KAboutApplicationDialog kcmAboutDialog(m_contain->kcmAboutData());
|
||||||
kcmAboutDialog.exec();
|
kcmAboutDialog.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
void KInfoCenter::showError(QWidget *parent, const QString& errorMessage)
|
|
||||||
{
|
|
||||||
KMessageBox::sorry(parent, errorMessage);
|
|
||||||
}
|
|
||||||
|
|
|
@ -99,14 +99,6 @@ class KInfoCenter : public KXmlGuiWindow
|
||||||
*/
|
*/
|
||||||
void aboutKcmSlot();
|
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:
|
private:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue