19#include "moc_qgscharacterselectordialog.cpp"
23 : QDialog( parent, fl )
24 , mChar( QChar::Null )
29 mCharSelectScrollArea->setVerticalOnly(
true );
35 mCharSelectLabelFont->setText( QStringLiteral(
"%1 %2" ).arg( font.family(), style ) );
39 mCharSelectScrollArea->viewport()->update();
43 QApplication::setOverrideCursor( Qt::ArrowCursor );
44 const int res = exec();
45 QApplication::restoreOverrideCursor();
47 if ( res == QDialog::Accepted )
49 if ( !
mChar.isNull() && gotChar )
57void QgsCharacterSelectorDialog::setCharacter( QChar chr )
CharacterWidget * mCharWidget
QChar selectCharacter(bool *gotChar, const QFont &font, const QString &style, QChar initialSelection=QChar())
Opens the dialog modally and returns when the user has selected a character.
QgsCharacterSelectorDialog(QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)