]> Shamusworld >> Repos - schematic/blob - src/addresseditwidget.cpp
Move DB access to NoteDialog class, new AlertDialog class.
[schematic] / src / addresseditwidget.cpp
1 //
2 // addresseditwidget.cpp - Editable vendor address 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 "addresseditwidget.h"
15
16 AddressEditWidget::AddressEditWidget(QWidget * parent/*= 0*/): QWidget(parent),
17         field1(new QLineEdit),
18         field2(new QLineEdit),
19         field3(new QLineEdit),
20         field4(new QLineEdit),
21         field5(new QLineEdit)
22 {
23         QFormLayout * form = new QFormLayout;
24
25         form->addRow(tr("Address:"), field1);
26         form->addRow(tr("City:"), field2);
27         form->addRow(tr("State:"), field3);
28         form->addRow(tr("Country:"), field4);
29         form->addRow(tr("Postal Code:"), field5);
30
31         setLayout(form);
32 }
33