📄 fix-khtmlview-for-qtembedded.patch
字号:
--- khtmlview.cpp.orig 2005-12-12 18:00:07.000000000 +0100+++ khtmlview.cpp 2005-12-13 11:19:42.000000000 +0100@@ -489,7 +489,9 @@ KHTMLView::KHTMLView( KHTMLPart *part, Q // initialize QScrollView enableClipper(true); // hack to get unclipped painting on the viewport.+#ifndef Q_WS_QWS static_cast<KHTMLView *>(static_cast<QWidget *>(viewport()))->setWFlags(WPaintUnclipped);+#endif setResizePolicy(Manual); viewport()->setMouseTracking(true);--- rendering/render_replaced.cpp.orig 2005-10-10 00:01:26.000000000 +0200+++ rendering/render_replaced.cpp 2006-01-08 01:18:57.000000000 +0100@@ -584,7 +584,13 @@ void RenderWidget::paintWidget(PaintInfo copyWidget(r, p, widget, tx, ty); QSharedDoubleBuffer::setDisabled(dsbld); +#ifdef Q_WS_QWS+ // This breaks the widget z-order, but it allows the view to work without+ // the WPaintUnclipped hack+ allowWidgetPaintEvents = true;+#else allowWidgetPaintEvents = false;+#endif } bool RenderWidget::eventFilter(QObject* /*o*/, QEvent* e)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -