Commit 82091b5c authored by Laurent Montel's avatar Laurent Montel 😁

Add more method

parent 6673e9fc
......@@ -180,6 +180,8 @@ private:
Q_PRIVATE_SLOT(d, void _k_slotOrderedList(bool b))
Q_PRIVATE_SLOT(d, void _k_slotUnOrderedList(bool b))
Q_PRIVATE_SLOT(d, void _k_slotResetFormat())
Q_PRIVATE_SLOT(d, void _k_slotDirectionLtr())
Q_PRIVATE_SLOT(d, void _k_slotDirectionRtl())
};
}
#endif // COMPOSERWEBENGINE_H
......@@ -200,6 +200,7 @@ void ComposerEditorWebEnginePrivate::createAction(ComposerWebEngine::ComposerWeb
action_direction_ltr = new KToggleAction(QIcon::fromTheme(QStringLiteral("format-text-direction-ltr")), i18nc("@action", "Left-to-Right"), q);
action_direction_ltr->setIconText(i18nc("@label left-to-right", "Left-to-Right"));
htmlEditorActionList.append(action_direction_ltr);
q->connect(action_direction_ltr, SIGNAL(triggered(bool)), SLOT(_k_slotDirectionLtr()));
//FORWARD_ACTION(action_direction_ltr, QWebPage::SetTextDirectionLeftToRight);
}
break;
......@@ -209,7 +210,7 @@ void ComposerEditorWebEnginePrivate::createAction(ComposerWebEngine::ComposerWeb
action_direction_rtl = new KToggleAction(QIcon::fromTheme(QStringLiteral("format-text-direction-rtl")), i18nc("@action", "Right-to-Left"), q);
action_direction_rtl->setIconText(i18nc("@label right-to-left", "Right-to-Left"));
htmlEditorActionList.append(action_direction_rtl);
//FORWARD_ACTION(action_direction_rtl, QWebPage::SetTextDirectionRightToLeft);
q->connect(action_direction_rtl, SIGNAL(triggered(bool)), SLOT(_k_slotDirectionRtl()));
}
break;
}
......@@ -783,6 +784,16 @@ void ComposerEditorWebEnginePrivate::_k_slotResetFormat()
execCommand(QStringLiteral("removeFormat"));
}
void ComposerEditorWebEnginePrivate::_k_slotDirectionLtr()
{
qDebug() << "void ComposerEditorWebEnginePrivate::_k_slotDirectionLtr() not implemented";
}
void ComposerEditorWebEnginePrivate::_k_slotDirectionRtl()
{
qDebug() << "void ComposerEditorWebEnginePrivate::_k_slotDirectionRtl() not implemented";
}
void ComposerEditorWebEnginePrivate::_k_setFontSize(int fontSize)
{
execCommand(QStringLiteral("fontSize"), QString::number(fontSize + 1)); //Verify
......
......@@ -110,7 +110,8 @@ public:
void _k_slotOrderedList(bool b);
void _k_slotUnOrderedList(bool b);
void _k_slotResetFormat();
void _k_slotDirectionLtr();
void _k_slotDirectionRtl();
QAction *getAction(QWebEnginePage::WebAction action) const;
QVariant evaluateJavascript(const QString &command);
void execCommand(const QString &cmd);
......
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