diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2013-12-26 21:23:21 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2013-12-26 21:23:21 +0100 |
commit | c71808446b3e95e4fefb91b69c2cc51e4c4918cc (patch) | |
tree | d575cd3e65ebb9bd27d8aacd5ddf5cf78b007396 | |
parent | 525f508d94120feae89ee1d1bd960625ab14ed37 (diff) | |
download | MultiMC-c71808446b3e95e4fefb91b69c2cc51e4c4918cc.tar MultiMC-c71808446b3e95e4fefb91b69c2cc51e4c4918cc.tar.gz MultiMC-c71808446b3e95e4fefb91b69c2cc51e4c4918cc.tar.lz MultiMC-c71808446b3e95e4fefb91b69c2cc51e4c4918cc.tar.xz MultiMC-c71808446b3e95e4fefb91b69c2cc51e4c4918cc.zip |
Fix a bug
-rw-r--r-- | CategorizedView.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/CategorizedView.cpp b/CategorizedView.cpp index 95505fd7..4d9a4a62 100644 --- a/CategorizedView.cpp +++ b/CategorizedView.cpp @@ -690,10 +690,6 @@ void CategorizedView::startDrag(Qt::DropActions supportedActions) } } -bool lessThanQModelIndex(const QModelIndex &i1, const QModelIndex &i2) -{ - return i1.data() < i2.data(); -} QRect CategorizedView::visualRect(const QModelIndex &index) const { if (!index.isValid() || isIndexHidden(index) || index.column() > 0) @@ -705,7 +701,6 @@ QRect CategorizedView::visualRect(const QModelIndex &index) const { const Category *cat = category(index); QList<QModelIndex> indices = itemsForCategory(cat); - qSort(indices.begin(), indices.end(), &lessThanQModelIndex); int x = 0; int y = 0; const int perRow = itemsPerRow(); |