Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

finished res display

  • Loading branch information...
commit 1632f72b541b8befd913700847df2d5e5090431e 1 parent 9d6e217
@Gabriano Gabriano authored
Showing with 3 additions and 5 deletions.
  1. +3 −1 reservationfilterproxy.cpp
  2. +0 −4 userinterface.cpp
View
4 reservationfilterproxy.cpp
@@ -8,6 +8,9 @@ ReservationFilterProxy::ReservationFilterProxy(QObject *parent) :
QSortFilterProxyModel(parent)
{
user = 0;
+ pastResIncluded = true;
+ currentResIncluded = true;
+ futurResIncluded = true;
}
@@ -47,7 +50,6 @@ bool ReservationFilterProxy::filterAcceptsRow(int source_row, const QModelIndex
}
void ReservationFilterProxy::setUser(Usager *user) {
- qDebug() << "ReservationFilterProxy::setUser done";
this->user = user;
}
View
4 userinterface.cpp
@@ -59,7 +59,6 @@ UserInterface::UserInterface(
vehiculeProxy->setDynamicSortFilter(true);
reservationProxy = new ReservationFilterProxy(this);
- qDebug() << "new ReservationFilterProxy done";
reservationProxy->setSourceModel(reservationModel);
reservationProxy->setDynamicSortFilter(true);
}
@@ -181,11 +180,8 @@ UserInterface::~UserInterface()
void UserInterface::setUser(qint64 id) {
user = usagerModel->getUsager(id);
- qDebug() << "active user identified";
reservationProxy->setUser(user);
- qDebug() << "setUser done";
createPages();
- qDebug() << "createPages done";
*currentPosition = user->getPosition();
stationModel->updateCurrentPosition(*currentPosition);
ui->lblUserName->setText(user->getNom());
Please sign in to comment.
Something went wrong with that request. Please try again.