9 #ifndef UI_PQFILELISTPROPERTYWIDGET_H 10 #define UI_PQFILELISTPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QFrame> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QTableView> 21 #include <QtWidgets/QToolButton> 22 #include <QtWidgets/QVBoxLayout> 23 #include <QtWidgets/QWidget> 42 void setupUi(QWidget *FileListPropertyWidget)
44 if (FileListPropertyWidget->objectName().isEmpty())
45 FileListPropertyWidget->setObjectName(QString::fromUtf8(
"FileListPropertyWidget"));
46 FileListPropertyWidget->resize(287, 311);
47 gridLayout =
new QGridLayout(FileListPropertyWidget);
48 gridLayout->setSpacing(2);
49 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
50 gridLayout->setContentsMargins(0, 0, 0, 0);
51 verticalLayout =
new QVBoxLayout();
52 verticalLayout->setSpacing(0);
53 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
54 label =
new QLabel(FileListPropertyWidget);
55 label->setObjectName(QString::fromUtf8(
"label"));
60 verticalLayout->addWidget(label);
62 line =
new QFrame(FileListPropertyWidget);
63 line->setObjectName(QString::fromUtf8(
"line"));
64 line->setFrameShape(QFrame::HLine);
65 line->setFrameShadow(QFrame::Sunken);
67 verticalLayout->addWidget(line);
70 gridLayout->addLayout(verticalLayout, 0, 0, 1, 2);
72 verticalLayout_2 =
new QVBoxLayout();
73 verticalLayout_2->setSpacing(2);
74 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
75 add =
new QToolButton(FileListPropertyWidget);
76 add->setObjectName(QString::fromUtf8(
"add"));
78 icon.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqPlus.svg"), QSize(), QIcon::Normal, QIcon::Off);
81 verticalLayout_2->addWidget(add);
83 remove =
new QToolButton(FileListPropertyWidget);
84 remove->setObjectName(QString::fromUtf8(
"remove"));
85 remove->setEnabled(
false);
87 icon1.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqMinus.svg"), QSize(), QIcon::Normal, QIcon::Off);
88 remove->setIcon(icon1);
90 verticalLayout_2->addWidget(
remove);
92 browse =
new QToolButton(FileListPropertyWidget);
93 browse->setObjectName(QString::fromUtf8(
"browse"));
94 browse->setEnabled(
false);
96 verticalLayout_2->addWidget(browse);
98 verticalSpacer =
new QSpacerItem(20, 108, QSizePolicy::Minimum, QSizePolicy::Expanding);
100 verticalLayout_2->addItem(verticalSpacer);
102 removeAll =
new QToolButton(FileListPropertyWidget);
103 removeAll->setObjectName(QString::fromUtf8(
"removeAll"));
105 icon2.addFile(QString::fromUtf8(
":/QtWidgets/Icons/pqDelete.svg"), QSize(), QIcon::Normal, QIcon::Off);
106 removeAll->setIcon(icon2);
108 verticalLayout_2->addWidget(removeAll);
111 gridLayout->addLayout(verticalLayout_2, 1, 1, 1, 1);
113 tableView =
new QTableView(FileListPropertyWidget);
114 tableView->setObjectName(QString::fromUtf8(
"tableView"));
115 tableView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
116 tableView->setAlternatingRowColors(
true);
117 tableView->setSelectionMode(QAbstractItemView::ExtendedSelection);
118 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
119 tableView->setTextElideMode(Qt::ElideMiddle);
120 tableView->horizontalHeader()->setVisible(
false);
121 tableView->horizontalHeader()->setStretchLastSection(
true);
123 gridLayout->addWidget(tableView, 1, 0, 1, 1);
128 QMetaObject::connectSlotsByName(FileListPropertyWidget);
133 FileListPropertyWidget->setWindowTitle(QCoreApplication::translate(
"FileListPropertyWidget",
"Form",
nullptr));
134 label->setText(QCoreApplication::translate(
"FileListPropertyWidget",
"Property Label",
nullptr));
135 #if QT_CONFIG(tooltip) 136 add->setToolTip(QCoreApplication::translate(
"FileListPropertyWidget",
"Add new entry",
nullptr));
137 #endif // QT_CONFIG(tooltip) 138 add->setText(QCoreApplication::translate(
"FileListPropertyWidget",
"...",
nullptr));
139 #if QT_CONFIG(tooltip) 140 remove->setToolTip(QCoreApplication::translate(
"FileListPropertyWidget",
"Remove current entry",
nullptr));
141 #endif // QT_CONFIG(tooltip) 142 remove->setText(QCoreApplication::translate(
"FileListPropertyWidget",
"...",
nullptr));
143 browse->setText(QCoreApplication::translate(
"FileListPropertyWidget",
"...",
nullptr));
144 #if QT_CONFIG(tooltip) 145 removeAll->setToolTip(QCoreApplication::translate(
"FileListPropertyWidget",
"Remove all entries",
nullptr));
146 #endif // QT_CONFIG(tooltip) 147 removeAll->setText(QCoreApplication::translate(
"FileListPropertyWidget",
"...",
nullptr));
158 #endif // UI_PQFILELISTPROPERTYWIDGET_H