gl->setColumnStretch(0,0);
gl->setColumnStretch(1,10);
+ QSize sz=size();
+
vl->addSpacing(10);
vl->addWidget(m_tickettable=new QTableView,10);
m_tickettable->setModel(m_ticketmodel=new QStandardItemModel(this));
m_tickettable->setEditTriggers(QAbstractItemView::NoEditTriggers);
updateTable();
+ //make sure everything is visible
+ QSize vsz=m_tickettable->maximumViewportSize();
+ vsz.setWidth(vsz.width()+40);
+ if(sz.width()<vsz.width())sz.setWidth(vsz.width());
+ sz.setHeight(sz.height()+vsz.height()+40);
+ //TODO: limit this to the screen size; find a better measure than viewport
+ resize(sz);
req->dataDir();
}
m_ticketmodel->setData(m_ticketmodel->index(i,2),ev.startTimeString());
}
m_tickettable->resizeColumnsToContents();
+ qDebug("XXXXXXXXXXXXXXX %i vs %i",m_tickettable->size().width(),m_tickettable->maximumViewportSize().width());
}
void MOrderWindow::setChanged()