qt5base-lts/tests/auto/tools/uic/baseline/cookiesexceptions.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

184 lines
7.1 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'cookiesexceptions.ui'
**
** Created: Fri Sep 4 10:17:13 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 COOKIESEXCEPTIONS_H
#define COOKIESEXCEPTIONS_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include "edittableview.h"
#include "searchlineedit.h"
QT_BEGIN_NAMESPACE
class Ui_CookiesExceptionsDialog
{
public:
QVBoxLayout *vboxLayout;
QGroupBox *newExceptionGroupBox;
QGridLayout *gridLayout;
QHBoxLayout *hboxLayout;
QLabel *label;
QLineEdit *domainLineEdit;
QHBoxLayout *hboxLayout1;
QSpacerItem *spacerItem;
QPushButton *blockButton;
QPushButton *allowForSessionButton;
QPushButton *allowButton;
QGroupBox *ExceptionsGroupBox;
QGridLayout *gridLayout1;
QSpacerItem *spacerItem1;
SearchLineEdit *search;
EditTableView *exceptionTable;
QPushButton *removeButton;
QPushButton *removeAllButton;
QSpacerItem *spacerItem2;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *CookiesExceptionsDialog)
{
if (CookiesExceptionsDialog->objectName().isEmpty())
CookiesExceptionsDialog->setObjectName(QStringLiteral("CookiesExceptionsDialog"));
CookiesExceptionsDialog->resize(466, 446);
vboxLayout = new QVBoxLayout(CookiesExceptionsDialog);
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
newExceptionGroupBox = new QGroupBox(CookiesExceptionsDialog);
newExceptionGroupBox->setObjectName(QStringLiteral("newExceptionGroupBox"));
gridLayout = new QGridLayout(newExceptionGroupBox);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
label = new QLabel(newExceptionGroupBox);
label->setObjectName(QStringLiteral("label"));
hboxLayout->addWidget(label);
domainLineEdit = new QLineEdit(newExceptionGroupBox);
domainLineEdit->setObjectName(QStringLiteral("domainLineEdit"));
hboxLayout->addWidget(domainLineEdit);
gridLayout->addLayout(hboxLayout, 0, 0, 1, 1);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
spacerItem = new QSpacerItem(81, 25, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(spacerItem);
blockButton = new QPushButton(newExceptionGroupBox);
blockButton->setObjectName(QStringLiteral("blockButton"));
blockButton->setEnabled(false);
hboxLayout1->addWidget(blockButton);
allowForSessionButton = new QPushButton(newExceptionGroupBox);
allowForSessionButton->setObjectName(QStringLiteral("allowForSessionButton"));
allowForSessionButton->setEnabled(false);
hboxLayout1->addWidget(allowForSessionButton);
allowButton = new QPushButton(newExceptionGroupBox);
allowButton->setObjectName(QStringLiteral("allowButton"));
allowButton->setEnabled(false);
hboxLayout1->addWidget(allowButton);
gridLayout->addLayout(hboxLayout1, 1, 0, 1, 1);
vboxLayout->addWidget(newExceptionGroupBox);
ExceptionsGroupBox = new QGroupBox(CookiesExceptionsDialog);
ExceptionsGroupBox->setObjectName(QStringLiteral("ExceptionsGroupBox"));
gridLayout1 = new QGridLayout(ExceptionsGroupBox);
gridLayout1->setObjectName(QStringLiteral("gridLayout1"));
spacerItem1 = new QSpacerItem(252, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout1->addItem(spacerItem1, 0, 0, 1, 3);
search = new SearchLineEdit(ExceptionsGroupBox);
search->setObjectName(QStringLiteral("search"));
gridLayout1->addWidget(search, 0, 3, 1, 1);
exceptionTable = new EditTableView(ExceptionsGroupBox);
exceptionTable->setObjectName(QStringLiteral("exceptionTable"));
gridLayout1->addWidget(exceptionTable, 1, 0, 1, 4);
removeButton = new QPushButton(ExceptionsGroupBox);
removeButton->setObjectName(QStringLiteral("removeButton"));
gridLayout1->addWidget(removeButton, 2, 0, 1, 1);
removeAllButton = new QPushButton(ExceptionsGroupBox);
removeAllButton->setObjectName(QStringLiteral("removeAllButton"));
gridLayout1->addWidget(removeAllButton, 2, 1, 1, 1);
spacerItem2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout1->addItem(spacerItem2, 2, 2, 1, 2);
vboxLayout->addWidget(ExceptionsGroupBox);
buttonBox = new QDialogButtonBox(CookiesExceptionsDialog);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Ok);
vboxLayout->addWidget(buttonBox);
retranslateUi(CookiesExceptionsDialog);
QObject::connect(buttonBox, SIGNAL(accepted()), CookiesExceptionsDialog, SLOT(accept()));
QMetaObject::connectSlotsByName(CookiesExceptionsDialog);
} // setupUi
void retranslateUi(QDialog *CookiesExceptionsDialog)
{
CookiesExceptionsDialog->setWindowTitle(QApplication::translate("CookiesExceptionsDialog", "Cookie Exceptions", 0, QApplication::UnicodeUTF8));
newExceptionGroupBox->setTitle(QApplication::translate("CookiesExceptionsDialog", "New Exception", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("CookiesExceptionsDialog", "Domain:", 0, QApplication::UnicodeUTF8));
blockButton->setText(QApplication::translate("CookiesExceptionsDialog", "Block", 0, QApplication::UnicodeUTF8));
allowForSessionButton->setText(QApplication::translate("CookiesExceptionsDialog", "Allow For Session", 0, QApplication::UnicodeUTF8));
allowButton->setText(QApplication::translate("CookiesExceptionsDialog", "Allow", 0, QApplication::UnicodeUTF8));
ExceptionsGroupBox->setTitle(QApplication::translate("CookiesExceptionsDialog", "Exceptions", 0, QApplication::UnicodeUTF8));
removeButton->setText(QApplication::translate("CookiesExceptionsDialog", "&Remove", 0, QApplication::UnicodeUTF8));
removeAllButton->setText(QApplication::translate("CookiesExceptionsDialog", "Remove &All", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class CookiesExceptionsDialog: public Ui_CookiesExceptionsDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // COOKIESEXCEPTIONS_H