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

128 lines
4.8 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'qtgradientview.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 QTGRADIENTVIEW_H
#define QTGRADIENTVIEW_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_QtGradientView
{
public:
QVBoxLayout *vboxLayout;
QHBoxLayout *hboxLayout;
QToolButton *newButton;
QToolButton *editButton;
QToolButton *renameButton;
QToolButton *removeButton;
QSpacerItem *spacerItem;
QListWidget *listWidget;
void setupUi(QWidget *QtGradientView)
{
if (QtGradientView->objectName().isEmpty())
QtGradientView->setObjectName(QStringLiteral("QtGradientView"));
QtGradientView->resize(484, 228);
vboxLayout = new QVBoxLayout(QtGradientView);
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
vboxLayout->setContentsMargins(0, 0, 0, 0);
hboxLayout = new QHBoxLayout();
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
newButton = new QToolButton(QtGradientView);
newButton->setObjectName(QStringLiteral("newButton"));
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(newButton->sizePolicy().hasHeightForWidth());
newButton->setSizePolicy(sizePolicy);
newButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
newButton->setAutoRaise(true);
hboxLayout->addWidget(newButton);
editButton = new QToolButton(QtGradientView);
editButton->setObjectName(QStringLiteral("editButton"));
sizePolicy.setHeightForWidth(editButton->sizePolicy().hasHeightForWidth());
editButton->setSizePolicy(sizePolicy);
editButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
editButton->setAutoRaise(true);
hboxLayout->addWidget(editButton);
renameButton = new QToolButton(QtGradientView);
renameButton->setObjectName(QStringLiteral("renameButton"));
sizePolicy.setHeightForWidth(renameButton->sizePolicy().hasHeightForWidth());
renameButton->setSizePolicy(sizePolicy);
renameButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
renameButton->setAutoRaise(true);
hboxLayout->addWidget(renameButton);
removeButton = new QToolButton(QtGradientView);
removeButton->setObjectName(QStringLiteral("removeButton"));
sizePolicy.setHeightForWidth(removeButton->sizePolicy().hasHeightForWidth());
removeButton->setSizePolicy(sizePolicy);
removeButton->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
removeButton->setAutoRaise(true);
hboxLayout->addWidget(removeButton);
spacerItem = new QSpacerItem(71, 26, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(spacerItem);
vboxLayout->addLayout(hboxLayout);
listWidget = new QListWidget(QtGradientView);
listWidget->setObjectName(QStringLiteral("listWidget"));
vboxLayout->addWidget(listWidget);
QWidget::setTabOrder(listWidget, newButton);
QWidget::setTabOrder(newButton, editButton);
QWidget::setTabOrder(editButton, renameButton);
QWidget::setTabOrder(renameButton, removeButton);
retranslateUi(QtGradientView);
QMetaObject::connectSlotsByName(QtGradientView);
} // setupUi
void retranslateUi(QWidget *QtGradientView)
{
QtGradientView->setWindowTitle(QApplication::translate("QtGradientView", "Gradient View", 0, QApplication::UnicodeUTF8));
newButton->setText(QApplication::translate("QtGradientView", "New...", 0, QApplication::UnicodeUTF8));
editButton->setText(QApplication::translate("QtGradientView", "Edit...", 0, QApplication::UnicodeUTF8));
renameButton->setText(QApplication::translate("QtGradientView", "Rename", 0, QApplication::UnicodeUTF8));
removeButton->setText(QApplication::translate("QtGradientView", "Remove", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class QtGradientView: public Ui_QtGradientView {};
} // namespace Ui
QT_END_NAMESPACE
#endif // QTGRADIENTVIEW_H