9 #ifndef UI_PQEXPANDERBUTTON_H 10 #define UI_PQEXPANDERBUTTON_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QFrame> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 29 if (pqExpanderButton->objectName().isEmpty())
30 pqExpanderButton->setObjectName(QString::fromUtf8(
"pqExpanderButton"));
31 pqExpanderButton->resize(115, 27);
32 QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
33 sizePolicy.setHorizontalStretch(0);
34 sizePolicy.setVerticalStretch(0);
35 sizePolicy.setHeightForWidth(pqExpanderButton->sizePolicy().hasHeightForWidth());
36 pqExpanderButton->setSizePolicy(sizePolicy);
37 pqExpanderButton->setFrameShape(QFrame::StyledPanel);
38 pqExpanderButton->setFrameShadow(QFrame::Raised);
39 pqExpanderButton->setLineWidth(1);
40 horizontalLayout =
new QHBoxLayout(pqExpanderButton);
41 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
42 horizontalLayout->setContentsMargins(-1, 4, -1, 4);
43 icon =
new QLabel(pqExpanderButton);
44 icon->setObjectName(QString::fromUtf8(
"icon"));
45 sizePolicy.setHeightForWidth(icon->sizePolicy().hasHeightForWidth());
46 icon->setSizePolicy(sizePolicy);
47 icon->setPixmap(QPixmap(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg")));
49 horizontalLayout->addWidget(icon);
51 label =
new QLabel(pqExpanderButton);
52 label->setObjectName(QString::fromUtf8(
"label"));
53 QSizePolicy sizePolicy1(QSizePolicy::Ignored, QSizePolicy::Preferred);
54 sizePolicy1.setHorizontalStretch(0);
55 sizePolicy1.setVerticalStretch(0);
56 sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
57 label->setSizePolicy(sizePolicy1);
63 horizontalLayout->addWidget(label);
65 horizontalLayout->setStretch(1, 1);
69 QMetaObject::connectSlotsByName(pqExpanderButton);
74 icon->setText(QString());
75 label->setText(QCoreApplication::translate(
"pqExpanderButton",
"Properties",
nullptr));
76 (void)pqExpanderButton;
87 #endif // UI_PQEXPANDERBUTTON_H