72 Q_PROPERTY( QChar character READ character WRITE setCharacter NOTIFY characterSelected )
73 Q_PROPERTY(
int columns READ columns WRITE setColumns )
74 Q_PROPERTY( QFont font READ font WRITE setFont )
83 QSize sizeHint() const override;
88 int columns()
const {
return mColumns; }
99 QChar
character()
const {
return QChar( mLastKey ); }
105 QFont
font()
const {
return mDisplayFont; }
113 void setFont(
const QFont &font );
118 void setFontSize(
double fontSize );
123 void setFontStyle(
const QString &fontStyle );
125 void updateFontMerging(
bool enable );
130 void setColumns(
int columns );
137 void setCharacter( QChar character );
144 void clearCharacter();
154 void keyPressEvent( QKeyEvent *event )
override;
155 void mouseMoveEvent( QMouseEvent *event )
override;
156 void mousePressEvent( QMouseEvent *event )
override;
157 void paintEvent( QPaintEvent *event )
override;
158 void resizeEvent( QResizeEvent *event )
override;
164 int mSquareSize = 24;