moved initialization of var
This commit is contained in:
@@ -44,11 +44,11 @@ RichTextEditorToolBar::RichTextEditorToolBar(RichTextEditor *editor,
|
|||||||
m_link_action(new QAction(this)),
|
m_link_action(new QAction(this)),
|
||||||
m_image_action(new QAction(this)),
|
m_image_action(new QAction(this)),
|
||||||
m_color_action(new ColorAction(this)),
|
m_color_action(new ColorAction(this)),
|
||||||
|
m_font_family_input(new QFontComboBox(this)),
|
||||||
m_font_size_input(new QComboBox),
|
m_font_size_input(new QComboBox),
|
||||||
m_editor(editor)
|
m_editor(editor)
|
||||||
{
|
{
|
||||||
// Font comboBox
|
// Font comboBox
|
||||||
m_font_family_input = new QFontComboBox(this);
|
|
||||||
m_font_family_input->setEditable(false);
|
m_font_family_input->setEditable(false);
|
||||||
connect(m_font_family_input, &QComboBox::textActivated,
|
connect(m_font_family_input, &QComboBox::textActivated,
|
||||||
this, &RichTextEditorToolBar::fontFamilyActivated);
|
this, &RichTextEditorToolBar::fontFamilyActivated);
|
||||||
|
|||||||
Reference in New Issue
Block a user