mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 19:06:58 +03:00
chore(clang-tidy): modernize the code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
18f04b1e29
commit
9c88eb9bc0
36 changed files with 713 additions and 632 deletions
|
|
@ -50,11 +50,11 @@ ResourcePackFolderModel::ResourcePackFolderModel(const QDir& dir, BaseInstance*
|
|||
m_columnNamesTranslated = QStringList({ tr("Enable"), tr("Image"), tr("Name"), tr("Pack Format"), tr("Last Modified"), tr("Provider"),
|
||||
tr("Size"), tr("File Name"), tr("Update") });
|
||||
m_columnSortKeys = { SortType::Enabled, SortType::Name, SortType::Name, SortType::PackFormat, SortType::Date,
|
||||
SortType::Provider, SortType::Size, SortType::Filename, SortType::LOCK_UPDATE };
|
||||
SortType::Provider, SortType::Size, SortType::Filename, SortType::LockUpdate };
|
||||
m_columnResizeModes = { QHeaderView::Interactive, QHeaderView::Interactive, QHeaderView::Stretch,
|
||||
QHeaderView::Interactive, QHeaderView::Interactive, QHeaderView::Interactive,
|
||||
QHeaderView::Interactive, QHeaderView::Interactive, QHeaderView::Interactive };
|
||||
m_columnsHideable = { false, true, false, true, true, true, true, true };
|
||||
m_columnsHideable = { false, true, false, true, true, true, true, true, true };
|
||||
}
|
||||
|
||||
QVariant ResourcePackFolderModel::data(const QModelIndex& index, int role) const
|
||||
|
|
@ -98,6 +98,7 @@ QVariant ResourcePackFolderModel::data(const QModelIndex& index, int role) const
|
|||
if (column == ActiveColumn) {
|
||||
return at(row).enabled() ? Qt::Checked : Qt::Unchecked;
|
||||
}
|
||||
[[fallthrough]];
|
||||
case Qt::UserRole:
|
||||
if (column == LockUpdateCoumn) {
|
||||
return at(row).lockUpdate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue