9 #ifndef UI_PQPROXYWIDGETDIALOG_H 10 #define UI_PQPROXYWIDGETDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QPushButton> 18 #include <QtWidgets/QScrollArea> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QToolButton> 21 #include <QtWidgets/QVBoxLayout> 22 #include <QtWidgets/QWidget> 47 if (ProxyWidgetDialog->objectName().isEmpty())
48 ProxyWidgetDialog->setObjectName(QString::fromUtf8(
"ProxyWidgetDialog"));
49 ProxyWidgetDialog->resize(573, 381);
50 Layout =
new QVBoxLayout(ProxyWidgetDialog);
51 Layout->setObjectName(QString::fromUtf8(
"Layout"));
53 SearchBox->setObjectName(QString::fromUtf8(
"SearchBox"));
55 Layout->addWidget(SearchBox);
57 scrollArea =
new QScrollArea(ProxyWidgetDialog);
58 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
59 scrollArea->setFrameShape(QFrame::NoFrame);
60 scrollArea->setWidgetResizable(
true);
61 scrollAreaWidgetContents =
new QWidget();
62 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
63 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 549, 295));
64 scrollAreaLayout =
new QVBoxLayout(scrollAreaWidgetContents);
65 scrollAreaLayout->setSpacing(0);
66 scrollAreaLayout->setContentsMargins(0, 0, 0, 0);
67 scrollAreaLayout->setObjectName(QString::fromUtf8(
"scrollAreaLayout"));
68 scrollArea->setWidget(scrollAreaWidgetContents);
70 Layout->addWidget(scrollArea);
72 widget =
new QWidget(ProxyWidgetDialog);
73 widget->setObjectName(QString::fromUtf8(
"widget"));
74 horizontalLayout =
new QHBoxLayout(widget);
75 horizontalLayout->setContentsMargins(0, 0, 0, 0);
76 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
77 RestoreDefaultsButton =
new QToolButton(widget);
78 RestoreDefaultsButton->setObjectName(QString::fromUtf8(
"RestoreDefaultsButton"));
80 horizontalLayout->addWidget(RestoreDefaultsButton);
82 SaveButton =
new QToolButton(widget);
83 SaveButton->setObjectName(QString::fromUtf8(
"SaveButton"));
85 horizontalLayout->addWidget(SaveButton);
87 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
89 horizontalLayout->addItem(horizontalSpacer);
91 ApplyButton =
new QPushButton(widget);
92 ApplyButton->setObjectName(QString::fromUtf8(
"ApplyButton"));
93 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
94 sizePolicy.setHorizontalStretch(0);
95 sizePolicy.setVerticalStretch(0);
96 sizePolicy.setHeightForWidth(ApplyButton->sizePolicy().hasHeightForWidth());
97 ApplyButton->setSizePolicy(sizePolicy);
99 QString iconThemeName = QString::fromUtf8(
"SP_DialogApplyButton");
100 if (QIcon::hasThemeIcon(iconThemeName)) {
101 icon = QIcon::fromTheme(iconThemeName);
103 icon.addFile(QString::fromUtf8(
""), QSize(), QIcon::Normal, QIcon::Off);
105 ApplyButton->setIcon(icon);
107 horizontalLayout->addWidget(ApplyButton);
109 ResetButton =
new QPushButton(widget);
110 ResetButton->setObjectName(QString::fromUtf8(
"ResetButton"));
112 horizontalLayout->addWidget(ResetButton);
114 CancelButton =
new QPushButton(widget);
115 CancelButton->setObjectName(QString::fromUtf8(
"CancelButton"));
116 sizePolicy.setHeightForWidth(CancelButton->sizePolicy().hasHeightForWidth());
117 CancelButton->setSizePolicy(sizePolicy);
119 horizontalLayout->addWidget(CancelButton);
121 OKButton =
new QPushButton(widget);
122 OKButton->setObjectName(QString::fromUtf8(
"OKButton"));
123 sizePolicy.setHeightForWidth(OKButton->sizePolicy().hasHeightForWidth());
124 OKButton->setSizePolicy(sizePolicy);
126 horizontalLayout->addWidget(OKButton);
129 Layout->addWidget(widget);
134 OKButton->setDefault(
true);
137 QMetaObject::connectSlotsByName(ProxyWidgetDialog);
142 ProxyWidgetDialog->setWindowTitle(QCoreApplication::translate(
"ProxyWidgetDialog",
"Dialog",
nullptr));
143 #if QT_CONFIG(tooltip) 144 RestoreDefaultsButton->setToolTip(QCoreApplication::translate(
"ProxyWidgetDialog",
"Restore application default setting values",
nullptr));
145 #endif // QT_CONFIG(tooltip) 146 RestoreDefaultsButton->setText(QString());
147 #if QT_CONFIG(tooltip) 148 SaveButton->setToolTip(QCoreApplication::translate(
"ProxyWidgetDialog",
"Save current settings values as default",
nullptr));
149 #endif // QT_CONFIG(tooltip) 150 SaveButton->setText(QString());
151 ApplyButton->setText(QCoreApplication::translate(
"ProxyWidgetDialog",
"Apply",
nullptr));
152 ResetButton->setText(QCoreApplication::translate(
"ProxyWidgetDialog",
"Reset",
nullptr));
153 CancelButton->setText(QCoreApplication::translate(
"ProxyWidgetDialog",
"&Cancel",
nullptr));
154 OKButton->setText(QCoreApplication::translate(
"ProxyWidgetDialog",
"&OK",
nullptr));
165 #endif // UI_PQPROXYWIDGETDIALOG_H
pqSearchBox is a line edit and an advanced tool button in the same layout.