1
#include "labelpreview.h"
5
#include "pallabeling.h"
7
LabelPreview::LabelPreview( QWidget* parent )
12
void LabelPreview::setTextColor( QColor color )
18
void LabelPreview::setBuffer( int size, QColor color )
25
void LabelPreview::paintEvent( QPaintEvent* e )
29
p.setRenderHint( QPainter::Antialiasing );
31
p.translate( 10, 20 ); // uhm...
33
if ( mBufferSize != 0 )
34
PalLabeling::drawLabelBuffer( &p, text(), font(), mBufferSize, mBufferColor );
36
p.setPen( mTextColor );
37
p.drawText( 0, 0, text() );