49b08f96e8
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>
84 lines
2.7 KiB
C++
84 lines
2.7 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'gridalignment.ui'
|
|
**
|
|
** Created: Fri Oct 22 14:33:59 2010
|
|
** by: Qt User Interface Compiler version 5.0.0
|
|
**
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
********************************************************************************/
|
|
|
|
#ifndef GRIDALIGNMENT_H
|
|
#define GRIDALIGNMENT_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAction>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtWidgets/QGridLayout>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QPushButton>
|
|
#include <QtWidgets/QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_Form
|
|
{
|
|
public:
|
|
QGridLayout *gridLayout;
|
|
QPushButton *pushButton;
|
|
QPushButton *pushButton_3;
|
|
QPushButton *pushButton_2;
|
|
QPushButton *pushButton_4;
|
|
|
|
void setupUi(QWidget *Form)
|
|
{
|
|
if (Form->objectName().isEmpty())
|
|
Form->setObjectName(QStringLiteral("Form"));
|
|
Form->resize(279, 163);
|
|
gridLayout = new QGridLayout(Form);
|
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
|
pushButton = new QPushButton(Form);
|
|
pushButton->setObjectName(QStringLiteral("pushButton"));
|
|
|
|
gridLayout->addWidget(pushButton, 0, 0, 1, 1, Qt::AlignLeft);
|
|
|
|
pushButton_3 = new QPushButton(Form);
|
|
pushButton_3->setObjectName(QStringLiteral("pushButton_3"));
|
|
|
|
gridLayout->addWidget(pushButton_3, 0, 1, 1, 1, Qt::AlignTop);
|
|
|
|
pushButton_2 = new QPushButton(Form);
|
|
pushButton_2->setObjectName(QStringLiteral("pushButton_2"));
|
|
|
|
gridLayout->addWidget(pushButton_2, 1, 0, 1, 1, Qt::AlignRight);
|
|
|
|
pushButton_4 = new QPushButton(Form);
|
|
pushButton_4->setObjectName(QStringLiteral("pushButton_4"));
|
|
|
|
gridLayout->addWidget(pushButton_4, 1, 1, 1, 1, Qt::AlignBottom);
|
|
|
|
|
|
retranslateUi(Form);
|
|
|
|
QMetaObject::connectSlotsByName(Form);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QWidget *Form)
|
|
{
|
|
Form->setWindowTitle(QApplication::translate("Form", "Form", 0, QApplication::UnicodeUTF8));
|
|
pushButton->setText(QApplication::translate("Form", "Left", 0, QApplication::UnicodeUTF8));
|
|
pushButton_3->setText(QApplication::translate("Form", "Top", 0, QApplication::UnicodeUTF8));
|
|
pushButton_2->setText(QApplication::translate("Form", "Right", 0, QApplication::UnicodeUTF8));
|
|
pushButton_4->setText(QApplication::translate("Form", "Bottom", 0, QApplication::UnicodeUTF8));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class Form: public Ui_Form {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // GRIDALIGNMENT_H
|