┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistviewlayouter.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-02-23 17:26:51 +0100
committerPeter Penz <[email protected]>2012-02-23 17:28:03 +0100
commit21a5a890b3010e591e139724d5c6f555df4481f9 (patch)
treefb48c65173c9163cdf81c2bc8bc064af3ac0eff3 /src/kitemviews/kitemlistviewlayouter.cpp
parenta6627b9f2345eac9cc650aa9f87f9c69db8c707f (diff)
Whitespace cleanups and documentation fixes
Diffstat (limited to 'src/kitemviews/kitemlistviewlayouter.cpp')
-rw-r--r--src/kitemviews/kitemlistviewlayouter.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kitemviews/kitemlistviewlayouter.cpp b/src/kitemviews/kitemlistviewlayouter.cpp
index d8b5796ec..405837d23 100644
--- a/src/kitemviews/kitemlistviewlayouter.cpp
+++ b/src/kitemviews/kitemlistviewlayouter.cpp
@@ -265,7 +265,7 @@ QRectF KItemListViewLayouter::groupHeaderRect(int index) const
} else {
pos.rx() -= m_itemMargin.width();
pos.ry() = 0;
-
+
// Determine the maximum width used in the
// current column. As the scroll-direction is
// Qt::Horizontal and m_itemRects is accessed directly,
@@ -278,14 +278,14 @@ QRectF KItemListViewLayouter::groupHeaderRect(int index) const
if (bounds.y() != y) {
break;
}
-
+
if (bounds.height() > width) {
width = bounds.height();
}
-
- ++index;
+
+ ++index;
}
-
+
size = QSizeF(width, m_size.height());
}
return QRectF(pos, size);
@@ -300,7 +300,7 @@ int KItemListViewLayouter::itemColumn(int index) const
return (m_scrollOrientation == Qt::Vertical)
? m_itemInfos[index].column
- : m_itemInfos[index].row;
+ : m_itemInfos[index].row;
}
int KItemListViewLayouter::itemRow(int index) const
@@ -312,7 +312,7 @@ int KItemListViewLayouter::itemRow(int index) const
return (m_scrollOrientation == Qt::Vertical)
? m_itemInfos[index].row
- : m_itemInfos[index].column;
+ : m_itemInfos[index].column;
}
int KItemListViewLayouter::maximumVisibleItems() const
@@ -360,7 +360,7 @@ void KItemListViewLayouter::doLayout()
QSizeF itemSize = m_itemSize;
QSizeF itemMargin = m_itemMargin;
QSizeF size = m_size;
-
+
const bool grouped = createGroupHeaders();
const bool horizontalScrolling = (m_scrollOrientation == Qt::Horizontal);
@@ -373,7 +373,7 @@ void KItemListViewLayouter::doLayout()
itemMargin.setHeight(m_itemMargin.width());
size.setWidth(m_size.height());
size.setHeight(m_size.width());
-
+
if (grouped) {
// In the horizontal scrolling case all groups are aligned
// at the top, which decreases the available height. For the
@@ -501,7 +501,7 @@ void KItemListViewLayouter::doLayout()
m_itemInfos.erase(m_itemInfos.begin() + itemCount,
m_itemInfos.end());
}
-
+
if (itemCount > 0) {
// Calculate the maximum y-range of the last row for m_maximumScrollOffset
m_maximumScrollOffset = m_itemInfos.last().rect.bottom();