Browse Source

Clean up coding style

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
2a5dbe840c
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 9
      src/gui/transferlistmodel.cpp

9
src/gui/transferlistmodel.cpp

@ -216,7 +216,7 @@ int TransferListModel::columnCount(const QModelIndex &) const
return NB_COLUMNS; 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) 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 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_QUEUE_POSITION:
case TR_LAST_ACTIVITY: case TR_LAST_ACTIVITY:
case TR_AVAILABILITY: case TR_AVAILABILITY:
return QVariant {Qt::AlignRight | Qt::AlignVCenter}; return QVariant(Qt::AlignRight | Qt::AlignVCenter);
} }
break;
default:
break;
} }
return {}; return {};

Loading…
Cancel
Save