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 )
82 QSize sizeHint() const override;
87 int columns()
const {
return mColumns; }
98 QChar
character()
const {
return QChar( mLastKey ); }
104 QFont
font()
const {
return mDisplayFont; }
112 void setFont(
const QFont &font );
117 void setFontSize(
double fontSize );
122 void setFontStyle(
const QString &fontStyle );
124 void updateFontMerging(
bool enable );
129 void setColumns(
int columns );
136 void setCharacter( QChar character );
143 void clearCharacter();
153 void keyPressEvent( QKeyEvent *event )
override;
154 void mouseMoveEvent( QMouseEvent *event )
override;
155 void mousePressEvent( QMouseEvent *event )
override;
156 void paintEvent( QPaintEvent *event )
override;
157 void resizeEvent( QResizeEvent *event )
override;
163 int mSquareSize = 24;