mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
kdevelop_kf6, downgrade to 25.08.3 (Qt6.8 failure for new one?) (#13446)
This commit is contained in:
@@ -57,7 +57,7 @@ index 74759ff..f710a12 100644
|
||||
install(FILES
|
||||
documentationfindwidget.h
|
||||
diff --git a/kdevplatform/documentation/standarddocumentationview.cpp b/kdevplatform/documentation/standarddocumentationview.cpp
|
||||
index 969eb65..d13f568 100644
|
||||
index e5e09be..2d4f759 100644
|
||||
--- a/kdevplatform/documentation/standarddocumentationview.cpp
|
||||
+++ b/kdevplatform/documentation/standarddocumentationview.cpp
|
||||
@@ -5,6 +5,7 @@
|
||||
@@ -90,12 +90,12 @@ index 969eb65..d13f568 100644
|
||||
class StandardDocumentationPage : public QWebEnginePage
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -67,13 +71,16 @@ private:
|
||||
@@ -67,13 +71,15 @@ private:
|
||||
KDevelop::StandardDocumentationView* const m_view;
|
||||
bool m_isDelegating = false;
|
||||
};
|
||||
-
|
||||
+#endif
|
||||
|
||||
} // unnamed namespace
|
||||
|
||||
void StandardDocumentationView::registerCustomUrlSchemes()
|
||||
@@ -107,7 +107,7 @@ index 969eb65..d13f568 100644
|
||||
}
|
||||
|
||||
class KDevelop::StandardDocumentationViewPrivate
|
||||
@@ -82,18 +89,23 @@ public:
|
||||
@@ -82,18 +88,23 @@ public:
|
||||
ZoomController* m_zoomController = nullptr;
|
||||
IDocumentation::Ptr m_doc;
|
||||
|
||||
@@ -131,7 +131,7 @@ index 969eb65..d13f568 100644
|
||||
// prevent QWebEngine (Chromium) from overriding the signal handlers of KCrash
|
||||
const auto chromiumFlags = qgetenv("QTWEBENGINE_CHROMIUM_FLAGS");
|
||||
if (!chromiumFlags.contains("disable-in-process-stack-traces")) {
|
||||
@@ -110,6 +122,7 @@ public:
|
||||
@@ -110,6 +121,7 @@ public:
|
||||
|
||||
// The event filter is necessary for handling mouse events since they are swallowed by QWebEngineView.
|
||||
m_view->installEventFilter(parent);
|
||||
@@ -139,10 +139,11 @@ index 969eb65..d13f568 100644
|
||||
}
|
||||
};
|
||||
|
||||
@@ -119,12 +132,16 @@ StandardDocumentationView::StandardDocumentationView(DocumentationFindWidget* fi
|
||||
@@ -118,13 +130,16 @@ StandardDocumentationView::StandardDocumentationView(DocumentationFindWidget* fi
|
||||
, d_ptr(new StandardDocumentationViewPrivate)
|
||||
{
|
||||
Q_D(StandardDocumentationView);
|
||||
|
||||
-
|
||||
+#if BUILD_DOC_VIEWER
|
||||
auto mainLayout = new QVBoxLayout(this);
|
||||
mainLayout->setContentsMargins(0, 0, 0, 0);
|
||||
@@ -156,7 +157,7 @@ index 969eb65..d13f568 100644
|
||||
|
||||
findWidget->setEnabled(true);
|
||||
connect(findWidget, &DocumentationFindWidget::searchRequested, this, &StandardDocumentationView::search);
|
||||
@@ -137,13 +154,16 @@ KDevelop::StandardDocumentationView::~StandardDocumentationView()
|
||||
@@ -137,13 +152,16 @@ KDevelop::StandardDocumentationView::~StandardDocumentationView()
|
||||
Q_D(StandardDocumentationView);
|
||||
|
||||
// Prevent getting a loadFinished() signal on destruction.
|
||||
@@ -173,7 +174,7 @@ index 969eb65..d13f568 100644
|
||||
QWebEnginePage::FindFlags ff = {};
|
||||
if(options & DocumentationFindWidget::Previous)
|
||||
ff |= QWebEnginePage::FindBackward;
|
||||
@@ -152,12 +172,14 @@ void StandardDocumentationView::search ( const QString& text, DocumentationFindW
|
||||
@@ -152,12 +170,14 @@ void StandardDocumentationView::search ( const QString& text, DocumentationFindW
|
||||
ff |= QWebEnginePage::FindCaseSensitively;
|
||||
|
||||
d->m_view->page()->findText(text, ff);
|
||||
@@ -188,7 +189,7 @@ index 969eb65..d13f568 100644
|
||||
QWebEnginePage::FindFlags findFlags;
|
||||
|
||||
if (options & DocumentationFindWidget::MatchCase)
|
||||
@@ -173,6 +195,7 @@ void StandardDocumentationView::searchIncremental(const QString& text, Documenta
|
||||
@@ -173,6 +193,7 @@ void StandardDocumentationView::searchIncremental(const QString& text, Documenta
|
||||
// casesensitivity, that global matches are not updated and the ones with non-matching casing
|
||||
// still active. no workaround so far.
|
||||
d->m_view->page()->findText(text, findFlags);
|
||||
@@ -196,7 +197,7 @@ index 969eb65..d13f568 100644
|
||||
}
|
||||
|
||||
void StandardDocumentationView::finishSearch()
|
||||
@@ -180,7 +203,9 @@ void StandardDocumentationView::finishSearch()
|
||||
@@ -180,7 +201,9 @@ void StandardDocumentationView::finishSearch()
|
||||
Q_D(StandardDocumentationView);
|
||||
|
||||
// passing empty string to reset search, as told in API docs
|
||||
@@ -206,7 +207,7 @@ index 969eb65..d13f568 100644
|
||||
}
|
||||
|
||||
void StandardDocumentationView::initZoom(const QString& configSubGroup)
|
||||
@@ -236,6 +261,7 @@ void StandardDocumentationView::setOverrideCssCode(const QByteArray& cssCode)
|
||||
@@ -235,6 +258,7 @@ void StandardDocumentationView::setOverrideCssCode(const QByteArray& cssCode)
|
||||
{
|
||||
Q_D(StandardDocumentationView);
|
||||
|
||||
@@ -214,7 +215,7 @@ index 969eb65..d13f568 100644
|
||||
const auto scriptName = QStringLiteral("OverrideCss");
|
||||
auto& scripts = d->m_view->page()->scripts();
|
||||
|
||||
@@ -269,20 +295,25 @@ void StandardDocumentationView::setOverrideCssCode(const QByteArray& cssCode)
|
||||
@@ -268,20 +292,25 @@ void StandardDocumentationView::setOverrideCssCode(const QByteArray& cssCode)
|
||||
script.setWorldId(QWebEngineScript::ApplicationWorld);
|
||||
|
||||
scripts.insert(script);
|
||||
@@ -240,7 +241,7 @@ index 969eb65..d13f568 100644
|
||||
}
|
||||
|
||||
void KDevelop::StandardDocumentationView::installUrlSchemeHandler(const QByteArray& scheme,
|
||||
@@ -290,25 +321,30 @@ void KDevelop::StandardDocumentationView::installUrlSchemeHandler(const QByteArr
|
||||
@@ -289,25 +318,30 @@ void KDevelop::StandardDocumentationView::installUrlSchemeHandler(const QByteArr
|
||||
{
|
||||
Q_D(StandardDocumentationView);
|
||||
|
||||
@@ -268,12 +269,12 @@ index 969eb65..d13f568 100644
|
||||
Q_D(StandardDocumentationView);
|
||||
|
||||
+#if BUILD_DOC_VIEWER
|
||||
auto menu = new QMenu(this);
|
||||
auto copyAction = d->m_view->pageAction(QWebEnginePage::Copy);
|
||||
if (!copyAction) {
|
||||
return nullptr;
|
||||
@@ -318,12 +354,16 @@ QMenu* StandardDocumentationView::createStandardContextMenu()
|
||||
auto* const menu = new QMenu(this);
|
||||
menu->addAction(copyAction);
|
||||
if (copyAction) {
|
||||
@@ -315,12 +349,16 @@ QMenu* StandardDocumentationView::createStandardContextMenu()
|
||||
menu->addAction(copyAction);
|
||||
}
|
||||
return menu;
|
||||
+#else
|
||||
+ return nullptr;
|
||||
@@ -288,7 +289,7 @@ index 969eb65..d13f568 100644
|
||||
if (object == d->m_view) {
|
||||
/* HACK / Workaround for QTBUG-43602
|
||||
* Need to set an eventFilter on the child of WebengineView because it swallows
|
||||
@@ -362,6 +402,9 @@ bool StandardDocumentationView::eventFilter(QObject* object, QEvent* event)
|
||||
@@ -359,6 +397,9 @@ bool StandardDocumentationView::eventFilter(QObject* object, QEvent* event)
|
||||
}
|
||||
}
|
||||
return QWidget::eventFilter(object, event);
|
||||
@@ -298,7 +299,7 @@ index 969eb65..d13f568 100644
|
||||
}
|
||||
|
||||
void StandardDocumentationView::contextMenuEvent(QContextMenuEvent* event)
|
||||
@@ -379,7 +422,9 @@ void StandardDocumentationView::updateZoomFactor(double zoomFactor)
|
||||
@@ -377,7 +418,9 @@ void StandardDocumentationView::updateZoomFactor(double zoomFactor)
|
||||
{
|
||||
Q_D(StandardDocumentationView);
|
||||
|
||||
Reference in New Issue
Block a user