Esempio n. 1
0
void TitleBar::onCommentPageLoaded(bool ok)
{
#ifdef USEWEBENGINE
    QWebEngineView* comments = noteView()->commentView();
#else
    CWizLocalProgressWebView* commentWidget = noteView()->commentWidget();
#endif
    if (!ok)
    {
        loadErrorPage();
        commentWidget->show();
    }
    else
    {
        commentWidget->hideLocalProgress();
    }
#ifdef USEWEBENGINE
    else
    {
Esempio n. 2
0
void TitleBar::onCommentPageLoaded(bool ok)
{
#ifdef USEWEBENGINE
    QWebEngineView* comments = noteView()->commentView();
#else
    CWizLocalProgressWebView* commentWidget = noteView()->commentWidget();
    commentWidget->web()->history()->clear();
#endif
    if (!ok)
    {
        qDebug() << "Wow, load comment page failed! " << commentWidget->web()->url();
        loadErrorPage();
        commentWidget->show();
    }
    else
    {
        commentWidget->hideLocalProgress();
    }
#ifdef USEWEBENGINE
    else
    {