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

197 lines
8.8 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'backside.ui'
**
** Created: Fri Sep 4 10:17:12 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 BACKSIDE_H
#define BACKSIDE_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDateTimeEdit>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QSlider>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QTreeWidget>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_BackSide
{
public:
QVBoxLayout *verticalLayout_2;
QGroupBox *groupBox;
QGridLayout *gridLayout;
QLabel *label;
QLineEdit *hostName;
QLabel *label_2;
QLabel *label_3;
QHBoxLayout *horizontalLayout;
QSlider *horizontalSlider;
QSpinBox *spinBox;
QDateTimeEdit *dateTimeEdit;
QGroupBox *groupBox_2;
QHBoxLayout *horizontalLayout_2;
QTreeWidget *treeWidget;
void setupUi(QWidget *BackSide)
{
if (BackSide->objectName().isEmpty())
BackSide->setObjectName(QStringLiteral("BackSide"));
BackSide->resize(378, 385);
verticalLayout_2 = new QVBoxLayout(BackSide);
verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
groupBox = new QGroupBox(BackSide);
groupBox->setObjectName(QStringLiteral("groupBox"));
groupBox->setFlat(true);
groupBox->setCheckable(true);
gridLayout = new QGridLayout(groupBox);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
label = new QLabel(groupBox);
label->setObjectName(QStringLiteral("label"));
gridLayout->addWidget(label, 0, 0, 1, 1);
hostName = new QLineEdit(groupBox);
hostName->setObjectName(QStringLiteral("hostName"));
gridLayout->addWidget(hostName, 0, 1, 1, 1);
label_2 = new QLabel(groupBox);
label_2->setObjectName(QStringLiteral("label_2"));
gridLayout->addWidget(label_2, 1, 0, 1, 1);
label_3 = new QLabel(groupBox);
label_3->setObjectName(QStringLiteral("label_3"));
gridLayout->addWidget(label_3, 2, 0, 1, 1);
horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
horizontalSlider = new QSlider(groupBox);
horizontalSlider->setObjectName(QStringLiteral("horizontalSlider"));
horizontalSlider->setValue(42);
horizontalSlider->setOrientation(Qt::Horizontal);
horizontalLayout->addWidget(horizontalSlider);
spinBox = new QSpinBox(groupBox);
spinBox->setObjectName(QStringLiteral("spinBox"));
spinBox->setValue(42);
horizontalLayout->addWidget(spinBox);
gridLayout->addLayout(horizontalLayout, 2, 1, 1, 1);
dateTimeEdit = new QDateTimeEdit(groupBox);
dateTimeEdit->setObjectName(QStringLiteral("dateTimeEdit"));
gridLayout->addWidget(dateTimeEdit, 1, 1, 1, 1);
verticalLayout_2->addWidget(groupBox);
groupBox_2 = new QGroupBox(BackSide);
groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
groupBox_2->setFlat(true);
groupBox_2->setCheckable(true);
horizontalLayout_2 = new QHBoxLayout(groupBox_2);
horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
treeWidget = new QTreeWidget(groupBox_2);
QTreeWidgetItem *__qtreewidgetitem = new QTreeWidgetItem(treeWidget);
QTreeWidgetItem *__qtreewidgetitem1 = new QTreeWidgetItem(__qtreewidgetitem);
new QTreeWidgetItem(__qtreewidgetitem1);
new QTreeWidgetItem(__qtreewidgetitem1);
new QTreeWidgetItem(__qtreewidgetitem1);
QTreeWidgetItem *__qtreewidgetitem2 = new QTreeWidgetItem(treeWidget);
QTreeWidgetItem *__qtreewidgetitem3 = new QTreeWidgetItem(__qtreewidgetitem2);
new QTreeWidgetItem(__qtreewidgetitem3);
QTreeWidgetItem *__qtreewidgetitem4 = new QTreeWidgetItem(treeWidget);
QTreeWidgetItem *__qtreewidgetitem5 = new QTreeWidgetItem(__qtreewidgetitem4);
new QTreeWidgetItem(__qtreewidgetitem5);
treeWidget->setObjectName(QStringLiteral("treeWidget"));
horizontalLayout_2->addWidget(treeWidget);
verticalLayout_2->addWidget(groupBox_2);
QWidget::setTabOrder(groupBox, hostName);
QWidget::setTabOrder(hostName, dateTimeEdit);
QWidget::setTabOrder(dateTimeEdit, horizontalSlider);
QWidget::setTabOrder(horizontalSlider, spinBox);
QWidget::setTabOrder(spinBox, groupBox_2);
QWidget::setTabOrder(groupBox_2, treeWidget);
retranslateUi(BackSide);
QObject::connect(horizontalSlider, SIGNAL(valueChanged(int)), spinBox, SLOT(setValue(int)));
QObject::connect(spinBox, SIGNAL(valueChanged(int)), horizontalSlider, SLOT(setValue(int)));
QMetaObject::connectSlotsByName(BackSide);
} // setupUi
void retranslateUi(QWidget *BackSide)
{
BackSide->setWindowTitle(QApplication::translate("BackSide", "BackSide", 0, QApplication::UnicodeUTF8));
groupBox->setTitle(QApplication::translate("BackSide", "Settings", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("BackSide", "Title:", 0, QApplication::UnicodeUTF8));
hostName->setText(QApplication::translate("BackSide", "Pad Navigator Example", 0, QApplication::UnicodeUTF8));
label_2->setText(QApplication::translate("BackSide", "Modified:", 0, QApplication::UnicodeUTF8));
label_3->setText(QApplication::translate("BackSide", "Extent", 0, QApplication::UnicodeUTF8));
groupBox_2->setTitle(QApplication::translate("BackSide", "Other input", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem = treeWidget->headerItem();
___qtreewidgetitem->setText(0, QApplication::translate("BackSide", "Widgets On Graphics View", 0, QApplication::UnicodeUTF8));
const bool __sortingEnabled = treeWidget->isSortingEnabled();
treeWidget->setSortingEnabled(false);
QTreeWidgetItem *___qtreewidgetitem1 = treeWidget->topLevelItem(0);
___qtreewidgetitem1->setText(0, QApplication::translate("BackSide", "QGraphicsProxyWidget", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem2 = ___qtreewidgetitem1->child(0);
___qtreewidgetitem2->setText(0, QApplication::translate("BackSide", "QGraphicsWidget", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem3 = ___qtreewidgetitem2->child(0);
___qtreewidgetitem3->setText(0, QApplication::translate("BackSide", "QObject", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem4 = ___qtreewidgetitem2->child(1);
___qtreewidgetitem4->setText(0, QApplication::translate("BackSide", "QGraphicsItem", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem5 = ___qtreewidgetitem2->child(2);
___qtreewidgetitem5->setText(0, QApplication::translate("BackSide", "QGraphicsLayoutItem", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem6 = treeWidget->topLevelItem(1);
___qtreewidgetitem6->setText(0, QApplication::translate("BackSide", "QGraphicsGridLayout", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem7 = ___qtreewidgetitem6->child(0);
___qtreewidgetitem7->setText(0, QApplication::translate("BackSide", "QGraphicsLayout", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem8 = ___qtreewidgetitem7->child(0);
___qtreewidgetitem8->setText(0, QApplication::translate("BackSide", "QGraphicsLayoutItem", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem9 = treeWidget->topLevelItem(2);
___qtreewidgetitem9->setText(0, QApplication::translate("BackSide", "QGraphicsLinearLayout", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem10 = ___qtreewidgetitem9->child(0);
___qtreewidgetitem10->setText(0, QApplication::translate("BackSide", "QGraphicsLayout", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem11 = ___qtreewidgetitem10->child(0);
___qtreewidgetitem11->setText(0, QApplication::translate("BackSide", "QGraphicsLayoutItem", 0, QApplication::UnicodeUTF8));
treeWidget->setSortingEnabled(__sortingEnabled);
} // retranslateUi
};
namespace Ui {
class BackSide: public Ui_BackSide {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BACKSIDE_H