r23039 by jghali - Code style fixes
scribus-commit
scribus-commit at lists.scribus.net
Fri Jun 21 11:46:28 UTC 2019
Author: jghali
Date: Fri Jun 21 11:46:28 2019
New Revision: 23039
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23039
Log:
Code style fixes
Modified:
trunk/Scribus/scribus/ui/arrowchooser.cpp
Modified: trunk/Scribus/scribus/ui/arrowchooser.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23039&path=/trunk/Scribus/scribus/ui/arrowchooser.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/arrowchooser.cpp (original)
+++ trunk/Scribus/scribus/ui/arrowchooser.cpp Fri Jun 21 11:46:28 2019
@@ -30,8 +30,8 @@
void ArrowChooser::rebuildList(QList<ArrowDesc> *arrowStyles)
{
clear();
- FPointArray Path;
- Path.resize(0);
+ FPointArray path;
+ path.resize(0);
addItem(CommonStrings::tr_None);
for (int a = 0; a < arrowStyles->count(); ++a)
{
@@ -43,11 +43,11 @@
painter->setPen(qRgb(0, 0, 0), 1, Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin);
painter->setFillMode(1);
painter->translate(3.0, 3.0);
- Path.resize(0);
- Path = arrowStyles->at(a).points.copy();
- FPoint min = getMinClipF(&Path);
- Path.translate(-min.x(), -min.y());
- FPoint max = Path.widthHeight();
+ path.resize(0);
+ path = arrowStyles->at(a).points.copy();
+ FPoint min = getMinClipF(&path);
+ path.translate(-min.x(), -min.y());
+ FPoint max = path.widthHeight();
QTransform mm;
QTransform mm2;
if (arrowDirection)
@@ -56,8 +56,8 @@
mm2.translate(-max.x(), 0);
}
mm.scale(16.0 / qMax(max.x(), max.y()), 16.0 / qMax(max.x(), max.y()));
- Path.map(mm2 * mm);
- painter->setupPolygon(&Path);
+ path.map(mm2 * mm);
+ painter->setupPolygon(&path);
painter->drawPolygon();
painter->drawPolyLine();
painter->end();
More information about the scribus-commit
mailing list