Skip to content

Commit 32824e2

Browse files
committed
fix font preview in labeling
1 parent c2cb3b8 commit 32824e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/qgslabelpreview.h

100644100755
+4
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ class QgsLabelPreview : public QLabel
1212

1313
void setBuffer( double size, QColor color );
1414

15+
void setFont( QFont f ) { mFont = f; }
16+
QFont font() { return mFont; }
17+
1518
void paintEvent( QPaintEvent* e );
1619

1720
private:
1821
int mBufferSize;
1922
QColor mBufferColor;
2023
QColor mTextColor;
24+
QFont mFont;
2125
};
2226

2327
#endif // LABELPREVIEW_H

0 commit comments

Comments
 (0)