This commit is contained in:
Martin Rotter 2024-08-05 10:23:46 +02:00
parent 9c6fab653b
commit a643c4acaa
3 changed files with 21 additions and 7 deletions

View File

@ -22,4 +22,10 @@
StandardFeedExpDetails::StandardFeedExpDetails(QWidget* parent) : QWidget(parent) { StandardFeedExpDetails::StandardFeedExpDetails(QWidget* parent) : QWidget(parent) {
m_ui.setupUi(this); m_ui.setupUi(this);
m_ui.m_helpDontUseRawXml->setHelpText(tr("Turning this setting ON might bring considerable performance boost when "
"fetching this feed, but only in some very specific conditions.\n\n"
"This setting is useful when raw XML parsing of the feed is very slow, this "
"happens for feed which do have very long contents."),
false);
} }

View File

@ -6,14 +6,17 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>360</width> <width>561</width>
<height>197</height> <height>357</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QFormLayout" name="formLayout"> <layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
<widget class="MultiFeedEditCheckBox" name="m_mcbDontUseRawXml"/>
</item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QCheckBox" name="m_cbDontUseRawXml"> <widget class="QCheckBox" name="m_cbDontUseRawXml">
<property name="text"> <property name="text">
@ -21,8 +24,8 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="1" column="0" colspan="2">
<widget class="MultiFeedEditCheckBox" name="m_mcbDontUseRawXml"/> <widget class="HelpSpoiler" name="m_helpDontUseRawXml" native="true"/>
</item> </item>
</layout> </layout>
</widget> </widget>
@ -32,6 +35,12 @@
<extends>QCheckBox</extends> <extends>QCheckBox</extends>
<header>multifeededitcheckbox.h</header> <header>multifeededitcheckbox.h</header>
</customwidget> </customwidget>
<customwidget>
<class>HelpSpoiler</class>
<extends>QWidget</extends>
<header>helpspoiler.h</header>
<container>1</container>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <connections/>

View File

@ -195,9 +195,8 @@
(qApp->web()->engineProfile()->httpUserAgent().toLocal8Bit() + QByteArrayLiteral(" ") + \ (qApp->web()->engineProfile()->httpUserAgent().toLocal8Bit() + QByteArrayLiteral(" ") + \
QByteArrayLiteral(APP_USERAGENT)) QByteArrayLiteral(APP_USERAGENT))
#else #else
#define HTTP_COMPLETE_USERAGENT \ #define HTTP_COMPLETE_USERAGENT \
(QByteArrayLiteral("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " \ (QByteArrayLiteral("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0 ") + \
"Chrome/122.0.0.0 Safari/537.36 ") + \
QByteArrayLiteral(APP_USERAGENT)) QByteArrayLiteral(APP_USERAGENT))
#endif #endif