Added MiniPreviewPixmap to Template.

This commit is contained in:
Jim Evins
2013-11-04 23:58:03 -05:00
parent 2843d8ccda
commit fe4595bde0
17 changed files with 263 additions and 34 deletions
+6 -4
View File
@@ -41,9 +41,9 @@ namespace libglabels
}
std::vector<Point> Frame::getOrigins() const
QVector<Point> Frame::getOrigins() const
{
std::vector<Point> origins( nLabels() );
QVector<Point> origins( nLabels() );
foreach ( Layout *layout, mLayouts )
{
@@ -51,12 +51,14 @@ namespace libglabels
{
for ( int ix = 0; ix < layout->nx(); ix++ )
{
origins.push_back( Point( ix*layout->dx() + layout->x0(), iy*layout->dy() + layout->y0() ) );
origins << Point( ix*layout->dx() + layout->x0(), iy*layout->dy() + layout->y0() );
}
}
}
std::sort( origins.begin(), origins.end(), Point::compare );
qStableSort( origins.begin(), origins.end() );
return origins;
}