2 // contacteditwidget.cpp - Vendor contact display
5 // (C) 2012 Underground Software
7 // JLH = James Hammons <jlhamm@acm.org>
10 // --- ---------- -------------------------------------------------------------
11 // JLH 09/24/2012 Created this file
14 #include "contacteditwidget.h"
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),
25 QFormLayout * form = new QFormLayout;
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);