Initial implementation of TemplatePicker. Debugged mini previews.

This commit is contained in:
Jim Evins
2013-11-05 23:51:48 -05:00
parent fe4595bde0
commit ba83204445
11 changed files with 149 additions and 18 deletions
+2 -1
View File
@@ -45,13 +45,14 @@ namespace libglabels
{
QVector<Point> origins( nLabels() );
int i = 0;
foreach ( Layout *layout, mLayouts )
{
for ( int iy = 0; iy < layout->ny(); iy++ )
{
for ( int ix = 0; ix < layout->nx(); ix++ )
{
origins << Point( ix*layout->dx() + layout->x0(), iy*layout->dy() + layout->y0() );
origins[i++] = Point( ix*layout->dx() + layout->x0(), iy*layout->dy() + layout->y0() );
}
}
}