Pointer cleanup (#242)
- Made greater use of smart pointers, eliminating many instances of manual memory management - Do not use pointers at all for many non-polymorphic classes - Assorted other code cleanup
This commit is contained in:
@@ -39,13 +39,13 @@ namespace glabels
|
||||
public:
|
||||
MiniPreviewPixmap();
|
||||
|
||||
MiniPreviewPixmap( const model::Template* tmplate, int width, int height );
|
||||
MiniPreviewPixmap( const model::Template& tmplate, int width, int height );
|
||||
|
||||
|
||||
private:
|
||||
void draw( const model::Template* tmplate, int width, int height );
|
||||
void drawPaper( QPainter& painter, const model::Template* tmplate, double scale );
|
||||
void drawLabelOutlines( QPainter& painter, const model::Template* tmplate, double scale );
|
||||
void draw( const model::Template& tmplate, int width, int height );
|
||||
void drawPaper( QPainter& painter, const model::Template& tmplate, double scale );
|
||||
void drawLabelOutlines( QPainter& painter, const model::Template& tmplate, double scale );
|
||||
void drawLabelOutline( QPainter& painter, const model::Frame *frame, const model::Point& point0 );
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user