Commit 27ac2337 authored by Laurent Montel's avatar Laurent Montel
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent a8f810d6
Pipeline #210551 passed with stage
in 4 minutes and 11 seconds
......@@ -155,7 +155,7 @@ int K3b::PluginManager::execPluginDialog( Plugin* plugin, QWidget* parent )
return ret;
}
else {
KMessageBox::sorry( parent, i18n("No settings available for plugin %1.", plugin->pluginMetaData().name() ) );
KMessageBox::error( parent, i18n("No settings available for plugin %1.", plugin->pluginMetaData().name() ) );
return 0;
}
}
......
......@@ -214,7 +214,7 @@ void K3bAudioMetainfoRenamerPluginWidget::slotScanClicked()
rootItem->setExpanded(true);
if( d->renamableItems.isEmpty() )
KMessageBox::sorry( this, i18n("No renameable files found.") );
KMessageBox::error( this, i18n("No renameable files found.") );
}
}
......@@ -262,7 +262,7 @@ void K3bAudioMetainfoRenamerPluginWidget::scanDir( K3b::DirItem* dir, QTreeWidge
void K3bAudioMetainfoRenamerPluginWidget::activate()
{
if( d->renamableItems.isEmpty() ) {
KMessageBox::sorry( this, i18n("Please click the Scan button to search for renameable files.") );
KMessageBox::error( this, i18n("Please click the Scan button to search for renameable files.") );
}
else {
for( QList< QPair<K3b::FileItem*, QTreeWidgetItem*> >::iterator it = d->renamableItems.begin();
......
......@@ -61,7 +61,7 @@ void K3bAudioProjectCddbPlugin::activate( K3b::Doc* doc, QWidget* parent )
m_canceled = false;
if( !m_doc || m_doc->numOfTracks() == 0 ) {
KMessageBox::sorry( parent, i18n("Please select a non-empty audio project for a CDDB query.") );
KMessageBox::error( parent, i18n("Please select a non-empty audio project for a CDDB query.") );
}
else {
if( !m_progress ) {
......
......@@ -1263,7 +1263,7 @@ void K3b::MainWindow::slotErrorMessage(const QString& message)
void K3b::MainWindow::slotWarningMessage(const QString& message)
{
KMessageBox::sorry( this, message );
KMessageBox::error( this, message );
}
......
......@@ -190,7 +190,7 @@ void K3b::DirView::showMediumInfo( const K3b::Medium& medium )
d->videoView->reload( medium );
}
else {
KMessageBox::sorry( this, i18n("K3b uses vcdxrip from the vcdimager package to rip Video CDs. "
KMessageBox::error( this, i18n("K3b uses vcdxrip from the vcdimager package to rip Video CDs. "
"Please make sure it is installed.") );
k3bappcore->appDeviceManager()->mountDisk( medium.device() );
}
......
......@@ -1100,7 +1100,7 @@ void K3b::ImageWritingDialog::slotContextMenuRequested( const QPoint& pos )
KMessageBox::information( this, i18n("The MD5 Sum of %1 equals that specified.",d->imagePath()),
i18n("MD5 Sums Equal") );
else
KMessageBox::sorry( this, i18n("The MD5 Sum of %1 differs from that specified.",d->imagePath()),
KMessageBox::error( this, i18n("The MD5 Sum of %1 differs from that specified.",d->imagePath()),
i18n("MD5 Sums Differ") );
}
}
......
......@@ -362,7 +362,7 @@ void K3b::MediaCopyDialog::slotStartClicked()
}
else {
// do not translate this as it is not intended to be included in the stable version!
KMessageBox::sorry( this, "Ups", "No copy support for this source media type yet." );
KMessageBox::error( this, "Ups", "No copy support for this source media type yet." );
return;
}
......
......@@ -140,7 +140,7 @@ void K3b::ThemeOptionTab::slotInstallTheme()
else
sorryText = i18n("Unable to download the icon theme archive.\n"
"Please check that address %1 is correct.",tmpArg);
KMessageBox::sorry( this, sorryText );
KMessageBox::error( this, sorryText );
return;
}
......
......@@ -280,7 +280,7 @@ void K3b::AudioBurnDialog::slotNormalizeToggled( bool on )
if( on ) {
// we are not able to normalize in on-the-fly mode
if( !k3bcore->externalBinManager()->foundBin( "normalize" ) ) {
KMessageBox::sorry( this, i18n("<p><b>External program <em>normalize</em> is not installed.</b>"
KMessageBox::error( this, i18n("<p><b>External program <em>normalize</em> is not installed.</b>"
"<p>K3b uses <em>normalize</em> (http://normalize.nongnu.org/) "
"to normalize audio tracks. In order to "
"use this functionality, please install it first.") );
......
......@@ -351,7 +351,7 @@ void K3b::AudioViewImpl::slotQueryMusicBrainz()
}
if( tracks.isEmpty() ) {
KMessageBox::sorry( m_view, i18n("Please add an audio track.") );
KMessageBox::error( m_view, i18n("Please add an audio track.") );
return;
}
......@@ -375,7 +375,7 @@ void K3b::AudioViewImpl::slotQueryMusicBrainzTrack()
tracksForIndexes( tracks, indexes );
if( tracks.isEmpty() ) {
KMessageBox::sorry( m_view, i18n("Please select an audio track.") );
KMessageBox::error( m_view, i18n("Please select an audio track.") );
return;
}
......
......@@ -87,7 +87,7 @@ void K3b::DataMultisessionImportDialog::slotOk()
K3b::Iso9660 iso( dev );
if( iso.open() ) {
if( iso.firstRRDirEntry() == 0 && iso.jolietLevel() > 0 )
KMessageBox::sorry( this,
KMessageBox::error( this,
i18n("<p>K3b found session containing Joliet information for long filenames "
"but no Rock Ridge extensions."
"<p>The filenames in the imported session will be converted to a restricted "
......
......@@ -275,7 +275,7 @@ void K3b::MixedBurnDialog::slotNormalizeToggled( bool on )
if( on ) {
// we are not able to normalize in on-the-fly mode
if( !k3bcore->externalBinManager()->foundBin( "normalize" ) ) {
KMessageBox::sorry( this, i18n("<p><b>External program <em>normalize</em> is not installed.</b>"
KMessageBox::error( this, i18n("<p><b>External program <em>normalize</em> is not installed.</b>"
"<p>K3b uses <em>normalize</em> (http://normalize.nongnu.org/) "
"to normalize audio tracks. In order to "
"use this functionality, please install it first.") );
......
......@@ -194,7 +194,7 @@ KoStore* KoStore::createStore( QWidget* window, const QUrl& url, Mode mode, cons
#endif
default:
qCWarning(KOSTORE) << "Unsupported backend requested for KoStore (QUrl) : " << backend;
KMessageBox::sorry( window,
KMessageBox::error( window,
i18n("The directory mode is not supported for remote locations."),
i18n("KOffice Storage"));
return 0L;
......
......@@ -166,7 +166,7 @@ void K3b::AudioProjectConvertingDialog::slotStartClicked()
}
if( !differ ) {
KMessageBox::sorry( this, i18n("Please check the naming pattern. All filenames need to be unique.") );
KMessageBox::error( this, i18n("Please check the naming pattern. All filenames need to be unique.") );
return;
}
}
......
......@@ -235,7 +235,7 @@ void K3b::AudioRippingDialog::slotStartClicked()
}
if( !differ ) {
KMessageBox::sorry( this, i18n("Please check the naming pattern. All filenames need to be unique.") );
KMessageBox::error( this, i18n("Please check the naming pattern. All filenames need to be unique.") );
return;
}
}
......
......@@ -489,7 +489,7 @@ void K3b::VideoDVDRippingDialog::slotStartClicked()
for( TitleRipInfos::iterator it = d->titleRipInfos.begin(); it != d->titleRipInfos.end(); ++it ) {
if( d->dvd[it.value().title-1].numAudioStreams() > 0 &&
d->dvd[it.value().title-1].audioStream(it.value().audioStream).format() != K3b::VideoDVD::AUDIO_FORMAT_AC3 ) {
KMessageBox::sorry( this, i18n("<p>When using the <em>AC3 pass-through</em> audio codec all selected audio "
KMessageBox::error( this, i18n("<p>When using the <em>AC3 pass-through</em> audio codec all selected audio "
"streams need to be in AC3 format. Please select another audio codec or "
"choose AC3 audio streams for all ripped titles."),
i18n("AC3 Pass-through") );
......
......@@ -273,7 +273,7 @@ void K3b::VideoDVDRippingView::reloadMedium()
bool transcodeUsable = true;
if( !k3bcore ->externalBinManager() ->foundBin( "transcode" ) ) {
KMessageBox::sorry( this,
KMessageBox::error( this,
i18n("K3b uses transcode to rip Video DVDs. "
"Please make sure it is installed.") );
transcodeUsable = false;
......@@ -287,7 +287,7 @@ void K3b::VideoDVDRippingView::reloadMedium()
if( K3b::VideoDVDTitleTranscodingJob::transcodeBinaryHasSupportFor( (K3b::VideoDVDTitleTranscodingJob::AudioCodec)i ) )
++ac;
if( !ac || !vc ) {
KMessageBox::sorry( this,
KMessageBox::error( this,
i18n("<p>K3b uses transcode to rip Video DVDs. "
"Your installation of transcode lacks support for any of the "
"codecs supported by K3b."
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment