--- /dev/null
+//
+// contactwidget.cpp - Vendor contact display
+//
+// by James Hammons
+// (C) 2012 Underground Software
+//
+// JLH = James Hammons <jlhamm@acm.org>
+//
+// Who When What
+// --- ---------- -------------------------------------------------------------
+// JLH 09/24/2012 Created this file
+//
+
+#include "contactwidget.h"
+
+
+ContactWidget::ContactWidget(QWidget * parent/*= 0*/): QWidget(parent),
+ field1(new QLabel),
+ field2(new QLabel),
+ field3(new QLabel),
+ field4(new QLabel),
+ field5(new QLabel),
+ field6(new QLabel),
+ field7(new QLabel)
+{
+ QFormLayout * form = new QFormLayout;
+
+ form->addRow(tr("Type:"), field1);
+ form->addRow(tr("Name:"), field2);
+ form->addRow(tr("Email:"), field3);
+ form->addRow(tr("Address:"), field4);
+ form->addRow(tr("Phone 1:"), field5);
+ form->addRow(tr("Phone 2:"), field6);
+ form->addRow(tr("Fax:"), field7);
+
+ setLayout(form);
+}
+
+
+void ContactWidget::SetFields(QString s1, QString s2, QString s3, QString s4,
+ QString s5, QString s6, QString s7)
+{
+ field1->setText(s1);
+ field2->setText(s2);
+ field3->setText(s3);
+ field4->setText(s4);
+ field5->setText(s5);
+ field6->setText(s6);
+ field7->setText(s7);
+}
+