Commit eedb3a65 authored by Laurent Montel's avatar Laurent Montel 😁

Reactivate code

parent cb73955a
......@@ -56,6 +56,12 @@ BilboBrowser::BilboBrowser(QWidget *parent)
createUi(parent);
#ifdef QTWEBENGINE_SUPPORT_OPTION
connect(mWebView, &QWebEngineView::loadProgress,
browserProgress, &QProgressBar::setValue);
connect(mWebView, &QWebEngineView::loadFinished, this, &BilboBrowser::slotCompleted);
//connect(mWebView, &QWebView::statusBarMessage, this,
// &BilboBrowser::slotSetStatusBarText);
//TODO
#else
connect(mWebView, &QWebView::loadProgress,
......
......@@ -157,20 +157,14 @@ void BlogiloComposerWebEngineEditor::startEditing()
void BlogiloComposerWebEngineEditor::execCommand(const QString &cmd)
{
#if 0
QWebFrame *frame = view()->page()->mainFrame();
const QString js = QStringLiteral("document.execCommand(\"%1\", false, null)").arg(cmd);
frame->evaluateJavaScript(js);
#endif
view()->page()->runJavaScript(js);
}
void BlogiloComposerWebEngineEditor::execCommand(const QString &cmd, const QString &arg)
{
#if 0
QWebFrame *frame = view()->page()->mainFrame();
const QString js = QStringLiteral("document.execCommand(\"%1\", false, \"%2\")").arg(cmd).arg(arg);
frame->evaluateJavaScript(js);
#endif
view()->page()->runJavaScript(js);
}
void BlogiloComposerWebEngineEditor::insertShortUrl(const QString &url)
......
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