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>
127 lines
4.4 KiB
C++
127 lines
4.4 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'pathpage.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 PATHPAGE_H
|
|
#define PATHPAGE_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAction>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtWidgets/QGridLayout>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QListWidget>
|
|
#include <QtWidgets/QPushButton>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include <QtWidgets/QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_PathPage
|
|
{
|
|
public:
|
|
QGridLayout *gridLayout;
|
|
QLabel *label_2;
|
|
QLineEdit *filterLineEdit;
|
|
QSpacerItem *spacerItem;
|
|
QLabel *label;
|
|
QListWidget *pathListWidget;
|
|
QPushButton *addButton;
|
|
QPushButton *removeButton;
|
|
QSpacerItem *spacerItem1;
|
|
QSpacerItem *spacerItem2;
|
|
|
|
void setupUi(QWidget *PathPage)
|
|
{
|
|
if (PathPage->objectName().isEmpty())
|
|
PathPage->setObjectName(QStringLiteral("PathPage"));
|
|
PathPage->resize(417, 243);
|
|
gridLayout = new QGridLayout(PathPage);
|
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
|
label_2 = new QLabel(PathPage);
|
|
label_2->setObjectName(QStringLiteral("label_2"));
|
|
QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
|
sizePolicy.setHorizontalStretch(0);
|
|
sizePolicy.setVerticalStretch(0);
|
|
sizePolicy.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
|
|
label_2->setSizePolicy(sizePolicy);
|
|
|
|
gridLayout->addWidget(label_2, 0, 0, 1, 1);
|
|
|
|
filterLineEdit = new QLineEdit(PathPage);
|
|
filterLineEdit->setObjectName(QStringLiteral("filterLineEdit"));
|
|
|
|
gridLayout->addWidget(filterLineEdit, 0, 1, 1, 2);
|
|
|
|
spacerItem = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Fixed);
|
|
|
|
gridLayout->addItem(spacerItem, 1, 1, 1, 1);
|
|
|
|
label = new QLabel(PathPage);
|
|
label->setObjectName(QStringLiteral("label"));
|
|
|
|
gridLayout->addWidget(label, 2, 0, 1, 3);
|
|
|
|
pathListWidget = new QListWidget(PathPage);
|
|
pathListWidget->setObjectName(QStringLiteral("pathListWidget"));
|
|
|
|
gridLayout->addWidget(pathListWidget, 3, 0, 3, 3);
|
|
|
|
addButton = new QPushButton(PathPage);
|
|
addButton->setObjectName(QStringLiteral("addButton"));
|
|
QSizePolicy sizePolicy1(QSizePolicy::Maximum, QSizePolicy::Fixed);
|
|
sizePolicy1.setHorizontalStretch(0);
|
|
sizePolicy1.setVerticalStretch(0);
|
|
sizePolicy1.setHeightForWidth(addButton->sizePolicy().hasHeightForWidth());
|
|
addButton->setSizePolicy(sizePolicy1);
|
|
|
|
gridLayout->addWidget(addButton, 3, 3, 1, 1);
|
|
|
|
removeButton = new QPushButton(PathPage);
|
|
removeButton->setObjectName(QStringLiteral("removeButton"));
|
|
sizePolicy1.setHeightForWidth(removeButton->sizePolicy().hasHeightForWidth());
|
|
removeButton->setSizePolicy(sizePolicy1);
|
|
|
|
gridLayout->addWidget(removeButton, 4, 3, 1, 1);
|
|
|
|
spacerItem1 = new QSpacerItem(20, 51, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
gridLayout->addItem(spacerItem1, 5, 3, 1, 1);
|
|
|
|
spacerItem2 = new QSpacerItem(20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
gridLayout->addItem(spacerItem2, 6, 2, 1, 1);
|
|
|
|
|
|
retranslateUi(PathPage);
|
|
|
|
QMetaObject::connectSlotsByName(PathPage);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QWidget *PathPage)
|
|
{
|
|
PathPage->setWindowTitle(QApplication::translate("PathPage", "Form", 0, QApplication::UnicodeUTF8));
|
|
label_2->setText(QApplication::translate("PathPage", "File filters:", 0, QApplication::UnicodeUTF8));
|
|
label->setText(QApplication::translate("PathPage", "Documentation source file paths:", 0, QApplication::UnicodeUTF8));
|
|
addButton->setText(QApplication::translate("PathPage", "Add", 0, QApplication::UnicodeUTF8));
|
|
removeButton->setText(QApplication::translate("PathPage", "Remove", 0, QApplication::UnicodeUTF8));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class PathPage: public Ui_PathPage {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // PATHPAGE_H
|