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>
134 lines
5.6 KiB
C++
134 lines
5.6 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'previewconfigurationwidget.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 PREVIEWCONFIGURATIONWIDGET_H
|
|
#define PREVIEWCONFIGURATIONWIDGET_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAction>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QButtonGroup>
|
|
#include <QtWidgets/QComboBox>
|
|
#include <QtWidgets/QFormLayout>
|
|
#include <QtWidgets/QGroupBox>
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QToolButton>
|
|
#include <textpropertyeditor_p.h>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_PreviewConfigurationWidget
|
|
{
|
|
public:
|
|
QFormLayout *formLayout;
|
|
QLabel *m_styleLabel;
|
|
QComboBox *m_styleCombo;
|
|
QLabel *m_appStyleSheetLabel;
|
|
QHBoxLayout *hboxLayout;
|
|
qdesigner_internal::TextPropertyEditor *m_appStyleSheetLineEdit;
|
|
QToolButton *m_appStyleSheetChangeButton;
|
|
QToolButton *m_appStyleSheetClearButton;
|
|
QLabel *m_skinLabel;
|
|
QHBoxLayout *hboxLayout1;
|
|
QComboBox *m_skinCombo;
|
|
QToolButton *m_skinRemoveButton;
|
|
|
|
void setupUi(QGroupBox *PreviewConfigurationWidget)
|
|
{
|
|
if (PreviewConfigurationWidget->objectName().isEmpty())
|
|
PreviewConfigurationWidget->setObjectName(QStringLiteral("PreviewConfigurationWidget"));
|
|
PreviewConfigurationWidget->setCheckable(true);
|
|
formLayout = new QFormLayout(PreviewConfigurationWidget);
|
|
formLayout->setObjectName(QStringLiteral("formLayout"));
|
|
m_styleLabel = new QLabel(PreviewConfigurationWidget);
|
|
m_styleLabel->setObjectName(QStringLiteral("m_styleLabel"));
|
|
|
|
formLayout->setWidget(0, QFormLayout::LabelRole, m_styleLabel);
|
|
|
|
m_styleCombo = new QComboBox(PreviewConfigurationWidget);
|
|
m_styleCombo->setObjectName(QStringLiteral("m_styleCombo"));
|
|
|
|
formLayout->setWidget(0, QFormLayout::FieldRole, m_styleCombo);
|
|
|
|
m_appStyleSheetLabel = new QLabel(PreviewConfigurationWidget);
|
|
m_appStyleSheetLabel->setObjectName(QStringLiteral("m_appStyleSheetLabel"));
|
|
|
|
formLayout->setWidget(1, QFormLayout::LabelRole, m_appStyleSheetLabel);
|
|
|
|
hboxLayout = new QHBoxLayout();
|
|
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
|
|
m_appStyleSheetLineEdit = new qdesigner_internal::TextPropertyEditor(PreviewConfigurationWidget);
|
|
m_appStyleSheetLineEdit->setObjectName(QStringLiteral("m_appStyleSheetLineEdit"));
|
|
m_appStyleSheetLineEdit->setMinimumSize(QSize(149, 0));
|
|
|
|
hboxLayout->addWidget(m_appStyleSheetLineEdit);
|
|
|
|
m_appStyleSheetChangeButton = new QToolButton(PreviewConfigurationWidget);
|
|
m_appStyleSheetChangeButton->setObjectName(QStringLiteral("m_appStyleSheetChangeButton"));
|
|
|
|
hboxLayout->addWidget(m_appStyleSheetChangeButton);
|
|
|
|
m_appStyleSheetClearButton = new QToolButton(PreviewConfigurationWidget);
|
|
m_appStyleSheetClearButton->setObjectName(QStringLiteral("m_appStyleSheetClearButton"));
|
|
|
|
hboxLayout->addWidget(m_appStyleSheetClearButton);
|
|
|
|
|
|
formLayout->setLayout(1, QFormLayout::FieldRole, hboxLayout);
|
|
|
|
m_skinLabel = new QLabel(PreviewConfigurationWidget);
|
|
m_skinLabel->setObjectName(QStringLiteral("m_skinLabel"));
|
|
|
|
formLayout->setWidget(2, QFormLayout::LabelRole, m_skinLabel);
|
|
|
|
hboxLayout1 = new QHBoxLayout();
|
|
hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
|
|
m_skinCombo = new QComboBox(PreviewConfigurationWidget);
|
|
m_skinCombo->setObjectName(QStringLiteral("m_skinCombo"));
|
|
|
|
hboxLayout1->addWidget(m_skinCombo);
|
|
|
|
m_skinRemoveButton = new QToolButton(PreviewConfigurationWidget);
|
|
m_skinRemoveButton->setObjectName(QStringLiteral("m_skinRemoveButton"));
|
|
|
|
hboxLayout1->addWidget(m_skinRemoveButton);
|
|
|
|
|
|
formLayout->setLayout(2, QFormLayout::FieldRole, hboxLayout1);
|
|
|
|
|
|
retranslateUi(PreviewConfigurationWidget);
|
|
|
|
QMetaObject::connectSlotsByName(PreviewConfigurationWidget);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QGroupBox *PreviewConfigurationWidget)
|
|
{
|
|
PreviewConfigurationWidget->setWindowTitle(QApplication::translate("PreviewConfigurationWidget", "Form", 0, QApplication::UnicodeUTF8));
|
|
PreviewConfigurationWidget->setTitle(QApplication::translate("PreviewConfigurationWidget", "Print/Preview Configuration", 0, QApplication::UnicodeUTF8));
|
|
m_styleLabel->setText(QApplication::translate("PreviewConfigurationWidget", "Style", 0, QApplication::UnicodeUTF8));
|
|
m_appStyleSheetLabel->setText(QApplication::translate("PreviewConfigurationWidget", "Style sheet", 0, QApplication::UnicodeUTF8));
|
|
m_appStyleSheetChangeButton->setText(QApplication::translate("PreviewConfigurationWidget", "...", 0, QApplication::UnicodeUTF8));
|
|
m_appStyleSheetClearButton->setText(QApplication::translate("PreviewConfigurationWidget", "...", 0, QApplication::UnicodeUTF8));
|
|
m_skinLabel->setText(QApplication::translate("PreviewConfigurationWidget", "Device skin", 0, QApplication::UnicodeUTF8));
|
|
m_skinRemoveButton->setText(QApplication::translate("PreviewConfigurationWidget", "...", 0, QApplication::UnicodeUTF8));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class PreviewConfigurationWidget: public Ui_PreviewConfigurationWidget {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // PREVIEWCONFIGURATIONWIDGET_H
|