2 // contactwidget.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 "contactwidget.h"
17 ContactWidget::ContactWidget(QWidget * parent/*= 0*/): QWidget(parent),
26 QFormLayout * form = new QFormLayout;
28 form->addRow(tr("Type:"), field1);
29 form->addRow(tr("Name:"), field2);
30 form->addRow(tr("Email:"), field3);
31 form->addRow(tr("Address:"), field4);
32 form->addRow(tr("Phone 1:"), field5);
33 form->addRow(tr("Phone 2:"), field6);
34 form->addRow(tr("Fax:"), field7);
40 void ContactWidget::SetFields(QString s1, QString s2, QString s3, QString s4,
41 QString s5, QString s6, QString s7)