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
+9
View File
@@ -23,6 +23,9 @@
#include <iostream>
#include "Db.h"
#include "privateConstants.h"
using namespace libglabels::Constants;
namespace libglabels
@@ -98,6 +101,12 @@ namespace libglabels
}
void Template::initPreview()
{
mPreview = MiniPreviewPixmap( this, PREVIEW_PIXMAP_SIZE, PREVIEW_PIXMAP_SIZE );
}
bool Template::operator==( const Template &other ) const
{
return (mBrand == other.mBrand) && (mPart == other.mPart);