summaryrefslogtreecommitdiff
path: root/src/icondelegate.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-07-21 19:14:24 +0200
committerTannin <devnull@localhost>2014-07-21 19:14:24 +0200
commit9879aae5757e0c2ca930b38c6b7a4aeb4715d2d9 (patch)
tree43ccc85bf5998c4e37abc7cdb627b49276cc441b /src/icondelegate.cpp
parentcc9827cdda5776a4fd540a2ab0fb8a08ec9f75a7 (diff)
- download-list will no longer show a file as having incomplete data if there is no file version
- added a new mod column with icons displaying the content of the mod - MO now differentiates between mods using an internal name that disambiguates between foreign and regular mods
Diffstat (limited to 'src/icondelegate.cpp')
-rw-r--r--src/icondelegate.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/icondelegate.cpp b/src/icondelegate.cpp
index f7cf6977..8c2fe5cc 100644
--- a/src/icondelegate.cpp
+++ b/src/icondelegate.cpp
@@ -51,20 +51,3 @@ void IconDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
painter->restore();
}
-
-QSize IconDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &modelIndex) const
-{
- int count = getNumIcons(modelIndex);
- unsigned int index = modelIndex.data(Qt::UserRole + 1).toInt();
- QSize result;
- if (index < ModInfo::getNumMods()) {
- result = QSize(count * 40, 20);
- } else {
- result = QSize(1, 20);
- }
- if (option.rect.width() > 0) {
- result.setWidth(std::min(option.rect.width(), result.width()));
- }
- return result;
-}
-