Removed vertical headers from plugin view

actorid
graffy76 12 years ago
parent 49c4e1bf9e
commit b850fe0289

@ -32,12 +32,14 @@ DataFilesPage::DataFilesPage(Files::ConfigurationManager &cfg, GameSettings &gam
mDataFilesModel = new DataFilesModel(this);
mMastersProxyModel = new QSortFilterProxyModel();
mMastersProxyModel->setFilterRegExp(QString("^.*\\.esm"));
mMastersProxyModel->setFilterRegExp(QString("game")); //QString("^.*\\.esm"));
mMastersProxyModel->setFilterRole (Qt::UserRole);
mMastersProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
mMastersProxyModel->setSourceModel(mDataFilesModel);
mPluginsProxyModel = new PluginsProxyModel();
mPluginsProxyModel->setFilterRegExp(QString("^.*\\.esp"));
mPluginsProxyModel->setFilterRegExp(QString("addon")); //^.*\\.esp"));
mPluginsProxyModel->setFilterRole (Qt::UserRole);
mPluginsProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
mPluginsProxyModel->setSourceModel(mDataFilesModel);

@ -202,11 +202,11 @@ QVariant DataFilesModel::headerData(int section, Qt::Orientation orientation, in
case 7: return tr("Masters");
case 8: return tr("Description");
}
} else {
} /* else {
// Show row numbers
return ++section;
}
*/
return QVariant();
}

@ -11,7 +11,7 @@ PluginsProxyModel::~PluginsProxyModel()
QVariant PluginsProxyModel::headerData(int section, Qt::Orientation orientation, int role) const
{
if (orientation != Qt::Vertical || role != Qt::DisplayRole)
//if (orientation != Qt::Vertical || role != Qt::DisplayRole)
return QSortFilterProxyModel::headerData(section, orientation, role);
return section + 1;
// return section + 1;
}

Loading…
Cancel
Save