Browse Source

Use C++11 initializer list

adaptive-webui-19844
Chocobo1 9 years ago
parent
commit
829012ae3c
  1. 3
      src/gui/torrentcontentmodel.cpp

3
src/gui/torrentcontentmodel.cpp

@ -56,8 +56,7 @@ namespace
TorrentContentModel::TorrentContentModel(QObject *parent) TorrentContentModel::TorrentContentModel(QObject *parent)
: QAbstractItemModel(parent) : QAbstractItemModel(parent)
, m_rootItem(new TorrentContentModelFolder(QList<QVariant>() << tr("Name") << tr("Size") , m_rootItem(new TorrentContentModelFolder(QList<QVariant>({ tr("Name"), tr("Size"), tr("Progress"), tr("Download Priority") })))
<< tr("Progress") << tr("Download Priority")))
{ {
} }

Loading…
Cancel
Save