X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Faddresswidget.cpp;fp=src%2Faddresswidget.cpp;h=6f3c20ef0dfeaaf759e479514a83b07474fb382c;hb=6df1a447a1fa1b9e51fd177a806f910813657b09;hp=0000000000000000000000000000000000000000;hpb=f3116511d09acfd5b32d3412c82c4337d89f2ad9;p=schematic diff --git a/src/addresswidget.cpp b/src/addresswidget.cpp new file mode 100644 index 0000000..6f3c20e --- /dev/null +++ b/src/addresswidget.cpp @@ -0,0 +1,43 @@ +// +// addresswidget.cpp - Vendor address display +// +// by James Hammons +// (C) 2012 Underground Software +// +// JLH = James Hammons +// +// Who When What +// --- ---------- ------------------------------------------------------------- +// JLH 09/24/2012 Created this file +// + +#include "addresswidget.h" + +AddressWidget::AddressWidget(QWidget * parent/*= 0*/): QWidget(parent), + field1(new QLabel), + field2(new QLabel), + field3(new QLabel), + field4(new QLabel), + field5(new QLabel) +{ + QFormLayout * form = new QFormLayout; + + form->addRow(tr("Address:"), field1); + form->addRow(tr("City:"), field2); + form->addRow(tr("State:"), field3); + form->addRow(tr("Country:"), field4); + form->addRow(tr("Postal Code:"), field5); + + setLayout(form); +} + + +void AddressWidget::SetFields(QString s1, QString s2, QString s3, QString s4, QString s5) +{ + field1->setText(s1); + field2->setText(s2); + field3->setText(s3); + field4->setText(s4); + field5->setText(s5); +} +