diff options
Diffstat (limited to 'kpovmodeler')
-rw-r--r-- | kpovmodeler/pmerrordialog.cpp | 16 | ||||
-rw-r--r-- | kpovmodeler/pmpovraywidget.cpp | 2 |
2 files changed, 10 insertions, 8 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 ); diff --git a/kpovmodeler/pmpovraywidget.cpp b/kpovmodeler/pmpovraywidget.cpp index ac1162c2..91dcf119 100644 --- a/kpovmodeler/pmpovraywidget.cpp +++ b/kpovmodeler/pmpovraywidget.cpp @@ -294,7 +294,7 @@ void PMPovrayWidget::slotSave( ) if( tempFile ) { tempFile->close( ); - ok = TDEIO::NetAccess::upload( tempFile->name( ), url ); + ok = TDEIO::NetAccess::upload( tempFile->name( ), url, (TQWidget*)nullptr ); tempFile->unlink( ); file = 0; } |