qt5base-lts/tests/auto/tools/uic/baseline/installdialog.ui.h
Marc Mutz 9985cc330a uic: use C string literals for setObjectName()
Because setObjectName() now takes a QAnyStringView, passing C string
literals is much more efficient than using QString::fromUtf8().

This patch only deals with setObjectName() as a known property,
probably from a name attribute. If the objectName property is set by a
<property> element (or so I assume), we still emit a
QString::fromUtf8(). Detecting objectName there would be too much
magic.

Besides, I haven't been able to find why sometimes there's a second
setObjectName call right after the first, when in the XML it seems all
kosher (name attribute and objectName <property> agreeing on the
content).

Change-Id: Icf07bad841ac735a9c744bbd955428ba15758089
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2022-03-18 18:35:03 +01:00

141 lines
4.6 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'installdialog.ui'
**
** Created by: Qt User Interface Compiler version 6.0.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/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#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("InstallDialog");
InstallDialog->resize(436, 245);
gridLayout = new QGridLayout(InstallDialog);
gridLayout->setObjectName("gridLayout");
label = new QLabel(InstallDialog);
label->setObjectName("label");
gridLayout->addWidget(label, 0, 0, 1, 4);
listWidget = new QListWidget(InstallDialog);
listWidget->setObjectName("listWidget");
gridLayout->addWidget(listWidget, 1, 0, 4, 4);
installButton = new QPushButton(InstallDialog);
installButton->setObjectName("installButton");
gridLayout->addWidget(installButton, 1, 4, 1, 1);
cancelButton = new QPushButton(InstallDialog);
cancelButton->setObjectName("cancelButton");
gridLayout->addWidget(cancelButton, 2, 4, 1, 1);
closeButton = new QPushButton(InstallDialog);
closeButton->setObjectName("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("label_4");
gridLayout->addWidget(label_4, 5, 0, 1, 1);
pathLineEdit = new QLineEdit(InstallDialog);
pathLineEdit->setObjectName("pathLineEdit");
gridLayout->addWidget(pathLineEdit, 5, 1, 1, 2);
browseButton = new QToolButton(InstallDialog);
browseButton->setObjectName("browseButton");
gridLayout->addWidget(browseButton, 5, 3, 1, 1);
line = new QFrame(InstallDialog);
line->setObjectName("line");
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
gridLayout->addWidget(line, 6, 0, 1, 5);
statusLabel = new QLabel(InstallDialog);
statusLabel->setObjectName("statusLabel");
gridLayout->addWidget(statusLabel, 7, 0, 1, 2);
progressBar = new QProgressBar(InstallDialog);
progressBar->setObjectName("progressBar");
progressBar->setValue(0);
progressBar->setOrientation(Qt::Horizontal);
gridLayout->addWidget(progressBar, 7, 2, 1, 3);
retranslateUi(InstallDialog);
QObject::connect(closeButton, &QPushButton::clicked, InstallDialog, qOverload<>(&QDialog::accept));
QMetaObject::connectSlotsByName(InstallDialog);
} // setupUi
void retranslateUi(QDialog *InstallDialog)
{
InstallDialog->setWindowTitle(QCoreApplication::translate("InstallDialog", "Install Documentation", nullptr));
label->setText(QCoreApplication::translate("InstallDialog", "Available Documentation:", nullptr));
installButton->setText(QCoreApplication::translate("InstallDialog", "Install", nullptr));
cancelButton->setText(QCoreApplication::translate("InstallDialog", "Cancel", nullptr));
closeButton->setText(QCoreApplication::translate("InstallDialog", "Close", nullptr));
label_4->setText(QCoreApplication::translate("InstallDialog", "Installation Path:", nullptr));
browseButton->setText(QCoreApplication::translate("InstallDialog", "...", nullptr));
} // retranslateUi
};
namespace Ui {
class InstallDialog: public Ui_InstallDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // INSTALLDIALOG_H