]> Shamusworld >> Repos - schematic/blob - src/contacteditwidget.cpp
110a8c77f4b1a70be3ce0d29e754cbc82e682424
[schematic] / src / contacteditwidget.cpp
1 //
2 // contacteditwidget.cpp - Vendor contact display
3 //
4 // by James Hammons
5 // (C) 2012 Underground Software
6 //
7 // JLH = James Hammons <jlhamm@acm.org>
8 //
9 // Who  When        What
10 // ---  ----------  -------------------------------------------------------------
11 // JLH  09/24/2012  Created this file
12 //
13
14 #include "contacteditwidget.h"
15
16 ContactEditWidget::ContactEditWidget(QWidget * parent/*= 0*/): QWidget(parent),
17         field1(new QComboBox),
18         field2(new QLineEdit),
19         field3(new QLineEdit),
20         field4(new QLineEdit),
21         field5(new QLineEdit),
22         field6(new QLineEdit),
23         field7(new QLineEdit)
24 {
25         QFormLayout * form = new QFormLayout;
26
27         form->addRow(tr("Type:"), field1);
28         form->addRow(tr("Name:"), field2);
29         form->addRow(tr("Email:"), field3);
30         form->addRow(tr("Address:"), field4);
31         form->addRow(tr("Phone 1:"), field5);
32         form->addRow(tr("Phone 2:"), field6);
33         form->addRow(tr("Fax:"), field7);
34
35         setLayout(form);
36 }
37