Use bold text to highlight items, not italic

This commit is contained in:
craig
2011-12-14 19:42:54 +00:00
committed by craig
parent c882a7cf39
commit f0939e5237
3 changed files with 19 additions and 19 deletions

2
TODO
View File

@@ -7,7 +7,7 @@
* Streams - remove beginResetModel() usagfe - need to be using beingInsert, etc.
* USE BOLD TEXT, NOT ITALIC in message boxes
----
* Add next/prev provider buttons to lyrics page - so that can try others.

View File

@@ -179,9 +179,9 @@ void StreamsPage::importXml()
if (!model.import(fileName)) {
#ifdef ENABLE_KDE_SUPPORT
KMessageBox::error(this, i18n("Failed to import <i>%1</i>!<br/>Please check this is of the correct type.", fileName));
KMessageBox::error(this, i18n("Failed to import <b>%1</b>!<br/>Please check this is of the correct type.", fileName));
#else
QMessageBox::critical(this, tr("Error"), tr("Failed to import <i>%1</i>!<br/>Please check this is of the correct type.").arg(fileName));
QMessageBox::critical(this, tr("Error"), tr("Failed to import <b>%1</b>!<br/>Please check this is of the correct type.").arg(fileName));
#endif
}
}
@@ -200,9 +200,9 @@ void StreamsPage::exportXml()
if (!model.save(fileName)) {
#ifdef ENABLE_KDE_SUPPORT
KMessageBox::error(this, i18n("Failed to create <i>%1</i>!", fileName));
KMessageBox::error(this, i18n("Failed to create <b>%1</b>!", fileName));
#else
QMessageBox::critical(this, tr("Error"), tr("Failed to create <i>%1</i>!").arg(fileName));
QMessageBox::critical(this, tr("Error"), tr("Failed to create <b>%1</b>!").arg(fileName));
#endif
}
}
@@ -218,18 +218,18 @@ void StreamsPage::add()
QString existing=model.name(url);
if (!existing.isEmpty()) {
#ifdef ENABLE_KDE_SUPPORT
KMessageBox::error(this, i18n("Stream already exists!<br/><i>%1</i>", existing));
KMessageBox::error(this, i18n("Stream already exists!<br/><b>%1</b>", existing));
#else
QMessageBox::critical(this, tr("Error"), tr("Stream already exists!<br/><i>%1</i>").arg(existing));
QMessageBox::critical(this, tr("Error"), tr("Stream already exists!<br/><b>%1</b>").arg(existing));
#endif
return;
}
if (!model.add(name, url, dlg.favorite())) {
#ifdef ENABLE_KDE_SUPPORT
KMessageBox::error(this, i18n("A stream named <i>%1</i> already exists!", name));
KMessageBox::error(this, i18n("A stream named <b>%1</b> already exists!", name));
#else
QMessageBox::critical(this, tr("Error"), tr("A stream named <i>%1</i> already exists!").arg(name));
QMessageBox::critical(this, tr("Error"), tr("A stream named <b>%1</b> already exists!").arg(name));
#endif
}
}
@@ -250,14 +250,14 @@ void StreamsPage::remove()
QString firstName=model.data(firstIndex, Qt::DisplayRole).toString();
#ifdef ENABLE_KDE_SUPPORT
if (KMessageBox::No==KMessageBox::warningYesNo(this, selected.size()>1 ? i18n("Are you sure you wish to remove the %1 selected streams?").arg(selected.size())
: i18n("Are you sure you wish to remove <i>%1</i>?").arg(firstName),
: i18n("Are you sure you wish to remove <b>%1</b>?").arg(firstName),
selected.size()>1 ? i18n("Remove Streams?") : i18n("Remove Stream?"))) {
return;
}
#else
if (QMessageBox::No==QMessageBox::warning(this, selected.size()>1 ? tr("Remove Streams?") : tr("Remove Stream?"),
selected.size()>1 ? tr("Are you sure you wish to remove the %1 selected streams?").arg(selected.size())
: tr("Are you sure you wish to remove <i>%1</i>?").arg(firstName),
: tr("Are you sure you wish to remove <b>%1</b>?").arg(firstName),
QMessageBox::Yes|QMessageBox::No, QMessageBox::No)) {
return;
}
@@ -296,15 +296,15 @@ void StreamsPage::edit()
//
if (!existingNameForUrl.isEmpty()) {
#ifdef ENABLE_KDE_SUPPORT
KMessageBox::error(this, i18n("Stream already exists!<br/><i>%1</i>", existingNameForUrl));
KMessageBox::error(this, i18n("Stream already exists!<br/><b>%1</b>", existingNameForUrl));
#else
QMessageBox::critical(this, tr("Error"), tr("Stream already exists!<br/><i>%1</i>").arg(existingNameForUrl));
QMessageBox::critical(this, tr("Error"), tr("Stream already exists!<br/><b>%1</b>").arg(existingNameForUrl));
#endif
} else if (newName!=name && model.entryExists(newName)) {
#ifdef ENABLE_KDE_SUPPORT
KMessageBox::error(this, i18n("A stream named <i>%1</i> already exists!", newName));
KMessageBox::error(this, i18n("A stream named <b>%1</b> already exists!", newName));
#else
QMessageBox::critical(this, tr("Error"), tr("A stream named <i>%1</i> already exists!").arg(newName));
QMessageBox::critical(this, tr("Error"), tr("A stream named <b>%1</b> already exists!").arg(newName));
#endif
} else {
model.edit(index, newName, newUrl, dlg.favorite());

View File

@@ -766,9 +766,9 @@ void MPDConnection::renamePlaylist(const QString oldName, const QString newName)
if (!sendCommand(data).ok && ui) {
#ifdef ENABLE_KDE_SUPPORT
QString message=i18n("Sorry, failed to rename <i>%1</i> to <i>%2</i>").arg(oldName).arg(newName);
QString message=i18n("Sorry, failed to rename <b>%1</b> to <b>%2</b>").arg(oldName).arg(newName);
#else
QString message=tr("Sorry, failed to rename <i>%1</i> to <i>%2</i>").arg(oldName).arg(newName);
QString message=tr("Sorry, failed to rename <b>%1</b> to <b>%2</b>").arg(oldName).arg(newName);
#endif
QMetaObject::invokeMethod(ui, "showError", Qt::QueuedConnection, Q_ARG(QString, message));
}
@@ -791,9 +791,9 @@ void MPDConnection::savePlaylist(QString name)
if (!sendCommand(data).ok && ui) {
#ifdef ENABLE_KDE_SUPPORT
QString message=i18n("Sorry, failed to save <i>%1</i>").arg(name);
QString message=i18n("Sorry, failed to save <b>%1</b>").arg(name);
#else
QString message=tr("Sorry, failed to save <i>%1</i>").arg(name);
QString message=tr("Sorry, failed to save <b>%1</b>").arg(name);
#endif
QMetaObject::invokeMethod(ui, "showError", Qt::QueuedConnection, Q_ARG(QString, message));
}