Commit 96e8537d authored by Stephan Binner's avatar Stephan Binner

replaced Yes/No dialog buttons

svn path=/trunk/KDE/kdemultimedia/juk/; revision=437894
parent 5d6044e1
......@@ -183,11 +183,11 @@ void CollectionList::slotDeleteItem(KFileItem *item)
void CollectionList::clear()
{
int result = KMessageBox::warningYesNo(this,
int result = KMessageBox::warningContinueCancel(this,
i18n("Removing an item from the collection will also remove it from "
"all of your playlists. Are you sure you want to continue?\n\n"
"Note, however, that if the directory that these files are in is in "
"your \"scan on startup\" list, they will be readded on startup."));
"your \"scan on startup\" list, they will be readded on startup."),QString::null, KStdGuiItem::del());
if(result == KMessageBox::Yes) {
Playlist::clear();
emit signalCollectionChanged();
......
......@@ -2207,13 +2207,12 @@ void Playlist::slotInlineEditDone(QListViewItem *, const QString &, int column)
changed = true;
if(!changed ||
(l.count() > 1 && KMessageBox::warningYesNo(
(l.count() > 1 && KMessageBox::warningContinueCancel(
0,
i18n("This will edit multiple files. Are you sure?"),
QString::null,
KStdGuiItem::yes(),
KStdGuiItem::no(),
"DontWarnMultipleTags") == KMessageBox::No))
i18n("Edit"),
"DontWarnMultipleTags") == KMessageBox::Cancel))
{
return;
}
......
......@@ -285,7 +285,7 @@ void PlaylistBox::remove()
if(!files.isEmpty()) {
int remove = KMessageBox::warningYesNoCancelList(
this, i18n("Do you want to delete these files from the disk as well?"), files);
this, i18n("Do you want to delete these files from the disk as well?"), files, QString::null, KStdGuiItem::del(), i18n("Keep"));
if(remove == KMessageBox::Yes) {
QStringList couldNotDelete;
......
......@@ -703,8 +703,8 @@ void TagEditor::saveChangesPrompt()
i18n("Do you want to save your changes to:\n"),
files,
i18n("Save Changes"),
KStdGuiItem::yes(),
KStdGuiItem::no(),
KStdGuiItem::save(),
KStdGuiItem::discard(),
"tagEditor_showSaveChangesBox") == KMessageBox::Yes)
{
save(m_items);
......
......@@ -134,10 +134,10 @@ bool TagTransactionManager::renameFile(const QFileInfo &from, const QFileInfo &t
return false;
if(!to.exists() ||
KMessageBox::warningYesNo(
KMessageBox::warningContinueCancel(
static_cast<QWidget *>(parent()),
i18n("This file already exists.\nDo you want to replace it?"),
i18n("File Exists")) == KMessageBox::Yes)
i18n("File Exists"),i18n("Replace")) == KMessageBox::Continue)
{
kdDebug(65432) << "Renaming " << from.absFilePath() << " to " << to.absFilePath() << endl;
QDir currentDir;
......
Markdown is supported
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