#include <kis_text_brush_chooser.h>
Definition at line 17 of file kis_text_brush_chooser.h.
◆ KisTextBrushChooser()
| KisTextBrushChooser::KisTextBrushChooser |
( |
KisTextBrushModel * | model, |
|
|
QWidget * | parent ) |
Definition at line 33 of file kis_text_brush_chooser.cpp.
34 : QWidget(parent),
36{
37 setObjectName("textbrush");
38 setupUi(this);
39
40 setWindowTitle(i18nc("Text Brush tip mode", "Text"));
41
42 inputSpacing->setRange(0.0, 10, 2);
43 inputSpacing->setSingleStep(0.01);
44 inputSpacing->setValue(0.1);
45
49
50 connect((QObject*)bnFont, SIGNAL(clicked()),
this, SLOT(
getFont()));
51
52 connect(
m_d->model, &KisTextBrushModel::fontChanged,
55}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void updateBrushPreview()
QScopedPointer< Private > m_d
References connect(), KisWidgetConnectionUtils::connectControl(), getFont(), m_d, and updateBrushPreview().
◆ ~KisTextBrushChooser()
| KisTextBrushChooser::~KisTextBrushChooser |
( |
| ) |
|
◆ getFont
| void KisTextBrushChooser::getFont |
( |
| ) |
|
|
privateslot |
Definition at line 61 of file kis_text_brush_chooser.cpp.
62{
63 bool ok = false;
64
66 f.fromString(
m_d->model->font());
67 f = QFontDialog::getFont(&ok, f);
68
69 if (ok) {
70 m_d->model->setfont(
f.toString());
71 }
72}
References m_d.
◆ updateBrushPreview
| void KisTextBrushChooser::updateBrushPreview |
( |
| ) |
|
|
privateslot |
Definition at line 74 of file kis_text_brush_chooser.cpp.
75{
77 f.fromString(
m_d->model->font());
78
79 lblFont->setText(QString(
f.family() +
", %1").arg(
f.pointSize()));
80 lblFont->setFont(f);
81}
References m_d.
◆ m_d
| QScopedPointer<Private> KisTextBrushChooser::m_d |
|
private |
The documentation for this class was generated from the following files: