diff options
author | OBATA Akio <[email protected]> | 2022-01-26 18:06:18 +0900 |
---|---|---|
committer | OBATA Akio <[email protected]> | 2022-01-27 17:07:38 +0900 |
commit | 5e8185513d4712ebbb649bbbfcd2d4ed75ffff66 (patch) | |
tree | b180201fa0e8cb0175b1ae105d74c0e300b28498 /kpovmodeler/pmerrordialog.cpp | |
parent | 052f82743e6a018edaeede3b81955b2121fa6312 (diff) | |
download | tdegraphics-feat/supersedes-deprecated.tar.gz tdegraphics-feat/supersedes-deprecated.zip |
Supersedes deprecated function callsfeat/supersedes-deprecated
Signed-off-by: OBATA Akio <[email protected]>
Diffstat (limited to 'kpovmodeler/pmerrordialog.cpp')
-rw-r--r-- | kpovmodeler/pmerrordialog.cpp | 16 |
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 ); |