mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-27 15:04:36 +00:00
Clean up coding style
This commit is contained in:
parent
86b6bcc1d9
commit
2a5dbe840c
@ -216,7 +216,7 @@ int TransferListModel::columnCount(const QModelIndex &) const
|
||||
return NB_COLUMNS;
|
||||
}
|
||||
|
||||
QVariant TransferListModel::headerData(int section, Qt::Orientation orientation, int role) const
|
||||
QVariant TransferListModel::headerData(const int section, const Qt::Orientation orientation, const int role) const
|
||||
{
|
||||
if (orientation == Qt::Horizontal)
|
||||
{
|
||||
@ -289,7 +289,7 @@ QVariant TransferListModel::headerData(int section, Qt::Orientation orientation,
|
||||
}
|
||||
}
|
||||
|
||||
return {};
|
||||
return QAbstractListModel::headerData(section, orientation, role);
|
||||
}
|
||||
|
||||
QString TransferListModel::displayValue(const BitTorrent::Torrent *torrent, const int column) const
|
||||
@ -591,8 +591,11 @@ QVariant TransferListModel::data(const QModelIndex &index, const int role) const
|
||||
case TR_QUEUE_POSITION:
|
||||
case TR_LAST_ACTIVITY:
|
||||
case TR_AVAILABILITY:
|
||||
return QVariant {Qt::AlignRight | Qt::AlignVCenter};
|
||||
return QVariant(Qt::AlignRight | Qt::AlignVCenter);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user