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

175 lines
5.9 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'querywidget.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 QUERYWIDGET_H
#define QUERYWIDGET_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_QueryWidget
{
public:
QWidget *centralwidget;
QVBoxLayout *verticalLayout;
QVBoxLayout *vboxLayout;
QGroupBox *inputGroupBox;
QVBoxLayout *verticalLayout_4;
QVBoxLayout *_2;
QTextEdit *inputTextEdit;
QGroupBox *queryGroupBox;
QVBoxLayout *verticalLayout_5;
QComboBox *defaultQueries;
QTextEdit *queryTextEdit;
QGroupBox *outputGroupBox;
QVBoxLayout *verticalLayout_6;
QVBoxLayout *_3;
QTextEdit *outputTextEdit;
QMenuBar *menubar;
QStatusBar *statusbar;
void setupUi(QMainWindow *QueryWidget)
{
if (QueryWidget->objectName().isEmpty())
QueryWidget->setObjectName(QStringLiteral("QueryWidget"));
QueryWidget->resize(545, 531);
centralwidget = new QWidget(QueryWidget);
centralwidget->setObjectName(QStringLiteral("centralwidget"));
centralwidget->setGeometry(QRect(0, 29, 545, 480));
verticalLayout = new QVBoxLayout(centralwidget);
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
vboxLayout = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(0, 0, 0, 0);
#endif
vboxLayout->setObjectName(QStringLiteral("vboxLayout"));
inputGroupBox = new QGroupBox(centralwidget);
inputGroupBox->setObjectName(QStringLiteral("inputGroupBox"));
inputGroupBox->setMinimumSize(QSize(550, 120));
verticalLayout_4 = new QVBoxLayout(inputGroupBox);
verticalLayout_4->setObjectName(QStringLiteral("verticalLayout_4"));
_2 = new QVBoxLayout();
#ifndef Q_OS_MAC
_2->setSpacing(6);
#endif
#ifndef Q_OS_MAC
_2->setContentsMargins(0, 0, 0, 0);
#endif
_2->setObjectName(QStringLiteral("_2"));
inputTextEdit = new QTextEdit(inputGroupBox);
inputTextEdit->setObjectName(QStringLiteral("inputTextEdit"));
_2->addWidget(inputTextEdit);
verticalLayout_4->addLayout(_2);
vboxLayout->addWidget(inputGroupBox);
queryGroupBox = new QGroupBox(centralwidget);
queryGroupBox->setObjectName(QStringLiteral("queryGroupBox"));
queryGroupBox->setMinimumSize(QSize(550, 120));
verticalLayout_5 = new QVBoxLayout(queryGroupBox);
verticalLayout_5->setObjectName(QStringLiteral("verticalLayout_5"));
defaultQueries = new QComboBox(queryGroupBox);
defaultQueries->setObjectName(QStringLiteral("defaultQueries"));
verticalLayout_5->addWidget(defaultQueries);
queryTextEdit = new QTextEdit(queryGroupBox);
queryTextEdit->setObjectName(QStringLiteral("queryTextEdit"));
queryTextEdit->setMinimumSize(QSize(400, 60));
queryTextEdit->setReadOnly(true);
queryTextEdit->setAcceptRichText(false);
verticalLayout_5->addWidget(queryTextEdit);
vboxLayout->addWidget(queryGroupBox);
outputGroupBox = new QGroupBox(centralwidget);
outputGroupBox->setObjectName(QStringLiteral("outputGroupBox"));
outputGroupBox->setMinimumSize(QSize(550, 120));
verticalLayout_6 = new QVBoxLayout(outputGroupBox);
verticalLayout_6->setObjectName(QStringLiteral("verticalLayout_6"));
_3 = new QVBoxLayout();
#ifndef Q_OS_MAC
_3->setSpacing(6);
#endif
#ifndef Q_OS_MAC
_3->setContentsMargins(0, 0, 0, 0);
#endif
_3->setObjectName(QStringLiteral("_3"));
outputTextEdit = new QTextEdit(outputGroupBox);
outputTextEdit->setObjectName(QStringLiteral("outputTextEdit"));
outputTextEdit->setMinimumSize(QSize(500, 80));
outputTextEdit->setReadOnly(true);
outputTextEdit->setAcceptRichText(false);
_3->addWidget(outputTextEdit);
verticalLayout_6->addLayout(_3);
vboxLayout->addWidget(outputGroupBox);
verticalLayout->addLayout(vboxLayout);
QueryWidget->setCentralWidget(centralwidget);
menubar = new QMenuBar(QueryWidget);
menubar->setObjectName(QStringLiteral("menubar"));
menubar->setGeometry(QRect(0, 0, 545, 29));
QueryWidget->setMenuBar(menubar);
statusbar = new QStatusBar(QueryWidget);
statusbar->setObjectName(QStringLiteral("statusbar"));
statusbar->setGeometry(QRect(0, 509, 545, 22));
QueryWidget->setStatusBar(statusbar);
retranslateUi(QueryWidget);
QMetaObject::connectSlotsByName(QueryWidget);
} // setupUi
void retranslateUi(QMainWindow *QueryWidget)
{
QueryWidget->setWindowTitle(QApplication::translate("QueryWidget", "Recipes XQuery Example", 0, QApplication::UnicodeUTF8));
inputGroupBox->setTitle(QApplication::translate("QueryWidget", "Input Document", 0, QApplication::UnicodeUTF8));
queryGroupBox->setTitle(QApplication::translate("QueryWidget", "Select your query:", 0, QApplication::UnicodeUTF8));
outputGroupBox->setTitle(QApplication::translate("QueryWidget", "Output Document", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class QueryWidget: public Ui_QueryWidget {};
} // namespace Ui
QT_END_NAMESPACE
#endif // QUERYWIDGET_H