2021-06-19 05:29:48 +05:30
|
|
|
#include "ResourcePackFolderModel.h"
|
|
|
|
|
2022-06-04 19:00:34 +05:30
|
|
|
ResourcePackFolderModel::ResourcePackFolderModel(const QString &dir) : ModFolderModel(dir, false) {
|
2021-06-19 05:29:48 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
QVariant ResourcePackFolderModel::headerData(int section, Qt::Orientation orientation, int role) const {
|
|
|
|
if (role == Qt::ToolTipRole) {
|
|
|
|
switch (section) {
|
|
|
|
case ActiveColumn:
|
|
|
|
return tr("Is the resource pack enabled?");
|
|
|
|
case NameColumn:
|
|
|
|
return tr("The name of the resource pack.");
|
|
|
|
case VersionColumn:
|
|
|
|
return tr("The version of the resource pack.");
|
|
|
|
case DateColumn:
|
|
|
|
return tr("The date and time this resource pack was last changed (or added).");
|
|
|
|
default:
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return ModFolderModel::headerData(section, orientation, role);
|
|
|
|
}
|