9985cc330a
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>
96 lines
2.9 KiB
C++
96 lines
2.9 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'downloads.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 DOWNLOADS_H
|
|
#define DOWNLOADS_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QGridLayout>
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QPushButton>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include "edittableview.h"
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_DownloadDialog
|
|
{
|
|
public:
|
|
QGridLayout *gridLayout;
|
|
EditTableView *downloadsView;
|
|
QHBoxLayout *horizontalLayout;
|
|
QPushButton *cleanupButton;
|
|
QSpacerItem *spacerItem;
|
|
QLabel *itemCount;
|
|
QSpacerItem *horizontalSpacer;
|
|
|
|
void setupUi(QDialog *DownloadDialog)
|
|
{
|
|
if (DownloadDialog->objectName().isEmpty())
|
|
DownloadDialog->setObjectName("DownloadDialog");
|
|
DownloadDialog->resize(332, 252);
|
|
gridLayout = new QGridLayout(DownloadDialog);
|
|
gridLayout->setSpacing(0);
|
|
gridLayout->setContentsMargins(0, 0, 0, 0);
|
|
gridLayout->setObjectName("gridLayout");
|
|
downloadsView = new EditTableView(DownloadDialog);
|
|
downloadsView->setObjectName("downloadsView");
|
|
|
|
gridLayout->addWidget(downloadsView, 0, 0, 1, 3);
|
|
|
|
horizontalLayout = new QHBoxLayout();
|
|
horizontalLayout->setObjectName("horizontalLayout");
|
|
cleanupButton = new QPushButton(DownloadDialog);
|
|
cleanupButton->setObjectName("cleanupButton");
|
|
cleanupButton->setEnabled(false);
|
|
|
|
horizontalLayout->addWidget(cleanupButton);
|
|
|
|
spacerItem = new QSpacerItem(58, 24, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
horizontalLayout->addItem(spacerItem);
|
|
|
|
|
|
gridLayout->addLayout(horizontalLayout, 1, 0, 1, 1);
|
|
|
|
itemCount = new QLabel(DownloadDialog);
|
|
itemCount->setObjectName("itemCount");
|
|
|
|
gridLayout->addWidget(itemCount, 1, 1, 1, 1);
|
|
|
|
horizontalSpacer = new QSpacerItem(148, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
gridLayout->addItem(horizontalSpacer, 1, 2, 1, 1);
|
|
|
|
|
|
retranslateUi(DownloadDialog);
|
|
|
|
QMetaObject::connectSlotsByName(DownloadDialog);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QDialog *DownloadDialog)
|
|
{
|
|
DownloadDialog->setWindowTitle(QCoreApplication::translate("DownloadDialog", "Downloads", nullptr));
|
|
cleanupButton->setText(QCoreApplication::translate("DownloadDialog", "Clean up", nullptr));
|
|
itemCount->setText(QCoreApplication::translate("DownloadDialog", "0 Items", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class DownloadDialog: public Ui_DownloadDialog {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // DOWNLOADS_H
|