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

170 lines
6.5 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'signalslotdialog.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 SIGNALSLOTDIALOG_H
#define SIGNALSLOTDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QListView>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
QT_BEGIN_NAMESPACE
class Ui_SignalSlotDialogClass
{
public:
QVBoxLayout *vboxLayout;
QGroupBox *slotGroupBox;
QVBoxLayout *vboxLayout1;
QListView *slotListView;
QHBoxLayout *hboxLayout;
QToolButton *addSlotButton;
QToolButton *removeSlotButton;
QSpacerItem *spacerItem;
QGroupBox *signalGroupBox;
QVBoxLayout *vboxLayout2;
QListView *signalListView;
QHBoxLayout *hboxLayout1;
QToolButton *addSignalButton;
QToolButton *removeSignalButton;
QSpacerItem *spacerItem1;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *SignalSlotDialogClass)
{
if (SignalSlotDialogClass->objectName().isEmpty())
SignalSlotDialogClass->setObjectName(QStringLiteral("SignalSlotDialogClass"));
SignalSlotDialogClass->resize(617, 535);
vboxLayout = new QVBoxLayout(SignalSlotDialogClass);
vboxLayout->setSpacing(6);
vboxLayout->setContentsMargins(11, 11, 11, 11);
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
slotGroupBox = new QGroupBox(SignalSlotDialogClass);
slotGroupBox->setObjectName(QStringLiteral("slotGroupBox"));
vboxLayout1 = new QVBoxLayout(slotGroupBox);
vboxLayout1->setSpacing(6);
vboxLayout1->setContentsMargins(11, 11, 11, 11);
vboxLayout1->setObjectName(QStringLiteral("vboxLayout1"));
slotListView = new QListView(slotGroupBox);
slotListView->setObjectName(QStringLiteral("slotListView"));
vboxLayout1->addWidget(slotListView);
hboxLayout = new QHBoxLayout();
hboxLayout->setSpacing(6);
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
addSlotButton = new QToolButton(slotGroupBox);
addSlotButton->setObjectName(QStringLiteral("addSlotButton"));
hboxLayout->addWidget(addSlotButton);
removeSlotButton = new QToolButton(slotGroupBox);
removeSlotButton->setObjectName(QStringLiteral("removeSlotButton"));
hboxLayout->addWidget(removeSlotButton);
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
vboxLayout1->addLayout(hboxLayout);
vboxLayout->addWidget(slotGroupBox);
signalGroupBox = new QGroupBox(SignalSlotDialogClass);
signalGroupBox->setObjectName(QStringLiteral("signalGroupBox"));
vboxLayout2 = new QVBoxLayout(signalGroupBox);
vboxLayout2->setSpacing(6);
vboxLayout2->setContentsMargins(11, 11, 11, 11);
vboxLayout2->setObjectName(QStringLiteral("vboxLayout2"));
signalListView = new QListView(signalGroupBox);
signalListView->setObjectName(QStringLiteral("signalListView"));
vboxLayout2->addWidget(signalListView);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setSpacing(6);
hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
addSignalButton = new QToolButton(signalGroupBox);
addSignalButton->setObjectName(QStringLiteral("addSignalButton"));
hboxLayout1->addWidget(addSignalButton);
removeSignalButton = new QToolButton(signalGroupBox);
removeSignalButton->setObjectName(QStringLiteral("removeSignalButton"));
hboxLayout1->addWidget(removeSignalButton);
spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout1->addItem(spacerItem1);
vboxLayout2->addLayout(hboxLayout1);
vboxLayout->addWidget(signalGroupBox);
buttonBox = new QDialogButtonBox(SignalSlotDialogClass);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
vboxLayout->addWidget(buttonBox);
retranslateUi(SignalSlotDialogClass);
QMetaObject::connectSlotsByName(SignalSlotDialogClass);
} // setupUi
void retranslateUi(QDialog *SignalSlotDialogClass)
{
SignalSlotDialogClass->setWindowTitle(QApplication::translate("SignalSlotDialogClass", "Signals and slots", 0, QApplication::UnicodeUTF8));
slotGroupBox->setTitle(QApplication::translate("SignalSlotDialogClass", "Slots", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
addSlotButton->setToolTip(QApplication::translate("SignalSlotDialogClass", "Add", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
addSlotButton->setText(QApplication::translate("SignalSlotDialogClass", "...", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
removeSlotButton->setToolTip(QApplication::translate("SignalSlotDialogClass", "Delete", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
removeSlotButton->setText(QApplication::translate("SignalSlotDialogClass", "...", 0, QApplication::UnicodeUTF8));
signalGroupBox->setTitle(QApplication::translate("SignalSlotDialogClass", "Signals", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
addSignalButton->setToolTip(QApplication::translate("SignalSlotDialogClass", "Add", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
addSignalButton->setText(QApplication::translate("SignalSlotDialogClass", "...", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
removeSignalButton->setToolTip(QApplication::translate("SignalSlotDialogClass", "Delete", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
removeSignalButton->setText(QApplication::translate("SignalSlotDialogClass", "...", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class SignalSlotDialogClass: public Ui_SignalSlotDialogClass {};
} // namespace Ui
QT_END_NAMESPACE
#endif // SIGNALSLOTDIALOG_H