QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <characterwidget.h>
Public Slots | |
void | clearCharacter () |
Clears the currently selected character in the widget. More... | |
void | setCharacter (QChar character) |
Sets the currently selected character in the widget. More... | |
void | setColumns (int columns) |
Sets the number of columns of characters to show in the widget. More... | |
void | setFont (const QFont &font) |
Sets the font to show in the widget. More... | |
void | setFontSize (double fontSize) |
Sets the font size (in points) to render in the widget. More... | |
void | setFontStyle (const QString &fontStyle) |
Sets the font style to show in the widget. More... | |
void | updateFontMerging (bool enable) |
Signals | |
void | characterSelected (QChar character) |
Emitted when a character is selected in the widget. More... | |
Public Member Functions | |
CharacterWidget (QWidget *parent=nullptr) | |
Constructor for CharacterWidget. More... | |
QChar | character () const |
Returns the currently selected character in the widget. More... | |
int | columns () const |
Returns the number of columns of characters shown in the widget. More... | |
QFont | font () const |
Returns the font shown in the widget. More... | |
QSize | sizeHint () const override |
int | squareSize () const |
Returns the size (in pixels) of the square used to render each character preview. More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
void | mouseMoveEvent (QMouseEvent *event) override |
void | mousePressEvent (QMouseEvent *event) override |
void | paintEvent (QPaintEvent *event) override |
void | resizeEvent (QResizeEvent *event) override |
Properties | |
QChar | character |
int | columns |
QFont | font |
A widget for displaying characters available in a preset font, and allowing users to select an individual character.
Definition at line 69 of file characterwidget.h.
CharacterWidget::CharacterWidget | ( | QWidget * | parent = nullptr | ) |
Constructor for CharacterWidget.
Definition at line 59 of file characterwidget.cpp.
|
inline |
Returns the currently selected character in the widget.
Definition at line 100 of file characterwidget.h.
|
signal |
Emitted when a character is selected in the widget.
|
slot |
Clears the currently selected character in the widget.
Definition at line 131 of file characterwidget.cpp.
|
inline |
Returns the number of columns of characters shown in the widget.
Definition at line 88 of file characterwidget.h.
|
inline |
Returns the font shown in the widget.
Definition at line 107 of file characterwidget.h.
|
overrideprotected |
Definition at line 142 of file characterwidget.cpp.
|
overrideprotected |
Definition at line 210 of file characterwidget.cpp.
|
overrideprotected |
Definition at line 223 of file characterwidget.cpp.
|
overrideprotected |
Definition at line 236 of file characterwidget.cpp.
|
overrideprotected |
Definition at line 282 of file characterwidget.cpp.
|
slot |
Sets the currently selected character in the widget.
Definition at line 112 of file characterwidget.cpp.
|
slot |
Sets the number of columns of characters to show in the widget.
Definition at line 103 of file characterwidget.cpp.
|
slot |
Sets the font to show in the widget.
Definition at line 66 of file characterwidget.cpp.
|
slot |
Sets the font size (in points) to render in the widget.
Definition at line 74 of file characterwidget.cpp.
|
slot |
Sets the font style to show in the widget.
Definition at line 82 of file characterwidget.cpp.
|
override |
Definition at line 137 of file characterwidget.cpp.
|
inline |
Returns the size (in pixels) of the square used to render each character preview.
Definition at line 93 of file characterwidget.h.
|
slot |
Definition at line 93 of file characterwidget.cpp.
|
readwrite |
Definition at line 72 of file characterwidget.h.
|
readwrite |
Definition at line 73 of file characterwidget.h.
|
readwrite |
Definition at line 74 of file characterwidget.h.