da3cb1deb6
Add a enum and formatting for member function pointer based connections. Now preferably use member function pointer for Qt classes or parameterless connections. This should not require qOverload() within Qt classes after the Signal/Slot disambiguation. Add command line option to force either syntax for all connections. Task-number: QTBUG-76375 Change-Id: Icdb4051e1173172a71cd536bdbc7d1ab1edf267d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
190 lines
6.8 KiB
C++
190 lines
6.8 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'previewdialogbase.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 PREVIEWDIALOGBASE_H
|
|
#define PREVIEWDIALOGBASE_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAbstractButton>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QComboBox>
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QDialogButtonBox>
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QProgressBar>
|
|
#include <QtWidgets/QScrollArea>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include <QtWidgets/QTreeWidget>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_PreviewDialogBase
|
|
{
|
|
public:
|
|
QVBoxLayout *vboxLayout;
|
|
QHBoxLayout *hboxLayout;
|
|
QLabel *label;
|
|
QComboBox *paperSizeCombo;
|
|
QLabel *label_2;
|
|
QComboBox *paperOrientationCombo;
|
|
QSpacerItem *spacerItem;
|
|
QHBoxLayout *hboxLayout1;
|
|
QTreeWidget *pageList;
|
|
QScrollArea *previewArea;
|
|
QHBoxLayout *hboxLayout2;
|
|
QProgressBar *progressBar;
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
void setupUi(QDialog *PreviewDialogBase)
|
|
{
|
|
if (PreviewDialogBase->objectName().isEmpty())
|
|
PreviewDialogBase->setObjectName(QString::fromUtf8("PreviewDialogBase"));
|
|
PreviewDialogBase->resize(733, 479);
|
|
vboxLayout = new QVBoxLayout(PreviewDialogBase);
|
|
#ifndef Q_OS_MAC
|
|
vboxLayout->setSpacing(6);
|
|
#endif
|
|
#ifndef Q_OS_MAC
|
|
vboxLayout->setContentsMargins(9, 9, 9, 9);
|
|
#endif
|
|
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
|
|
hboxLayout = new QHBoxLayout();
|
|
#ifndef Q_OS_MAC
|
|
hboxLayout->setSpacing(6);
|
|
#endif
|
|
#ifndef Q_OS_MAC
|
|
hboxLayout->setContentsMargins(0, 0, 0, 0);
|
|
#endif
|
|
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
|
|
label = new QLabel(PreviewDialogBase);
|
|
label->setObjectName(QString::fromUtf8("label"));
|
|
|
|
hboxLayout->addWidget(label);
|
|
|
|
paperSizeCombo = new QComboBox(PreviewDialogBase);
|
|
paperSizeCombo->setObjectName(QString::fromUtf8("paperSizeCombo"));
|
|
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
|
|
sizePolicy.setHorizontalStretch(0);
|
|
sizePolicy.setVerticalStretch(0);
|
|
sizePolicy.setHeightForWidth(paperSizeCombo->sizePolicy().hasHeightForWidth());
|
|
paperSizeCombo->setSizePolicy(sizePolicy);
|
|
|
|
hboxLayout->addWidget(paperSizeCombo);
|
|
|
|
label_2 = new QLabel(PreviewDialogBase);
|
|
label_2->setObjectName(QString::fromUtf8("label_2"));
|
|
|
|
hboxLayout->addWidget(label_2);
|
|
|
|
paperOrientationCombo = new QComboBox(PreviewDialogBase);
|
|
paperOrientationCombo->setObjectName(QString::fromUtf8("paperOrientationCombo"));
|
|
sizePolicy.setHeightForWidth(paperOrientationCombo->sizePolicy().hasHeightForWidth());
|
|
paperOrientationCombo->setSizePolicy(sizePolicy);
|
|
|
|
hboxLayout->addWidget(paperOrientationCombo);
|
|
|
|
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
hboxLayout->addItem(spacerItem);
|
|
|
|
|
|
vboxLayout->addLayout(hboxLayout);
|
|
|
|
hboxLayout1 = new QHBoxLayout();
|
|
#ifndef Q_OS_MAC
|
|
hboxLayout1->setSpacing(6);
|
|
#endif
|
|
hboxLayout1->setContentsMargins(0, 0, 0, 0);
|
|
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
|
|
pageList = new QTreeWidget(PreviewDialogBase);
|
|
pageList->setObjectName(QString::fromUtf8("pageList"));
|
|
pageList->setIndentation(0);
|
|
pageList->setRootIsDecorated(false);
|
|
pageList->setUniformRowHeights(true);
|
|
pageList->setItemsExpandable(false);
|
|
pageList->setColumnCount(1);
|
|
|
|
hboxLayout1->addWidget(pageList);
|
|
|
|
previewArea = new QScrollArea(PreviewDialogBase);
|
|
previewArea->setObjectName(QString::fromUtf8("previewArea"));
|
|
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
|
sizePolicy1.setHorizontalStretch(1);
|
|
sizePolicy1.setVerticalStretch(0);
|
|
sizePolicy1.setHeightForWidth(previewArea->sizePolicy().hasHeightForWidth());
|
|
previewArea->setSizePolicy(sizePolicy1);
|
|
|
|
hboxLayout1->addWidget(previewArea);
|
|
|
|
|
|
vboxLayout->addLayout(hboxLayout1);
|
|
|
|
hboxLayout2 = new QHBoxLayout();
|
|
#ifndef Q_OS_MAC
|
|
hboxLayout2->setSpacing(6);
|
|
#endif
|
|
hboxLayout2->setContentsMargins(0, 0, 0, 0);
|
|
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
|
|
progressBar = new QProgressBar(PreviewDialogBase);
|
|
progressBar->setObjectName(QString::fromUtf8("progressBar"));
|
|
progressBar->setEnabled(false);
|
|
QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
|
sizePolicy2.setHorizontalStretch(1);
|
|
sizePolicy2.setVerticalStretch(0);
|
|
sizePolicy2.setHeightForWidth(progressBar->sizePolicy().hasHeightForWidth());
|
|
progressBar->setSizePolicy(sizePolicy2);
|
|
progressBar->setValue(0);
|
|
progressBar->setTextVisible(false);
|
|
progressBar->setOrientation(Qt::Horizontal);
|
|
|
|
hboxLayout2->addWidget(progressBar);
|
|
|
|
buttonBox = new QDialogButtonBox(PreviewDialogBase);
|
|
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
|
buttonBox->setOrientation(Qt::Horizontal);
|
|
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
|
|
|
|
hboxLayout2->addWidget(buttonBox);
|
|
|
|
|
|
vboxLayout->addLayout(hboxLayout2);
|
|
|
|
#if QT_CONFIG(shortcut)
|
|
label->setBuddy(paperSizeCombo);
|
|
label_2->setBuddy(paperOrientationCombo);
|
|
#endif // QT_CONFIG(shortcut)
|
|
|
|
retranslateUi(PreviewDialogBase);
|
|
QObject::connect(buttonBox, &QDialogButtonBox::accepted, PreviewDialogBase, &QDialog::accept);
|
|
QObject::connect(buttonBox, &QDialogButtonBox::rejected, PreviewDialogBase, &QDialog::reject);
|
|
|
|
QMetaObject::connectSlotsByName(PreviewDialogBase);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QDialog *PreviewDialogBase)
|
|
{
|
|
PreviewDialogBase->setWindowTitle(QCoreApplication::translate("PreviewDialogBase", "Print Preview", nullptr));
|
|
label->setText(QCoreApplication::translate("PreviewDialogBase", "&Paper Size:", nullptr));
|
|
label_2->setText(QCoreApplication::translate("PreviewDialogBase", "&Orientation:", nullptr));
|
|
QTreeWidgetItem *___qtreewidgetitem = pageList->headerItem();
|
|
___qtreewidgetitem->setText(0, QCoreApplication::translate("PreviewDialogBase", "1", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class PreviewDialogBase: public Ui_PreviewDialogBase {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // PREVIEWDIALOGBASE_H
|