summaryrefslogtreecommitdiffstats
path: root/gui/groupview
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-02-09 21:14:34 +0100
committerPetr Mrázek <peterix@gmail.com>2014-02-09 21:14:34 +0100
commit1f218bb8cdf325ad81a68d93cd2b86a05f3c6820 (patch)
tree96d6e7a53cbd28b025ff48c21c01f4094b9eb978 /gui/groupview
parentba401922e1577d629e8b01bffa73f5e721b17b59 (diff)
downloadMultiMC-1f218bb8cdf325ad81a68d93cd2b86a05f3c6820.tar
MultiMC-1f218bb8cdf325ad81a68d93cd2b86a05f3c6820.tar.gz
MultiMC-1f218bb8cdf325ad81a68d93cd2b86a05f3c6820.tar.lz
MultiMC-1f218bb8cdf325ad81a68d93cd2b86a05f3c6820.tar.xz
MultiMC-1f218bb8cdf325ad81a68d93cd2b86a05f3c6820.zip
Fix template magic in group view.
Diffstat (limited to 'gui/groupview')
-rw-r--r--gui/groupview/GroupView.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/groupview/GroupView.cpp b/gui/groupview/GroupView.cpp
index 3f7dd6e0..73aa52ad 100644
--- a/gui/groupview/GroupView.cpp
+++ b/gui/groupview/GroupView.cpp
@@ -798,7 +798,7 @@ QPair<Group *, int> GroupView::rowDropPos(const QPoint &pos)
{
if (pos.y() > y && pos.y() < (y + cat->headerHeight()))
{
- return qMakePair(nullptr, -1);
+ return qMakePair<Group*, int>(nullptr, -1);
}
y += cat->totalHeight() + m_categoryMargin;
if (pos.y() < y)
@@ -809,7 +809,7 @@ QPair<Group *, int> GroupView::rowDropPos(const QPoint &pos)
}
if (category == 0)
{
- return qMakePair(nullptr, -1);
+ return qMakePair<Group*, int>(nullptr, -1);
}
}
@@ -836,7 +836,7 @@ QPair<Group *, int> GroupView::rowDropPos(const QPoint &pos)
}
if (internalColumn == -1)
{
- return qMakePair(nullptr, -1);
+ return qMakePair<Group*, int>(nullptr, -1);
}
}
@@ -856,13 +856,13 @@ QPair<Group *, int> GroupView::rowDropPos(const QPoint &pos)
}
if (internalRow == -1)
{
- return qMakePair(nullptr, -1);
+ return qMakePair<Group*, int>(nullptr, -1);
}
// this happens if we're in the margin between a one category and another
// categories header
if (internalRow > (indices.size() / itemsPerRow()))
{
- return qMakePair(nullptr, -1);
+ return qMakePair<Group*, int>(nullptr, -1);
}
}