2013-06-22 19:37:41 +02:00
|
|
|
class CharacterWidget : QWidget
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <characterwidget.h>
|
|
|
|
%End
|
|
|
|
public:
|
2015-02-18 17:00:36 +11:00
|
|
|
CharacterWidget( QWidget *parent /TransferThis/ = 0 );
|
2013-06-22 19:37:41 +02:00
|
|
|
QSize sizeHint() const;
|
|
|
|
|
|
|
|
int getColumns() const;
|
|
|
|
int getSquareSize() const;
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void updateFont( const QFont &font );
|
|
|
|
void updateSize( double fontSize );
|
|
|
|
void updateStyle( const QString &fontStyle );
|
|
|
|
void updateFontMerging( bool enable );
|
|
|
|
void updateColumns( int cols );
|
2016-02-02 19:46:18 +11:00
|
|
|
void setCharacter( QChar character );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
signals:
|
2016-02-02 19:46:18 +11:00
|
|
|
void characterSelected( QChar character );
|
2013-06-22 19:37:41 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void mouseMoveEvent( QMouseEvent *event );
|
|
|
|
void mousePressEvent( QMouseEvent *event );
|
|
|
|
void paintEvent( QPaintEvent *event );
|
|
|
|
};
|
|
|
|
|