From 3947a7f0a7e2e8a37347ed2041ad4a9f33564694 Mon Sep 17 00:00:00 2001 From: konrad Date: Fri, 1 Aug 2008 11:51:56 +0000 Subject: [PATCH] bigger order window git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@167 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/orderwin.cpp | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/orderwin.cpp b/src/orderwin.cpp index 6c4d311..61aa9e7 100644 --- a/src/orderwin.cpp +++ b/src/orderwin.cpp @@ -110,11 +110,20 @@ MOrderWindow::MOrderWindow(QWidget*par,MWebRequest*r,const MOrder&o) 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()dataDir(); } @@ -142,6 +151,7 @@ void MOrderWindow::updateTable() 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() -- 1.7.2.5