moved initialization of var

This commit is contained in:
2023-11-15 23:16:01 +01:00
parent 488e10fc8c
commit 312a7b3d7a

View File

@@ -44,11 +44,11 @@ RichTextEditorToolBar::RichTextEditorToolBar(RichTextEditor *editor,
m_link_action(new QAction(this)),
m_image_action(new QAction(this)),
m_color_action(new ColorAction(this)),
m_font_family_input(new QFontComboBox(this)),
m_font_size_input(new QComboBox),
m_editor(editor)
{
// Font comboBox
m_font_family_input = new QFontComboBox(this);
m_font_family_input->setEditable(false);
connect(m_font_family_input, &QComboBox::textActivated,
this, &RichTextEditorToolBar::fontFamilyActivated);