"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/qweb/engine/c2bWebBrowser.cpp" between
cb2bib-2.0.0.tar.gz and cb2bib-2.0.1.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

c2bWebBrowser.cpp  (cb2bib-2.0.0):c2bWebBrowser.cpp  (cb2bib-2.0.1)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2019 by Pere Constans * Copyright (C) 2004-2021 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* *
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
***************************************************************************/ ***************************************************************************/
#include "c2bWebBrowser.h" #include "c2bWebBrowser.h"
#include "c2bUtils.h" #include "c2bUtils.h"
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>
#include <QContextMenuEvent> #include <QContextMenuEvent>
#include <QShortcut> #include <QShortcut>
#include <QTimer> #include <QTimer>
#include <QWebEngineSettings> #include <QWebEngineSettings>
c2bWebBrowser::c2bWebBrowser(QWidget* parentw) : QWebEngineView(parentw) c2bWebBrowser::c2bWebBrowser(QWidget* parentw) : QWebEngineView(parentw)
{ {
// Set default background to application // Set default background to application
#if QT_VERSION >= 0x050600 #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
page()->setBackgroundColor(qApp->palette().color(QPalette::Window)); page()->setBackgroundColor(qApp->palette().color(QPalette::Window));
#endif #endif
// Actions // Actions
setContextMenuPolicy(Qt::ActionsContextMenu); setContextMenuPolicy(Qt::ActionsContextMenu);
viewBackwardAction = new QAction(QIcon(QString::fromUtf8(":/icons/icons/view Backward.png")), tr("Backward"), this); viewBackwardAction = new QAction(QIcon(QString::fromUtf8(":/icons/icons/view Backward.png")), tr("Backward"), this);
viewBackwardAction->setShortcut(QKeySequence("Left")); viewBackwardAction->setShortcut(QKeySequence("Left"));
viewBackwardAction->setStatusTip(tr("Backward")); viewBackwardAction->setStatusTip(tr("Backward"));
addAction(viewBackwardAction); addAction(viewBackwardAction);
viewForwardAction = new QAction(QIcon(QString::fromUtf8(":/icons/icons/viewF orward.png")), tr("Forward"), this); viewForwardAction = new QAction(QIcon(QString::fromUtf8(":/icons/icons/viewF orward.png")), tr("Forward"), this);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)