r23194 by jghali - Code style fixes
scribus-commit
scribus-commit at lists.scribus.net
Mon Sep 9 14:39:48 UTC 2019
Author: jghali
Date: Mon Sep 9 14:39:48 2019
New Revision: 23194
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23194
Log:
Code style fixes
Modified:
trunk/Scribus/scribus/canvasmode.cpp
Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23194&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp (original)
+++ trunk/Scribus/scribus/canvasmode.cpp Mon Sep 9 14:39:48 2019
@@ -280,7 +280,7 @@
psx->scale(m_canvas->scale(), m_canvas->scale());
psx->translate(-m_doc->minCanvasCoordinate.x(), -m_doc->minCanvasCoordinate.y());
psx->setClipping(true);
- psx->setClipRegion(QRegion ( m_canvas->exposedRect() ) );
+ psx->setClipRegion(QRegion(m_canvas->exposedRect()));
if (m_doc->m_Selection->isMultipleSelection())
{
PageItem *curItem(nullptr);
@@ -527,9 +527,9 @@
// QRectF br(currItem->getVisualBoundingRect());
#ifdef GESTURE_FRAME_PREVIEW
QImage *pixItem(0);
- if ( m_pixmapCache.contains(currItem) )
- {
- if ( m_pixmapCache.value(currItem)->isReady() )
+ if (m_pixmapCache.contains(currItem))
+ {
+ if (m_pixmapCache.value(currItem)->isReady())
pixItem = m_pixmapCache.value(currItem)->getImage();
}
else
@@ -542,7 +542,7 @@
p->save();
p->translate(br.x(),br.y());
p->translate(deltax, deltay);
- p->drawImage( br.toRect(), *pixItem, pixItem->rect() );
+ p->drawImage(br.toRect(), *pixItem, pixItem->rect());
p->restore();
}
#endif // GESTURE_FRAME_PREVIEW
@@ -686,9 +686,9 @@
// QRectF br(currItem->getVisualBoundingRect());
#ifdef GESTURE_FRAME_PREVIEW
QImage *pixItem(0);
- if ( m_pixmapCache.contains(currItem) )
- {
- if ( m_pixmapCache.value(currItem)->isReady() )
+ if (m_pixmapCache.contains(currItem))
+ {
+ if (m_pixmapCache.value(currItem)->isReady())
pixItem = m_pixmapCache.value(currItem)->getImage();
}
else
@@ -701,7 +701,7 @@
{
p->save();
// p->translate(br.x() /*- x*/, br.y() /*- y*/);
- p->drawImage( br.toRect(), *pixItem, pixItem->rect() );
+ p->drawImage(br.toRect(), *pixItem, pixItem->rect());
p->restore();
}
#endif // GESTURE_FRAME_PREVIEW
@@ -1031,19 +1031,19 @@
void CanvasMode::commonDrawTextCursor(QPainter* p, PageItem_TextFrame* textframe, const QPointF& offset)
{
QLineF cursor;
- QPen cPen ( Qt::black, 0.9 , Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin );
+ QPen cPen (Qt::black, 0.9 , Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin);
// normalize Current Position
textframe->itemText.normalizeCursorPosition();
- int textCursorPos ( textframe->itemText.cursorPosition() );
+ int textCursorPos (textframe->itemText.cursorPosition());
cursor = textframe->textLayout.positionToPoint(textCursorPos);
cPen.setColor(ScColorEngine::getRGBColor(m_doc->PageColors[textframe->itemText.charStyle(textCursorPos).fillColor()], m_doc));
p->save();
p->setTransform(textframe->getTransform(), true);
- p->setPen ( cPen );
- p->setRenderHint ( QPainter::Antialiasing, true );
+ p->setPen(cPen);
+ p->setRenderHint(QPainter::Antialiasing, true);
p->drawLine(cursor.translated(offset));
p->restore();
}
@@ -1196,7 +1196,7 @@
}
outlinePalette->buildReopenVals();
docCheckerPalette->clearErrorList();
- if ( w )
+ if (w)
w->showNormal();
mainWindow->newActWin(w);
}
More information about the scribus-commit
mailing list