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

254 lines
9.7 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'remotecontrol.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 REMOTECONTROL_H
#define REMOTECONTROL_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_RemoteControlClass
{
public:
QAction *actionQuit;
QWidget *centralWidget;
QGridLayout *gridLayout;
QLabel *label;
QLineEdit *startUrlLineEdit;
QPushButton *launchButton;
QSpacerItem *spacerItem;
QSpacerItem *spacerItem1;
QGroupBox *actionGroupBox;
QGridLayout *gridLayout1;
QLabel *label_2;
QHBoxLayout *hboxLayout;
QLineEdit *indexLineEdit;
QToolButton *indexButton;
QLabel *label_4;
QHBoxLayout *hboxLayout1;
QLineEdit *identifierLineEdit;
QToolButton *identifierButton;
QLabel *label_3;
QHBoxLayout *hboxLayout2;
QLineEdit *urlLineEdit;
QToolButton *urlButton;
QPushButton *syncContentsButton;
QSpacerItem *spacerItem2;
QCheckBox *contentsCheckBox;
QCheckBox *indexCheckBox;
QCheckBox *bookmarksCheckBox;
QMenuBar *menuBar;
QMenu *menuFile;
QStatusBar *statusBar;
void setupUi(QMainWindow *RemoteControlClass)
{
if (RemoteControlClass->objectName().isEmpty())
RemoteControlClass->setObjectName(QStringLiteral("RemoteControlClass"));
RemoteControlClass->resize(344, 364);
actionQuit = new QAction(RemoteControlClass);
actionQuit->setObjectName(QStringLiteral("actionQuit"));
centralWidget = new QWidget(RemoteControlClass);
centralWidget->setObjectName(QStringLiteral("centralWidget"));
gridLayout = new QGridLayout(centralWidget);
gridLayout->setSpacing(6);
gridLayout->setContentsMargins(11, 11, 11, 11);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
label = new QLabel(centralWidget);
label->setObjectName(QStringLiteral("label"));
gridLayout->addWidget(label, 0, 0, 1, 1);
startUrlLineEdit = new QLineEdit(centralWidget);
startUrlLineEdit->setObjectName(QStringLiteral("startUrlLineEdit"));
gridLayout->addWidget(startUrlLineEdit, 0, 1, 1, 2);
launchButton = new QPushButton(centralWidget);
launchButton->setObjectName(QStringLiteral("launchButton"));
gridLayout->addWidget(launchButton, 1, 1, 1, 1);
spacerItem = new QSpacerItem(101, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem, 1, 2, 1, 1);
spacerItem1 = new QSpacerItem(113, 16, QSizePolicy::Minimum, QSizePolicy::Fixed);
gridLayout->addItem(spacerItem1, 2, 1, 1, 1);
actionGroupBox = new QGroupBox(centralWidget);
actionGroupBox->setObjectName(QStringLiteral("actionGroupBox"));
actionGroupBox->setEnabled(false);
gridLayout1 = new QGridLayout(actionGroupBox);
gridLayout1->setSpacing(6);
gridLayout1->setContentsMargins(11, 11, 11, 11);
gridLayout1->setObjectName(QStringLiteral("gridLayout1"));
label_2 = new QLabel(actionGroupBox);
label_2->setObjectName(QStringLiteral("label_2"));
gridLayout1->addWidget(label_2, 0, 0, 1, 1);
hboxLayout = new QHBoxLayout();
hboxLayout->setSpacing(0);
hboxLayout->setObjectName(QStringLiteral("hboxLayout"));
indexLineEdit = new QLineEdit(actionGroupBox);
indexLineEdit->setObjectName(QStringLiteral("indexLineEdit"));
hboxLayout->addWidget(indexLineEdit);
indexButton = new QToolButton(actionGroupBox);
indexButton->setObjectName(QStringLiteral("indexButton"));
const QIcon icon = QIcon(QString::fromUtf8(":/remotecontrol/enter.png"));
indexButton->setIcon(icon);
hboxLayout->addWidget(indexButton);
gridLayout1->addLayout(hboxLayout, 0, 1, 1, 2);
label_4 = new QLabel(actionGroupBox);
label_4->setObjectName(QStringLiteral("label_4"));
gridLayout1->addWidget(label_4, 1, 0, 1, 1);
hboxLayout1 = new QHBoxLayout();
hboxLayout1->setSpacing(0);
hboxLayout1->setObjectName(QStringLiteral("hboxLayout1"));
identifierLineEdit = new QLineEdit(actionGroupBox);
identifierLineEdit->setObjectName(QStringLiteral("identifierLineEdit"));
hboxLayout1->addWidget(identifierLineEdit);
identifierButton = new QToolButton(actionGroupBox);
identifierButton->setObjectName(QStringLiteral("identifierButton"));
identifierButton->setIcon(icon);
hboxLayout1->addWidget(identifierButton);
gridLayout1->addLayout(hboxLayout1, 1, 1, 1, 2);
label_3 = new QLabel(actionGroupBox);
label_3->setObjectName(QStringLiteral("label_3"));
gridLayout1->addWidget(label_3, 2, 0, 1, 1);
hboxLayout2 = new QHBoxLayout();
hboxLayout2->setSpacing(0);
hboxLayout2->setObjectName(QStringLiteral("hboxLayout2"));
urlLineEdit = new QLineEdit(actionGroupBox);
urlLineEdit->setObjectName(QStringLiteral("urlLineEdit"));
hboxLayout2->addWidget(urlLineEdit);
urlButton = new QToolButton(actionGroupBox);
urlButton->setObjectName(QStringLiteral("urlButton"));
urlButton->setIcon(icon);
hboxLayout2->addWidget(urlButton);
gridLayout1->addLayout(hboxLayout2, 2, 1, 1, 2);
syncContentsButton = new QPushButton(actionGroupBox);
syncContentsButton->setObjectName(QStringLiteral("syncContentsButton"));
gridLayout1->addWidget(syncContentsButton, 3, 1, 1, 1);
spacerItem2 = new QSpacerItem(81, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout1->addItem(spacerItem2, 3, 2, 1, 1);
contentsCheckBox = new QCheckBox(actionGroupBox);
contentsCheckBox->setObjectName(QStringLiteral("contentsCheckBox"));
gridLayout1->addWidget(contentsCheckBox, 4, 0, 1, 3);
indexCheckBox = new QCheckBox(actionGroupBox);
indexCheckBox->setObjectName(QStringLiteral("indexCheckBox"));
gridLayout1->addWidget(indexCheckBox, 5, 0, 1, 1);
bookmarksCheckBox = new QCheckBox(actionGroupBox);
bookmarksCheckBox->setObjectName(QStringLiteral("bookmarksCheckBox"));
gridLayout1->addWidget(bookmarksCheckBox, 6, 0, 1, 3);
gridLayout->addWidget(actionGroupBox, 3, 0, 1, 3);
RemoteControlClass->setCentralWidget(centralWidget);
menuBar = new QMenuBar(RemoteControlClass);
menuBar->setObjectName(QStringLiteral("menuBar"));
menuBar->setGeometry(QRect(0, 0, 344, 21));
menuFile = new QMenu(menuBar);
menuFile->setObjectName(QStringLiteral("menuFile"));
RemoteControlClass->setMenuBar(menuBar);
statusBar = new QStatusBar(RemoteControlClass);
statusBar->setObjectName(QStringLiteral("statusBar"));
RemoteControlClass->setStatusBar(statusBar);
menuBar->addAction(menuFile->menuAction());
menuFile->addAction(actionQuit);
retranslateUi(RemoteControlClass);
QMetaObject::connectSlotsByName(RemoteControlClass);
} // setupUi
void retranslateUi(QMainWindow *RemoteControlClass)
{
RemoteControlClass->setWindowTitle(QApplication::translate("RemoteControlClass", "RemoteControl", 0, QApplication::UnicodeUTF8));
actionQuit->setText(QApplication::translate("RemoteControlClass", "Quit", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("RemoteControlClass", "Start URL:", 0, QApplication::UnicodeUTF8));
launchButton->setText(QApplication::translate("RemoteControlClass", "Launch Qt HelpViewer", 0, QApplication::UnicodeUTF8));
actionGroupBox->setTitle(QApplication::translate("RemoteControlClass", "Actions", 0, QApplication::UnicodeUTF8));
label_2->setText(QApplication::translate("RemoteControlClass", "Search in Index:", 0, QApplication::UnicodeUTF8));
indexButton->setText(QString());
label_4->setText(QApplication::translate("RemoteControlClass", "Identifier:", 0, QApplication::UnicodeUTF8));
identifierButton->setText(QString());
label_3->setText(QApplication::translate("RemoteControlClass", "Show URL:", 0, QApplication::UnicodeUTF8));
urlButton->setText(QString());
syncContentsButton->setText(QApplication::translate("RemoteControlClass", "Sync Contents", 0, QApplication::UnicodeUTF8));
contentsCheckBox->setText(QApplication::translate("RemoteControlClass", "Show Contents", 0, QApplication::UnicodeUTF8));
indexCheckBox->setText(QApplication::translate("RemoteControlClass", "Show Index", 0, QApplication::UnicodeUTF8));
bookmarksCheckBox->setText(QApplication::translate("RemoteControlClass", "Show Bookmarks", 0, QApplication::UnicodeUTF8));
menuFile->setTitle(QApplication::translate("RemoteControlClass", "File", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class RemoteControlClass: public Ui_RemoteControlClass {};
} // namespace Ui
QT_END_NAMESPACE
#endif // REMOTECONTROL_H