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

177 lines
7.2 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'qtresourceeditordialog.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 QTRESOURCEEDITORDIALOG_H
#define QTRESOURCEEDITORDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSplitter>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QTreeView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_QtResourceEditorDialog
{
public:
QVBoxLayout *verticalLayout;
QSplitter *splitter;
QWidget *layoutWidget;
QGridLayout *gridLayout;
QListWidget *qrcFileList;
QToolButton *newQrcButton;
QToolButton *removeQrcButton;
QSpacerItem *spacerItem;
QToolButton *importQrcButton;
QWidget *widget;
QGridLayout *gridLayout1;
QTreeView *resourceTreeView;
QToolButton *newResourceButton;
QToolButton *addResourceButton;
QToolButton *removeResourceButton;
QSpacerItem *horizontalSpacer;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *QtResourceEditorDialog)
{
if (QtResourceEditorDialog->objectName().isEmpty())
QtResourceEditorDialog->setObjectName(QStringLiteral("QtResourceEditorDialog"));
QtResourceEditorDialog->resize(469, 317);
verticalLayout = new QVBoxLayout(QtResourceEditorDialog);
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
splitter = new QSplitter(QtResourceEditorDialog);
splitter->setObjectName(QStringLiteral("splitter"));
splitter->setOrientation(Qt::Horizontal);
layoutWidget = new QWidget(splitter);
layoutWidget->setObjectName(QStringLiteral("layoutWidget"));
gridLayout = new QGridLayout(layoutWidget);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
gridLayout->setContentsMargins(0, 0, 0, 0);
qrcFileList = new QListWidget(layoutWidget);
qrcFileList->setObjectName(QStringLiteral("qrcFileList"));
QSizePolicy sizePolicy(QSizePolicy::Ignored, QSizePolicy::Expanding);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(qrcFileList->sizePolicy().hasHeightForWidth());
qrcFileList->setSizePolicy(sizePolicy);
gridLayout->addWidget(qrcFileList, 0, 0, 1, 4);
newQrcButton = new QToolButton(layoutWidget);
newQrcButton->setObjectName(QStringLiteral("newQrcButton"));
gridLayout->addWidget(newQrcButton, 1, 0, 1, 1);
removeQrcButton = new QToolButton(layoutWidget);
removeQrcButton->setObjectName(QStringLiteral("removeQrcButton"));
gridLayout->addWidget(removeQrcButton, 1, 2, 1, 1);
spacerItem = new QSpacerItem(21, 20, QSizePolicy::Ignored, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem, 1, 3, 1, 1);
importQrcButton = new QToolButton(layoutWidget);
importQrcButton->setObjectName(QStringLiteral("importQrcButton"));
gridLayout->addWidget(importQrcButton, 1, 1, 1, 1);
splitter->addWidget(layoutWidget);
widget = new QWidget(splitter);
widget->setObjectName(QStringLiteral("widget"));
gridLayout1 = new QGridLayout(widget);
gridLayout1->setObjectName(QStringLiteral("gridLayout1"));
gridLayout1->setContentsMargins(0, 0, 0, 0);
resourceTreeView = new QTreeView(widget);
resourceTreeView->setObjectName(QStringLiteral("resourceTreeView"));
gridLayout1->addWidget(resourceTreeView, 0, 0, 1, 4);
newResourceButton = new QToolButton(widget);
newResourceButton->setObjectName(QStringLiteral("newResourceButton"));
gridLayout1->addWidget(newResourceButton, 1, 0, 1, 1);
addResourceButton = new QToolButton(widget);
addResourceButton->setObjectName(QStringLiteral("addResourceButton"));
gridLayout1->addWidget(addResourceButton, 1, 1, 1, 1);
removeResourceButton = new QToolButton(widget);
removeResourceButton->setObjectName(QStringLiteral("removeResourceButton"));
gridLayout1->addWidget(removeResourceButton, 1, 2, 1, 1);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout1->addItem(horizontalSpacer, 1, 3, 1, 1);
splitter->addWidget(widget);
verticalLayout->addWidget(splitter);
buttonBox = new QDialogButtonBox(QtResourceEditorDialog);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
verticalLayout->addWidget(buttonBox);
retranslateUi(QtResourceEditorDialog);
QObject::connect(buttonBox, SIGNAL(accepted()), QtResourceEditorDialog, SLOT(accept()));
QObject::connect(buttonBox, SIGNAL(rejected()), QtResourceEditorDialog, SLOT(reject()));
QMetaObject::connectSlotsByName(QtResourceEditorDialog);
} // setupUi
void retranslateUi(QDialog *QtResourceEditorDialog)
{
QtResourceEditorDialog->setWindowTitle(QApplication::translate("QtResourceEditorDialog", "Dialog", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
newQrcButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "New File", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
newQrcButton->setText(QApplication::translate("QtResourceEditorDialog", "N", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
removeQrcButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "Remove File", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
removeQrcButton->setText(QApplication::translate("QtResourceEditorDialog", "R", 0, QApplication::UnicodeUTF8));
importQrcButton->setText(QApplication::translate("QtResourceEditorDialog", "I", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
newResourceButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "New Resource", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
newResourceButton->setText(QApplication::translate("QtResourceEditorDialog", "N", 0, QApplication::UnicodeUTF8));
addResourceButton->setText(QApplication::translate("QtResourceEditorDialog", "A", 0, QApplication::UnicodeUTF8));
#ifndef QT_NO_TOOLTIP
removeResourceButton->setToolTip(QApplication::translate("QtResourceEditorDialog", "Remove Resource or File", 0, QApplication::UnicodeUTF8));
#endif // QT_NO_TOOLTIP
removeResourceButton->setText(QApplication::translate("QtResourceEditorDialog", "R", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class QtResourceEditorDialog: public Ui_QtResourceEditorDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // QTRESOURCEEDITORDIALOG_H