mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
gwenview: use loop-local variables, also correct indentation
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
33e83b2f47
commit
b29ff8b23b
1 changed files with 3 additions and 5 deletions
|
@ -111,9 +111,8 @@ QSize FlowLayout::sizeHint() const
|
|||
QSize FlowLayout::minimumSize() const
|
||||
{
|
||||
QSize size;
|
||||
QLayoutItem *item;
|
||||
foreach(item, itemList)
|
||||
size = size.expandedTo(item->minimumSize());
|
||||
foreach(QLayoutItem *item, itemList)
|
||||
size = size.expandedTo(item->minimumSize());
|
||||
|
||||
size += QSize(2 * margin(), 2 * margin());
|
||||
return size;
|
||||
|
@ -125,8 +124,7 @@ int FlowLayout::doLayout(const QRect &rect, bool testOnly) const
|
|||
int y = rect.y();
|
||||
int lineHeight = 0;
|
||||
|
||||
QLayoutItem *item;
|
||||
foreach(item, itemList) {
|
||||
foreach(QLayoutItem *item, itemList) {
|
||||
int nextX = x + item->sizeHint().width() + spacing();
|
||||
if (nextX - spacing() > rect.right() && lineHeight > 0) {
|
||||
x = rect.x();
|
||||
|
|
Loading…
Add table
Reference in a new issue