|
|
|
|
42
|
var dateField = findChildObject(this, 'date');
|
42
|
var dateField = findChildObject(this, 'date');
|
43
|
var customerField = findChildObject(this, 'customer');
|
43
|
var customerField = findChildObject(this, 'customer');
|
44
|
var items = findChildObject(this, 'coffees');
|
44
|
var items = findChildObject(this, 'coffees');
|
|
|
45
|
+ var model = items.model();
|
|
|
46
|
+ model.dataChanged.connect(function() {
|
|
|
47
|
+ items.resizeColumnToContents(0);
|
|
|
48
|
+ });
|
45
|
var submit = findChildObject(this, 'submit');
|
49
|
var submit = findChildObject(this, 'submit');
|
46
|
submit.clicked.connect(function() {
|
50
|
submit.clicked.connect(function() {
|
47
|
var query = new QSqlQuery();
|
51
|
var query = new QSqlQuery();
|