From: konrad Date: Sat, 13 Dec 2008 21:08:31 +0000 (+0000) Subject: make order of event columns more logical X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=1457f0be66f118e471bbff212c95cf7c699c9df2;p=web%2Fkonrad%2Fsmoke.git make order of event columns more logical git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@213 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/src/overview.cpp b/src/overview.cpp index 5029b9d..645717f 100644 --- a/src/overview.cpp +++ b/src/overview.cpp @@ -343,7 +343,7 @@ void MOverview::updateEvents() QListevl=req->getAllEvents(); eventmodel->clear(); eventmodel->insertColumns(0,6); - eventmodel->setHorizontalHeaderLabels(QStringList()<setHorizontalHeaderLabels(QStringList()<setData(eventmodel->index(j,0),evl[i].eventId(),Qt::UserRole); eventmodel->setData(eventmodel->index(j,0),stime.toString(tr("ddd MMMM d yyyy, h:mm ap","time format"))); eventmodel->setData(eventmodel->index(j,1),evl[i].title()); - eventmodel->setData(eventmodel->index(j,2),evl[i].capacity()); - eventmodel->setData(eventmodel->index(j,3),evl[i].amountSold()); - eventmodel->setData(eventmodel->index(j,4),evl[i].amountReserved()); - eventmodel->setData(eventmodel->index(j,5),evl[i].capacity()-evl[i].amountSold()-evl[i].amountReserved()); + eventmodel->setData(eventmodel->index(j,2),evl[i].capacity()-evl[i].amountSold()-evl[i].amountReserved()); + eventmodel->setData(eventmodel->index(j,3),evl[i].amountReserved()); + eventmodel->setData(eventmodel->index(j,4),evl[i].amountSold()); + eventmodel->setData(eventmodel->index(j,5),evl[i].capacity()); j++; } eventtable->resizeColumnsToContents();