summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmerrordialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpovmodeler/pmerrordialog.cpp')
-rw-r--r--kpovmodeler/pmerrordialog.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/kpovmodeler/pmerrordialog.cpp b/kpovmodeler/pmerrordialog.cpp
index 0fdb6f5f..6ce6a45f 100644
--- a/kpovmodeler/pmerrordialog.cpp
+++ b/kpovmodeler/pmerrordialog.cpp
@@ -83,14 +83,16 @@ PMErrorDialog::PMErrorDialog( const PMMessageList& messages, int errorFlags,
else
text->setText( i18n( "There were errors:" ) );
- setButtonOKText( KStdGuiItem::ok().text(),
- i18n( "Proceed" ),
- i18n( "When clicking <b>Proceed</b>, the program\n"
+ KGuiItem ok = KStdGuiItem::ok();
+ ok.setToolTip( i18n( "Proceed" ) );
+ ok.setWhatsThis( i18n( "When clicking <b>Proceed</b>, the program\n"
"will try to proceed with the current action." ) );
- setButtonCancelText( KStdGuiItem::cancel().text(),
- i18n( "&Cancel" ),
- i18n( "When clicking <b>Cancel<b>, the program\n"
- "will cancel the current action." ) );
+ setButtonOK( ok );
+ KGuiItem cancel = KStdGuiItem::cancel();
+ ok.setToolTip( i18n( "&Cancel" ) );
+ ok.setWhatsThis( i18n( "When clicking <b>Cancel<b>, the program\n"
+ "will cancel the current action." ) );
+ setButtonCancel( cancel );
if( errorFlags & PMEFatal )
showButtonOK( false );