qt5base-lts/tests/auto/tools/uic/baseline/sslerrors.ui.h
Marc Mutz 49b08f96e8 uic: use QStringLiteral() instead of QString::fromUtf8() where applicable
Many (most?) strings written aren't in fact UTF-8, and we can check at
compile-time which are and which aren't, so don't hard-code fromUtf8()
but use the much more efficient QStringLiteral() where applicable.

This is low-hanging fruit. This patch only optimises US-ASCII string
literals, not those that are latin-1 or even UTF-8, because that would
require more extensive changes to the original fixString() function.

Likewise, there are also other calls to QString::fromUtf8() being
generated (e.g. in the pixmap code) that could benefit from being
turned into QStringLiterals, but their code paths are more involved
than those this patch fixes.

This patch at least suffices in turning all the setObjectName()
arguments into QStringLiterals, which was the main goal.

The autotest baseline has been updated with the new expected results.

Change-Id: Ic1ef67f500f9ff92d36164d515f4e004ef2a10bc
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2012-02-20 15:17:08 +01:00

112 lines
4.5 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'sslerrors.ui'
**
** Created: Fri Sep 4 10:17:14 2009
** by: Qt User Interface Compiler version 4.6.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef SSLERRORS_H
#define SSLERRORS_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_SslErrors
{
public:
QVBoxLayout *vboxLayout;
QLabel *label;
QListWidget *sslErrorList;
QHBoxLayout *hboxLayout;
QPushButton *certificateChainButton;
QSpacerItem *spacerItem;
QPushButton *pushButton;
QPushButton *pushButton_2;
void setupUi(QDialog *SslErrors)
{
if (SslErrors->objectName().isEmpty())
SslErrors->setObjectName(QStringLiteral("SslErrors"));
SslErrors->resize(371, 216);
vboxLayout = new QVBoxLayout(SslErrors);
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
label = new QLabel(SslErrors);
label->setObjectName(QStringLiteral("label"));
label->setWordWrap(true);
vboxLayout->addWidget(label);
sslErrorList = new QListWidget(SslErrors);
sslErrorList->setObjectName(QStringLiteral("sslErrorList"));
vboxLayout->addWidget(sslErrorList);
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
certificateChainButton = new QPushButton(SslErrors);
certificateChainButton->setObjectName(QStringLiteral("certificateChainButton"));
certificateChainButton->setAutoDefault(false);
hboxLayout->addWidget(certificateChainButton);
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
pushButton = new QPushButton(SslErrors);
pushButton->setObjectName(QStringLiteral("pushButton"));
hboxLayout->addWidget(pushButton);
pushButton_2 = new QPushButton(SslErrors);
pushButton_2->setObjectName(QStringLiteral("pushButton_2"));
hboxLayout->addWidget(pushButton_2);
vboxLayout->addLayout(hboxLayout);
retranslateUi(SslErrors);
QObject::connect(pushButton, SIGNAL(clicked()), SslErrors, SLOT(accept()));
QObject::connect(pushButton_2, SIGNAL(clicked()), SslErrors, SLOT(reject()));
QMetaObject::connectSlotsByName(SslErrors);
} // setupUi
void retranslateUi(QDialog *SslErrors)
{
SslErrors->setWindowTitle(QApplication::translate("SslErrors", "Unable To Validate The Connection", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("SslErrors", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600; color:#ff0000;\">Warning</span><span style=\" color:#ff0000;\">:</span><span style=\" color:#000000;\"> One or more errors with this connection prevent validating the authenticity of the host you are connecting to. Please review the following list of errors, and click </span><span style=\" color:#000000;\">Ignore</span><span style=\" color:#000000;\"> to continue, or </span><span style=\" color:#000000;\">Cancel</span><span style=\" color:#000000;\"> to abort the connection.</span></p></body></html>", 0, QApplication::UnicodeUTF8));
certificateChainButton->setText(QApplication::translate("SslErrors", "View Certificate Chain", 0, QApplication::UnicodeUTF8));
pushButton->setText(QApplication::translate("SslErrors", "Ignore", 0, QApplication::UnicodeUTF8));
pushButton_2->setText(QApplication::translate("SslErrors", "Cancel", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class SslErrors: public Ui_SslErrors {};
} // namespace Ui
QT_END_NAMESPACE
#endif // SSLERRORS_H