9 #ifndef UI_PQSEARCHBOX_H 10 #define UI_PQSEARCHBOX_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLineEdit> 17 #include <QtWidgets/QToolButton> 18 #include <QtWidgets/QWidget> 31 if (SearchBox->objectName().isEmpty())
32 SearchBox->setObjectName(QString::fromUtf8(
"SearchBox"));
33 SearchBox->resize(251, 27);
34 horizontalLayout =
new QHBoxLayout(SearchBox);
35 horizontalLayout->setSpacing(2);
36 horizontalLayout->setContentsMargins(0, 0, 0, 0);
37 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
38 SearchLineEdit =
new QLineEdit(SearchBox);
39 SearchLineEdit->setObjectName(QString::fromUtf8(
"SearchLineEdit"));
41 horizontalLayout->addWidget(SearchLineEdit);
43 AdvancedButton =
new QToolButton(SearchBox);
44 AdvancedButton->setObjectName(QString::fromUtf8(
"AdvancedButton"));
46 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqAdvanced.svg"), QSize(), QIcon::Normal, QIcon::Off);
47 AdvancedButton->setIcon(icon);
48 AdvancedButton->setCheckable(
true);
49 AdvancedButton->setChecked(
false);
51 horizontalLayout->addWidget(AdvancedButton);
53 horizontalLayout->setStretch(0, 1);
57 QMetaObject::connectSlotsByName(SearchBox);
62 SearchBox->setWindowTitle(QCoreApplication::translate(
"SearchBox",
"Form",
nullptr));
63 #if QT_CONFIG(tooltip) 64 SearchLineEdit->setToolTip(QCoreApplication::translate(
"SearchBox",
"<html><head/><body><p>Search for properties by name</p></body></html>",
nullptr));
65 #endif // QT_CONFIG(tooltip) 66 SearchLineEdit->setPlaceholderText(QCoreApplication::translate(
"SearchBox",
"Search ... (use Esc to clear text)",
nullptr));
67 #if QT_CONFIG(tooltip) 68 AdvancedButton->setToolTip(QCoreApplication::translate(
"SearchBox",
"<html><head/><body><p>Toggle advanced properties</p></body></html>",
nullptr));
69 #endif // QT_CONFIG(tooltip) 70 AdvancedButton->setText(QString());
81 #endif // UI_PQSEARCHBOX_H
QLineEdit * SearchLineEdit
void setupUi(QWidget *SearchBox)
void retranslateUi(QWidget *SearchBox)
QToolButton * AdvancedButton
QHBoxLayout * horizontalLayout