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

145 lines
5.0 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'installdialog.ui'
**
** Created: Fri Sep 4 10:17:13 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 INSTALLDIALOG_H
#define INSTALLDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QProgressBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QToolButton>
QT_BEGIN_NAMESPACE
class Ui_InstallDialog
{
public:
QGridLayout *gridLayout;
QLabel *label;
QListWidget *listWidget;
QPushButton *installButton;
QPushButton *cancelButton;
QPushButton *closeButton;
QSpacerItem *spacerItem;
QLabel *label_4;
QLineEdit *pathLineEdit;
QToolButton *browseButton;
QFrame *line;
QLabel *statusLabel;
QProgressBar *progressBar;
void setupUi(QDialog *InstallDialog)
{
if (InstallDialog->objectName().isEmpty())
InstallDialog->setObjectName(QStringLiteral("InstallDialog"));
InstallDialog->resize(436, 245);
gridLayout = new QGridLayout(InstallDialog);
gridLayout->setObjectName(QStringLiteral("gridLayout"));
label = new QLabel(InstallDialog);
label->setObjectName(QStringLiteral("label"));
gridLayout->addWidget(label, 0, 0, 1, 4);
listWidget = new QListWidget(InstallDialog);
listWidget->setObjectName(QStringLiteral("listWidget"));
gridLayout->addWidget(listWidget, 1, 0, 4, 4);
installButton = new QPushButton(InstallDialog);
installButton->setObjectName(QStringLiteral("installButton"));
gridLayout->addWidget(installButton, 1, 4, 1, 1);
cancelButton = new QPushButton(InstallDialog);
cancelButton->setObjectName(QStringLiteral("cancelButton"));
gridLayout->addWidget(cancelButton, 2, 4, 1, 1);
closeButton = new QPushButton(InstallDialog);
closeButton->setObjectName(QStringLiteral("closeButton"));
gridLayout->addWidget(closeButton, 3, 4, 1, 1);
spacerItem = new QSpacerItem(20, 56, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout->addItem(spacerItem, 4, 4, 1, 1);
label_4 = new QLabel(InstallDialog);
label_4->setObjectName(QStringLiteral("label_4"));
gridLayout->addWidget(label_4, 5, 0, 1, 1);
pathLineEdit = new QLineEdit(InstallDialog);
pathLineEdit->setObjectName(QStringLiteral("pathLineEdit"));
gridLayout->addWidget(pathLineEdit, 5, 1, 1, 2);
browseButton = new QToolButton(InstallDialog);
browseButton->setObjectName(QStringLiteral("browseButton"));
gridLayout->addWidget(browseButton, 5, 3, 1, 1);
line = new QFrame(InstallDialog);
line->setObjectName(QStringLiteral("line"));
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line, 6, 0, 1, 5);
statusLabel = new QLabel(InstallDialog);
statusLabel->setObjectName(QStringLiteral("statusLabel"));
gridLayout->addWidget(statusLabel, 7, 0, 1, 2);
progressBar = new QProgressBar(InstallDialog);
progressBar->setObjectName(QStringLiteral("progressBar"));
progressBar->setValue(0);
progressBar->setOrientation(Qt::Horizontal);
gridLayout->addWidget(progressBar, 7, 2, 1, 3);
retranslateUi(InstallDialog);
QObject::connect(closeButton, SIGNAL(clicked()), InstallDialog, SLOT(accept()));
QMetaObject::connectSlotsByName(InstallDialog);
} // setupUi
void retranslateUi(QDialog *InstallDialog)
{
InstallDialog->setWindowTitle(QApplication::translate("InstallDialog", "Install Documentation", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("InstallDialog", "Available Documentation:", 0, QApplication::UnicodeUTF8));
installButton->setText(QApplication::translate("InstallDialog", "Install", 0, QApplication::UnicodeUTF8));
cancelButton->setText(QApplication::translate("InstallDialog", "Cancel", 0, QApplication::UnicodeUTF8));
closeButton->setText(QApplication::translate("InstallDialog", "Close", 0, QApplication::UnicodeUTF8));
label_4->setText(QApplication::translate("InstallDialog", "Installation Path:", 0, QApplication::UnicodeUTF8));
browseButton->setText(QApplication::translate("InstallDialog", "...", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class InstallDialog: public Ui_InstallDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // INSTALLDIALOG_H