Commit f766486c authored by André Agenor's avatar André Agenor Committed by Tomaz Canabrava

Changed to use correct object signal

Summary: This patch will fix D18741

Reviewers: tcanabrava, broulik

Reviewed By: tcanabrava

Differential Revision: https://phabricator.kde.org/D18927
parent f561f6d5
......@@ -55,36 +55,38 @@ void kpMainWindow::setupTextToolBarActions ()
d->actionTextFontFamily = ac->add<KFontAction> ("text_font_family");
d->actionTextFontFamily->setText (i18n ("Font Family"));
connect (d->actionTextFontFamily, &QAction::triggered,
connect (d->actionTextFontFamily,
static_cast<void (KFontAction::*)(const QString&)>(&KFontAction::triggered),
this, &kpMainWindow::slotTextFontFamilyChanged);
d->actionTextFontSize = ac->add<KFontSizeAction> ("text_font_size");
d->actionTextFontSize->setText (i18n ("Font Size"));
connect (d->actionTextFontSize, &QAction::triggered,
connect (d->actionTextFontSize,
static_cast<void (KFontSizeAction::*)(int)>(&KFontSizeAction::triggered),
this, &kpMainWindow::slotTextFontSizeChanged);
d->actionTextBold = ac->add<KToggleAction> ("text_bold");
d->actionTextBold->setIcon(KDE::icon("format-text-bold"));
d->actionTextBold->setText (i18n ("Bold"));
connect (d->actionTextBold, &QAction::triggered,
connect (d->actionTextBold, &KToggleAction::triggered,
this, &kpMainWindow::slotTextBoldChanged);
d->actionTextItalic = ac->add<KToggleAction> ("text_italic");
d->actionTextItalic->setIcon (KDE::icon("format-text-italic"));
d->actionTextItalic->setText (i18n ("Italic"));
connect (d->actionTextItalic, &QAction::triggered,
connect (d->actionTextItalic, &KToggleAction::triggered,
this, &kpMainWindow::slotTextItalicChanged);
d->actionTextUnderline = ac->add<KToggleAction> ("text_underline");
d->actionTextUnderline->setIcon (KDE::icon("format-text-underline"));
d->actionTextUnderline->setText (i18n ("Underline"));
connect (d->actionTextUnderline, &QAction::triggered,
connect (d->actionTextUnderline, &KToggleAction::triggered,
this, &kpMainWindow::slotTextUnderlineChanged);
d->actionTextStrikeThru = ac->add<KToggleAction> ("text_strike_thru");
d->actionTextStrikeThru->setIcon(KDE::icon("format-text-strikethrough"));
d->actionTextStrikeThru->setText (i18n ("Strike Through"));
connect (d->actionTextStrikeThru, &QAction::triggered,
connect (d->actionTextStrikeThru, &KToggleAction::triggered,
this, &kpMainWindow::slotTextStrikeThruChanged);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment