Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/finance/alkimia/files/patch-src_alkwebpage.h
16149 views
1
Fix build when both the WEBKIT and WEBENGINE options are set to OFF.
2
3
/wrkdirs/usr/ports/finance/alkimia/work/alkimia-8.1.0/tools/onlinequoteseditor/mainwindow.cpp:52:28: error: member access into incomplete type 'const QUrl'
4
d->urlLine->setText(url.toString());
5
^
6
/usr/local/include/qt5/QtCore/qmetatype.h:2089:1: note: forward declaration of 'QUrl'
7
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
8
^
9
/usr/local/include/qt5/QtCore/qmetatype.h:121:17: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
10
F(QUrl, 17, QUrl) \
11
^
12
/wrkdirs/usr/ports/finance/alkimia/work/alkimia-8.1.0/tools/onlinequoteseditor/mainwindow.cpp:57:63: error: 'QUrl' is an incomplete type
13
AlkOnlineQuotesProfileManager::instance().webPage()->load(QUrl(d->urlLine->text()), d->quotesWidget->acceptLanguage());
14
^
15
/usr/local/include/qt5/QtCore/qmetatype.h:2089:1: note: forward declaration of 'QUrl'
16
QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
17
^
18
/usr/local/include/qt5/QtCore/qmetatype.h:121:17: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS'
19
F(QUrl, 17, QUrl) \
20
^
21
2 errors generated.
22
23
--- src/alkwebpage.h.orig 2021-03-10 18:46:11 UTC
24
+++ src/alkwebpage.h
25
@@ -83,6 +83,7 @@ class ALK_EXPORT AlkWebPage : public QWebView (private
26
27
#else
28
29
+#include <QUrl>
30
#include <QWidget>
31
32
/**
33
34