|
|
@ -1,7 +1,6 @@
|
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright 2015, Rohan Garg <rohan@garg.io>
|
|
|
|
* Copyright 2015, Rohan Garg <rohan@garg.io>
|
|
|
|
* Copyright 2016, Teo Mrnjavac <teo@kde.org>
|
|
|
|
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Calamares is free software: you can redistribute it and/or modify
|
|
|
|
* Calamares is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
@ -20,12 +19,7 @@
|
|
|
|
#include "WebViewStep.h"
|
|
|
|
#include "WebViewStep.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QVariant>
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef WEBVIEW_WITH_WEBKIT
|
|
|
|
|
|
|
|
#include <QWebView>
|
|
|
|
#include <QWebView>
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <QWebEngineView>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( WebViewStepFactory, registerPlugin<WebViewStep>(); )
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( WebViewStepFactory, registerPlugin<WebViewStep>(); )
|
|
|
|
|
|
|
|
|
|
|
@ -33,17 +27,7 @@ WebViewStep::WebViewStep( QObject* parent )
|
|
|
|
: Calamares::ViewStep( parent )
|
|
|
|
: Calamares::ViewStep( parent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
emit nextStatusChanged( true );
|
|
|
|
emit nextStatusChanged( true );
|
|
|
|
m_view = new C_QWEBVIEW();
|
|
|
|
m_view = new QWebView;
|
|
|
|
#ifdef WEBVIEW_WITH_WEBKIT
|
|
|
|
|
|
|
|
m_view->settings()->setFontFamily( QWebSettings::StandardFont,
|
|
|
|
|
|
|
|
m_view->settings()->
|
|
|
|
|
|
|
|
fontFamily( QWebSettings::SansSerifFont ) );
|
|
|
|
|
|
|
|
m_view->setRenderHints( QPainter::Antialiasing |
|
|
|
|
|
|
|
|
QPainter::TextAntialiasing |
|
|
|
|
|
|
|
|
QPainter::HighQualityAntialiasing |
|
|
|
|
|
|
|
|
QPainter::SmoothPixmapTransform |
|
|
|
|
|
|
|
|
QPainter::NonCosmeticDefaultPen );
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|