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

View File

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