Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Rohaut committed Mar 14, 2015
1 parent f782a3a commit af38f7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gui/mainwindow/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ MainWindow::MainWindow(QWidget *parent) :
setupSignalsSlots();
StartedWindowsDialog w;
w.exec();
updateUser();
}

void MainWindow::setupUi()
Expand Down
1 change: 0 additions & 1 deletion src/models/user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ void User::hydrat(int id)

if(toCommit) {
commit();
//hydrat(id);
}

delete user;
Expand Down
7 changes: 6 additions & 1 deletion tests/models/projectmodeltest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ ProjectModelTest::ProjectModelTest()
p2.setName("vehicula");
p2.setDescription("a, facilisis non, bibendum sed, est. Nunc laoreet lectus quis massa. Mauris vestibulum, neque sed dictum eleifend, nunc risus varius orci, in consequat enim diam");
p2.setDailyRate(13);

Project p3("Nom");
QVariantHash q = p3.getDataMap();
bool b = p3 < p2;
}

void ProjectModelTest::equals1()
Expand Down Expand Up @@ -73,7 +77,8 @@ void ProjectModelTest::hydrat()

void ProjectModelTest::remove()
{
p1.remove();
p1.setToRemoved(true);
p1.commit();
QVERIFY(Databases::ProjectDatabase::instance()->getProject(p1.getId()) == NULL);
}
void ProjectModelTest::getProjectsTable(void) {
Expand Down

0 comments on commit af38f7b

Please sign in to comment.