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>
157 lines
5.7 KiB
C++
157 lines
5.7 KiB
C++
/*
|
|
*********************************************************************
|
|
**
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
** Contact: https://www.qt.io/licensing/
|
|
**
|
|
** This file is part of the autotests of the Qt Toolkit.
|
|
**
|
|
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
|
|
** Commercial License Usage
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
** accordance with the commercial license agreement provided with the
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
|
**
|
|
** GNU General Public License Usage
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
** General Public License version 3 as published by the Free Software
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
** included in the packaging of this file. Please review the following
|
|
** information to ensure the GNU General Public License requirements will
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
|
**
|
|
** $QT_END_LICENSE$
|
|
**
|
|
*********************************************************************
|
|
*/
|
|
|
|
/********************************************************************************
|
|
** Form generated from reading UI file 'orderdialog.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 ORDERDIALOG_H
|
|
#define ORDERDIALOG_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAbstractButton>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QDialogButtonBox>
|
|
#include <QtWidgets/QGroupBox>
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QListWidget>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include <QtWidgets/QToolButton>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace qdesigner_internal {
|
|
|
|
class Ui_OrderDialog
|
|
{
|
|
public:
|
|
QVBoxLayout *vboxLayout;
|
|
QGroupBox *groupBox;
|
|
QHBoxLayout *hboxLayout;
|
|
QListWidget *pageList;
|
|
QVBoxLayout *vboxLayout1;
|
|
QToolButton *upButton;
|
|
QToolButton *downButton;
|
|
QSpacerItem *spacerItem;
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
void setupUi(QDialog *qdesigner_internal__OrderDialog)
|
|
{
|
|
if (qdesigner_internal__OrderDialog->objectName().isEmpty())
|
|
qdesigner_internal__OrderDialog->setObjectName("qdesigner_internal__OrderDialog");
|
|
qdesigner_internal__OrderDialog->resize(467, 310);
|
|
vboxLayout = new QVBoxLayout(qdesigner_internal__OrderDialog);
|
|
vboxLayout->setObjectName("vboxLayout");
|
|
groupBox = new QGroupBox(qdesigner_internal__OrderDialog);
|
|
groupBox->setObjectName("groupBox");
|
|
hboxLayout = new QHBoxLayout(groupBox);
|
|
hboxLayout->setSpacing(6);
|
|
hboxLayout->setObjectName("hboxLayout");
|
|
hboxLayout->setContentsMargins(9, 9, 9, 9);
|
|
pageList = new QListWidget(groupBox);
|
|
pageList->setObjectName("pageList");
|
|
pageList->setMinimumSize(QSize(344, 0));
|
|
pageList->setDragDropMode(QAbstractItemView::InternalMove);
|
|
pageList->setSelectionMode(QAbstractItemView::ContiguousSelection);
|
|
pageList->setMovement(QListView::Snap);
|
|
|
|
hboxLayout->addWidget(pageList);
|
|
|
|
vboxLayout1 = new QVBoxLayout();
|
|
vboxLayout1->setSpacing(6);
|
|
vboxLayout1->setObjectName("vboxLayout1");
|
|
vboxLayout1->setContentsMargins(0, 0, 0, 0);
|
|
upButton = new QToolButton(groupBox);
|
|
upButton->setObjectName("upButton");
|
|
|
|
vboxLayout1->addWidget(upButton);
|
|
|
|
downButton = new QToolButton(groupBox);
|
|
downButton->setObjectName("downButton");
|
|
|
|
vboxLayout1->addWidget(downButton);
|
|
|
|
spacerItem = new QSpacerItem(20, 99, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
vboxLayout1->addItem(spacerItem);
|
|
|
|
|
|
hboxLayout->addLayout(vboxLayout1);
|
|
|
|
|
|
vboxLayout->addWidget(groupBox);
|
|
|
|
buttonBox = new QDialogButtonBox(qdesigner_internal__OrderDialog);
|
|
buttonBox->setObjectName("buttonBox");
|
|
buttonBox->setOrientation(Qt::Horizontal);
|
|
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset);
|
|
|
|
vboxLayout->addWidget(buttonBox);
|
|
|
|
|
|
retranslateUi(qdesigner_internal__OrderDialog);
|
|
QObject::connect(buttonBox, &QDialogButtonBox::accepted, qdesigner_internal__OrderDialog, qOverload<>(&QDialog::accept));
|
|
QObject::connect(buttonBox, &QDialogButtonBox::rejected, qdesigner_internal__OrderDialog, qOverload<>(&QDialog::reject));
|
|
|
|
QMetaObject::connectSlotsByName(qdesigner_internal__OrderDialog);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QDialog *qdesigner_internal__OrderDialog)
|
|
{
|
|
qdesigner_internal__OrderDialog->setWindowTitle(QCoreApplication::translate("qdesigner_internal::OrderDialog", "Change Page Order", nullptr));
|
|
groupBox->setTitle(QCoreApplication::translate("qdesigner_internal::OrderDialog", "Page Order", nullptr));
|
|
#if QT_CONFIG(tooltip)
|
|
upButton->setToolTip(QCoreApplication::translate("qdesigner_internal::OrderDialog", "Move page up", nullptr));
|
|
#endif // QT_CONFIG(tooltip)
|
|
#if QT_CONFIG(tooltip)
|
|
downButton->setToolTip(QCoreApplication::translate("qdesigner_internal::OrderDialog", "Move page down", nullptr));
|
|
#endif // QT_CONFIG(tooltip)
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
} // namespace qdesigner_internal
|
|
|
|
namespace qdesigner_internal {
|
|
namespace Ui {
|
|
class OrderDialog: public Ui_OrderDialog {};
|
|
} // namespace Ui
|
|
} // namespace qdesigner_internal
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // ORDERDIALOG_H
|