Add missing names for parameter variables
This commit is contained in:
@@ -170,7 +170,9 @@ PlaylistDelegateBase::PlaylistDelegateBase(QObject *parent, const QString &suffi
|
||||
{
|
||||
}
|
||||
|
||||
QString PlaylistDelegateBase::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString PlaylistDelegateBase::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
|
||||
Q_UNUSED(locale)
|
||||
|
||||
QString text;
|
||||
|
||||
@@ -297,7 +299,9 @@ bool PlaylistDelegateBase::helpEvent(QHelpEvent *event, QAbstractItemView *view,
|
||||
}
|
||||
|
||||
|
||||
QString LengthItemDelegate::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString LengthItemDelegate::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
|
||||
Q_UNUSED(locale)
|
||||
|
||||
bool ok = false;
|
||||
qint64 nanoseconds = value.toLongLong(&ok);
|
||||
@@ -308,7 +312,9 @@ QString LengthItemDelegate::displayText(const QVariant &value, const QLocale&) c
|
||||
}
|
||||
|
||||
|
||||
QString SizeItemDelegate::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString SizeItemDelegate::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
|
||||
Q_UNUSED(locale)
|
||||
|
||||
bool ok = false;
|
||||
qint64 bytes = value.toLongLong(&ok);
|
||||
@@ -425,7 +431,10 @@ void TagCompleter::ModelReady() {
|
||||
|
||||
}
|
||||
|
||||
QWidget *TagCompletionItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem&, const QModelIndex&) const {
|
||||
QWidget *TagCompletionItemDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &idx) const {
|
||||
|
||||
Q_UNUSED(option)
|
||||
Q_UNUSED(idx)
|
||||
|
||||
QLineEdit *editor = new QLineEdit(parent);
|
||||
new TagCompleter(backend_, column_, editor);
|
||||
@@ -434,7 +443,9 @@ QWidget *TagCompletionItemDelegate::createEditor(QWidget *parent, const QStyleOp
|
||||
|
||||
}
|
||||
|
||||
QString NativeSeparatorsDelegate::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString NativeSeparatorsDelegate::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
|
||||
Q_UNUSED(locale)
|
||||
|
||||
const QString string_value = value.toString();
|
||||
|
||||
@@ -458,8 +469,9 @@ QString NativeSeparatorsDelegate::displayText(const QVariant &value, const QLoca
|
||||
|
||||
SongSourceDelegate::SongSourceDelegate(QObject *parent) : PlaylistDelegateBase(parent) {}
|
||||
|
||||
QString SongSourceDelegate::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString SongSourceDelegate::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
Q_UNUSED(value);
|
||||
Q_UNUSED(locale)
|
||||
return QString();
|
||||
}
|
||||
|
||||
@@ -522,7 +534,9 @@ QSize RatingItemDelegate::sizeHint(const QStyleOptionViewItem &option, const QMo
|
||||
|
||||
}
|
||||
|
||||
QString RatingItemDelegate::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString RatingItemDelegate::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
|
||||
Q_UNUSED(locale)
|
||||
|
||||
if (value.isNull() || value.toFloat() <= 0) return QString();
|
||||
|
||||
@@ -533,7 +547,9 @@ QString RatingItemDelegate::displayText(const QVariant &value, const QLocale&) c
|
||||
|
||||
}
|
||||
|
||||
QString Ebur128LoudnessLUFSItemDelegate::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString Ebur128LoudnessLUFSItemDelegate::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
|
||||
Q_UNUSED(locale)
|
||||
|
||||
bool ok = false;
|
||||
double v = value.toDouble(&ok);
|
||||
@@ -543,7 +559,9 @@ QString Ebur128LoudnessLUFSItemDelegate::displayText(const QVariant &value, cons
|
||||
|
||||
}
|
||||
|
||||
QString Ebur128LoudnessRangeLUItemDelegate::displayText(const QVariant &value, const QLocale&) const {
|
||||
QString Ebur128LoudnessRangeLUItemDelegate::displayText(const QVariant &value, const QLocale &locale) const {
|
||||
|
||||
Q_UNUSED(locale)
|
||||
|
||||
bool ok = false;
|
||||
double v = value.toDouble(&ok);
|
||||
|
||||
Reference in New Issue
Block a user