Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ find_package (Qt5Widgets REQUIRED)
find_package (Qt5Gui REQUIRED)
find_package (Qt5Sql REQUIRED)
find_package (Qt5Network REQUIRED)
find_package (Qt5WebKit REQUIRED)
find_package (Qt5WebKitWidgets REQUIRED)
find_package (Qt5WebEngine REQUIRED)
find_package (Qt5WebEngineWidgets REQUIRED)

find_package(PkgConfig REQUIRED)
pkg_check_modules(TIDY REQUIRED tidy)
Expand Down Expand Up @@ -432,5 +432,5 @@ include_directories(${TIDY_INCLUDE_DIRS})
add_executable(nixnote2 ${nixnote2_src} ${nixnote2_hdr_moc})
add_executable(tests ${nixnote2_src} ${nixnote2_hdr_moc})

target_link_libraries(nixnote2 Qt5::Widgets Qt5::Sql Qt5::Gui Qt5::Network Qt5:WebKit Qt5:WebKitWidgets)
target_link_libraries(tests Qt5::Widgets Qt5::Sql Qt5::Gui Qt5::Network Qt5:WebKit Qt5:WebKitWidgets)
target_link_libraries(nixnote2 Qt5::Widgets Qt5::Sql Qt5::Gui Qt5::Network Qt5:WebEngine Qt5:WebEngineWidgets)
target_link_libraries(tests Qt5::Widgets Qt5::Sql Qt5::Gui Qt5::Network Qt5:WebEngine Qt5:WebEngineWidgets)
2 changes: 1 addition & 1 deletion nixnote2.pro
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
QT += core gui widgets printsupport webkit webkitwidgets sql network xml dbus qml concurrent
QT += core gui widgets printsupport webkit webenginewidgets sql network xml dbus qml concurrent

DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
unix {
Expand Down
4 changes: 2 additions & 2 deletions src/dialog/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
***********************************************************************************/

#include "aboutdialog.h"
#include <QWebView>
#include <QWebEngineView>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
Expand All @@ -30,7 +30,7 @@ AboutDialog::AboutDialog(QDialog *parent) :
QDialog(parent) {
QVBoxLayout *mainLayout = new QVBoxLayout();
this->setLayout(mainLayout);
QWebView *page = new QWebView();
QWebEngineView *page = new QWebEngineView();
QPushButton *okButton = new QPushButton();
okButton->setText(tr("OK"));
mainLayout->addWidget(page);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/browserWidgets/ntitleeditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

#include "src/qevercloud/QEverCloud/headers/QEverCloud.h"

#include <QtWebKit>
#include <QtWebEngine>
#include <QLineEdit>

using namespace qevercloud;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/browserWidgets/table/tablepropertiesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ TablePropertiesDialog::TablePropertiesDialog(QString tableCss, QString cellCss,
tabs->addTab(tablePanel, tr("Table Properties"));
tabs->addTab(cellPanel,tr("Cell Properties"));

preview = new QWebView();
preview = new QWebEngineView();
mainLayout->addWidget(preview);

mainLayout->addLayout(buttonLayout);
Expand Down
4 changes: 2 additions & 2 deletions src/gui/browserWidgets/table/tablepropertiesdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QWebView>
#include <QWebEngineView>
#include <QComboBox>
#include <QSpinBox>
#include <QLabel>
Expand Down Expand Up @@ -111,7 +111,7 @@ class TablePropertiesDialog : public QDialog
QPushButton *okButton; // Dialog box OK button
QPushButton *cancelButton; // Dialog box cancel button
QTabWidget *tabs; // Tab widget holding table & cell options
QWebView *preview; // HTML page showing the user's selected values
QWebEngineView *preview; // HTML page showing the user's selected values

QLabel *paddingLabel; // Label used to show cell padding selection
QHBoxLayout *borderSizeLayout; // layout used for the border size selection
Expand Down
8 changes: 4 additions & 4 deletions src/gui/findreplace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ void FindReplace::textChanged() {



QWebPage::FindFlags FindReplace::getCaseSensitive() {
QWebPage::FindFlags ff;
ff = QWebPage::HighlightAllOccurrences;
QWebEnginePage::FindFlags FindReplace::getCaseSensitive() {
QWebEnginePage::FindFlags ff;
ff = QWebEnginePage::HighlightAllOccurrences;
ff = 0;
if (caseSensitive->isChecked())
ff = ff | QWebPage::FindCaseSensitively;
ff = ff | QWebEnginePage::FindCaseSensitively;

return ff;
}
4 changes: 2 additions & 2 deletions src/gui/findreplace.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <QPushButton>
#include <QCheckBox>
#include <QHBoxLayout>
#include <QWebPage>
#include <QWebEnginePage>

class FindReplace : public QWidget
{
Expand All @@ -44,7 +44,7 @@ class FindReplace : public QWidget
QPushButton *replaceAllButton;
QLineEdit *replaceLine;
QCheckBox *caseSensitive;
QWebPage::FindFlags getCaseSensitive();
QWebEnginePage::FindFlags getCaseSensitive();

signals:

Expand Down
Loading