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

172 lines
6.3 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'bookmarkdialog.ui'
**
** Created: Fri Sep 4 10:17:12 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 BOOKMARKDIALOG_H
#define BOOKMARKDIALOG_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
#include "bookmarkwidget.h"
QT_BEGIN_NAMESPACE
class Ui_BookmarkDialog
{
public:
QVBoxLayout *verticalLayout_3;
QHBoxLayout *horizontalLayout;
QVBoxLayout *verticalLayout_2;
QLabel *label;
QLabel *label_2;
QVBoxLayout *verticalLayout;
QLineEdit *bookmarkEdit;
QComboBox *bookmarkFolders;
QHBoxLayout *horizontalLayout_3;
QToolButton *toolButton;
QFrame *line;
BookmarkWidget *bookmarkWidget;
QHBoxLayout *horizontalLayout_4;
QPushButton *newFolderButton;
QDialogButtonBox *buttonBox;
void setupUi(QDialog *BookmarkDialog)
{
if (BookmarkDialog->objectName().isEmpty())
BookmarkDialog->setObjectName(QStringLiteral("BookmarkDialog"));
BookmarkDialog->resize(450, 135);
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(BookmarkDialog->sizePolicy().hasHeightForWidth());
BookmarkDialog->setSizePolicy(sizePolicy);
verticalLayout_3 = new QVBoxLayout(BookmarkDialog);
verticalLayout_3->setObjectName(QStringLiteral("verticalLayout_3"));
horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
verticalLayout_2 = new QVBoxLayout();
verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
label = new QLabel(BookmarkDialog);
label->setObjectName(QStringLiteral("label"));
verticalLayout_2->addWidget(label);
label_2 = new QLabel(BookmarkDialog);
label_2->setObjectName(QStringLiteral("label_2"));
verticalLayout_2->addWidget(label_2);
horizontalLayout->addLayout(verticalLayout_2);
verticalLayout = new QVBoxLayout();
verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
bookmarkEdit = new QLineEdit(BookmarkDialog);
bookmarkEdit->setObjectName(QStringLiteral("bookmarkEdit"));
verticalLayout->addWidget(bookmarkEdit);
bookmarkFolders = new QComboBox(BookmarkDialog);
bookmarkFolders->setObjectName(QStringLiteral("bookmarkFolders"));
verticalLayout->addWidget(bookmarkFolders);
horizontalLayout->addLayout(verticalLayout);
verticalLayout_3->addLayout(horizontalLayout);
horizontalLayout_3 = new QHBoxLayout();
horizontalLayout_3->setObjectName(QStringLiteral("horizontalLayout_3"));
toolButton = new QToolButton(BookmarkDialog);
toolButton->setObjectName(QStringLiteral("toolButton"));
toolButton->setMinimumSize(QSize(25, 20));
horizontalLayout_3->addWidget(toolButton);
line = new QFrame(BookmarkDialog);
line->setObjectName(QStringLiteral("line"));
line->setFrameShape(QFrame::HLine);
line->setFrameShadow(QFrame::Sunken);
horizontalLayout_3->addWidget(line);
verticalLayout_3->addLayout(horizontalLayout_3);
bookmarkWidget = new BookmarkWidget(BookmarkDialog);
bookmarkWidget->setObjectName(QStringLiteral("bookmarkWidget"));
bookmarkWidget->setEnabled(true);
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Ignored);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(bookmarkWidget->sizePolicy().hasHeightForWidth());
bookmarkWidget->setSizePolicy(sizePolicy1);
verticalLayout_3->addWidget(bookmarkWidget);
horizontalLayout_4 = new QHBoxLayout();
horizontalLayout_4->setObjectName(QStringLiteral("horizontalLayout_4"));
newFolderButton = new QPushButton(BookmarkDialog);
newFolderButton->setObjectName(QStringLiteral("newFolderButton"));
horizontalLayout_4->addWidget(newFolderButton);
buttonBox = new QDialogButtonBox(BookmarkDialog);
buttonBox->setObjectName(QStringLiteral("buttonBox"));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
horizontalLayout_4->addWidget(buttonBox);
verticalLayout_3->addLayout(horizontalLayout_4);
retranslateUi(BookmarkDialog);
QObject::connect(buttonBox, SIGNAL(accepted()), BookmarkDialog, SLOT(accept()));
QObject::connect(buttonBox, SIGNAL(rejected()), BookmarkDialog, SLOT(reject()));
QMetaObject::connectSlotsByName(BookmarkDialog);
} // setupUi
void retranslateUi(QDialog *BookmarkDialog)
{
BookmarkDialog->setWindowTitle(QApplication::translate("BookmarkDialog", "Add Bookmark", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("BookmarkDialog", "Bookmark:", 0, QApplication::UnicodeUTF8));
label_2->setText(QApplication::translate("BookmarkDialog", "Add in Folder:", 0, QApplication::UnicodeUTF8));
toolButton->setText(QApplication::translate("BookmarkDialog", "+", 0, QApplication::UnicodeUTF8));
QTreeWidgetItem *___qtreewidgetitem = bookmarkWidget->headerItem();
___qtreewidgetitem->setText(0, QApplication::translate("BookmarkDialog", "1", 0, QApplication::UnicodeUTF8));
newFolderButton->setText(QApplication::translate("BookmarkDialog", "New Folder", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class BookmarkDialog: public Ui_BookmarkDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // BOOKMARKDIALOG_H