|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
/********************************************************************************
** Form generated from reading UI file 'adddialog.ui'
**
** Created: Mon Nov 4 07:59:39 2013
** by: Qt User Interface Compiler version 4.8.4
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_ADDDIALOG_H
#define UI_ADDDIALOG_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QDialogButtonBox>
#include <QtGui/QGridLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QSpacerItem>
#include <QtGui/QTableView>
#include <QtGui/QVBoxLayout>
#include <customtextedit.h>
QT_BEGIN_NAMESPACE
class Ui_AddDialog
{
public:
QGridLayout *gridLayout;
QSpacerItem *horizontalSpacer;
QVBoxLayout *verticalLayout;
QLabel *nameLabel;
QLineEdit *nameLineEdit;
QLabel *phoneLabel;
QLineEdit *phoneLineEdit;
QLabel *commentLabel;
CustomTextEdit *commentTextEdit;
QLabel *assignaturesLabel;
QTableView *assignaturesTableView;
QSpacerItem *horizontalSpacer_2;
QSpacerItem *verticalSpacer_2;
QDialogButtonBox *buttonBox;
QSpacerItem *verticalSpacer;
void setupUi(QDialog *AddDialog)
{
if (AddDialog->objectName().isEmpty())
AddDialog->setObjectName(QString::fromUtf8("AddDialog"));
AddDialog->resize(280, 500);
gridLayout = new QGridLayout(AddDialog);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
horizontalSpacer = new QSpacerItem(10, 20, QSizePolicy::Minimum, QSizePolicy::Minimum);
gridLayout->addItem(horizontalSpacer, 1, 0, 1, 1);
verticalLayout = new QVBoxLayout();
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
nameLabel = new QLabel(AddDialog);
nameLabel->setObjectName(QString::fromUtf8("nameLabel"));
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(nameLabel->sizePolicy().hasHeightForWidth());
nameLabel->setSizePolicy(sizePolicy);
verticalLayout->addWidget(nameLabel);
nameLineEdit = new QLineEdit(AddDialog);
nameLineEdit->setObjectName(QString::fromUtf8("nameLineEdit"));
verticalLayout->addWidget(nameLineEdit);
phoneLabel = new QLabel(AddDialog);
phoneLabel->setObjectName(QString::fromUtf8("phoneLabel"));
sizePolicy.setHeightForWidth(phoneLabel->sizePolicy().hasHeightForWidth());
phoneLabel->setSizePolicy(sizePolicy);
verticalLayout->addWidget(phoneLabel);
phoneLineEdit = new QLineEdit(AddDialog);
phoneLineEdit->setObjectName(QString::fromUtf8("phoneLineEdit"));
verticalLayout->addWidget(phoneLineEdit);
commentLabel = new QLabel(AddDialog);
commentLabel->setObjectName(QString::fromUtf8("commentLabel"));
verticalLayout->addWidget(commentLabel);
commentTextEdit = new CustomTextEdit(AddDialog);
commentTextEdit->setObjectName(QString::fromUtf8("commentTextEdit"));
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Maximum);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(commentTextEdit->sizePolicy().hasHeightForWidth());
commentTextEdit->setSizePolicy(sizePolicy1);
commentTextEdit->setMaximumSize(QSize(16777215, 100));
verticalLayout->addWidget(commentTextEdit);
assignaturesLabel = new QLabel(AddDialog);
assignaturesLabel->setObjectName(QString::fromUtf8("assignaturesLabel"));
sizePolicy.setHeightForWidth(assignaturesLabel->sizePolicy().hasHeightForWidth());
assignaturesLabel->setSizePolicy(sizePolicy);
verticalLayout->addWidget(assignaturesLabel);
assignaturesTableView = new QTableView(AddDialog);
assignaturesTableView->setObjectName(QString::fromUtf8("assignaturesTableView"));
assignaturesTableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
assignaturesTableView->setAlternatingRowColors(true);
assignaturesTableView->setSelectionMode(QAbstractItemView::MultiSelection);
assignaturesTableView->setSelectionBehavior(QAbstractItemView::SelectRows);
assignaturesTableView->setSortingEnabled(true);
assignaturesTableView->setCornerButtonEnabled(false);
assignaturesTableView->horizontalHeader()->setStretchLastSection(true);
assignaturesTableView->verticalHeader()->setVisible(false);
verticalLayout->addWidget(assignaturesTableView);
gridLayout->addLayout(verticalLayout, 1, 1, 1, 1);
horizontalSpacer_2 = new QSpacerItem(10, 20, QSizePolicy::Minimum, QSizePolicy::Minimum);
gridLayout->addItem(horizontalSpacer_2, 1, 2, 1, 1);
verticalSpacer_2 = new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Minimum);
gridLayout->addItem(verticalSpacer_2, 2, 1, 1, 1);
buttonBox = new QDialogButtonBox(AddDialog);
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 3, 1, 1, 1);
verticalSpacer = new QSpacerItem(20, 5, QSizePolicy::Minimum, QSizePolicy::Minimum);
gridLayout->addItem(verticalSpacer, 0, 1, 1, 1);
retranslateUi(AddDialog);
QMetaObject::connectSlotsByName(AddDialog);
} // setupUi
void retranslateUi(QDialog *AddDialog)
{
AddDialog->setWindowTitle(QApplication::translate("AddDialog", "Afegir pr\303\251stec...", 0, QApplication::UnicodeUTF8));
nameLabel->setText(QApplication::translate("AddDialog", "Nom i cognoms", 0, QApplication::UnicodeUTF8));
phoneLabel->setText(QApplication::translate("AddDialog", "Tel\303\250fon", 0, QApplication::UnicodeUTF8));
commentLabel->setText(QApplication::translate("AddDialog", "Comentari (M\303\240x 140 car\303\240cters)", 0, QApplication::UnicodeUTF8));
assignaturesLabel->setText(QApplication::translate("AddDialog", "Assignatures", 0, QApplication::UnicodeUTF8));
} // retranslateUi
};
namespace Ui {
class AddDialog: public Ui_AddDialog {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_ADDDIALOG_H
|