mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Don't link to unused Qt modules
This commit is contained in:
parent
ef71be2a0e
commit
495ebc785e
@ -80,8 +80,6 @@
|
||||
#include <QFileDialog>
|
||||
#include <QNetworkRequest>
|
||||
#include <QDesktopServices>
|
||||
#include <QPrintPreviewDialog>
|
||||
#include <QPrinter>
|
||||
#include <QWebEngineHistory>
|
||||
#include <QWebEngineSettings>
|
||||
#include <QMessageBox>
|
||||
@ -1193,6 +1191,7 @@ bool BrowserWindow::event(QEvent* event)
|
||||
|
||||
void BrowserWindow::printPage(QWebEngineFrame* frame)
|
||||
{
|
||||
#if QTWEBENGINE_DISABLED
|
||||
QPrintPreviewDialog* dialog = new QPrintPreviewDialog(this);
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
dialog->resize(800, 750);
|
||||
@ -1204,14 +1203,13 @@ void BrowserWindow::printPage(QWebEngineFrame* frame)
|
||||
connect(dialog, SIGNAL(paintRequested(QPrinter*)), weView(), SLOT(print(QPrinter*)));
|
||||
}
|
||||
else {
|
||||
#if QTWEBENGINE_DISABLED
|
||||
dialog->printer()->setDocName(QzTools::getFileNameFromUrl(QzTools::frameUrl(frame)));
|
||||
|
||||
connect(dialog, SIGNAL(paintRequested(QPrinter*)), frame, SLOT(print(QPrinter*)));
|
||||
#endif
|
||||
}
|
||||
|
||||
dialog->open();
|
||||
#endif
|
||||
}
|
||||
|
||||
void BrowserWindow::savePageScreen()
|
||||
|
@ -1,4 +1,4 @@
|
||||
QT += webenginewidgets webenginewidgets-private webchannel network widgets printsupport sql script gui-private
|
||||
QT += webenginewidgets webenginewidgets-private webchannel network widgets sql script
|
||||
|
||||
TARGET = QupZilla
|
||||
TEMPLATE = lib
|
||||
|
@ -42,11 +42,9 @@
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
#include <QUrlQuery>
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
#else
|
||||
#include <QX11Info>
|
||||
#endif
|
||||
#ifdef QZ_WS_X11
|
||||
#include <QX11Info>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#endif
|
||||
@ -829,14 +827,10 @@ void* QzTools::X11Display(const QWidget* widget)
|
||||
Q_UNUSED(widget)
|
||||
|
||||
#ifdef QZ_WS_X11
|
||||
#if QT_VERSION >= 0x050000
|
||||
return qApp->platformNativeInterface()->nativeResourceForWindow("display", widget->windowHandle());
|
||||
#else
|
||||
return QX11Info::display();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void QzTools::setWmClass(const QString &name, const QWidget* widget)
|
||||
|
@ -50,7 +50,6 @@
|
||||
#include <QWebEngineHistory>
|
||||
#include <QClipboard>
|
||||
#include <QTouchEvent>
|
||||
#include <QPrintPreviewDialog>
|
||||
|
||||
bool WebView::s_forceContextMenuOnMouseRelease = false;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
include(../defines.pri)
|
||||
|
||||
QT += webengine webenginewidgets network widgets printsupport sql script
|
||||
QT += webenginewidgets network widgets sql script
|
||||
|
||||
TARGET = qupzilla
|
||||
mac: TARGET = QupZilla
|
||||
|
Loading…
Reference in New Issue
Block a user