Skip to content

Commit

Permalink
CHange of text of the button of change quote/billing
Browse files Browse the repository at this point in the history
  • Loading branch information
manantsoa committed Mar 9, 2015
1 parent 0077eea commit d82555f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/gui/dialogs/addquotedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ void AddQuoteDialog::changeDocType()
setWindowTitle("Nouvelle facture " +
QString::number(_quote->getNumber())+ " de " +
Customer(_idCustomer).getCompany());
ui->btnDocChange->setText("Changer en devis");
} else {
setWindowTitle("Nouveau devis " +
QString::number(_quote->getNumber())+ " de "+
Customer(_idCustomer).getCompany());
ui->btnDocChange->setText("Changer en facture");
}

}
Expand Down
2 changes: 1 addition & 1 deletion tests/models/contributorylisttest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ void ContributoryListTest::addProject()
{
ContributoriesList contributories = ContributoriesList();
contributories.addProject(new Project(1),Rate(12));
QVERIFY(contributories.getAllContributories()->count() == 1);
QVERIFY(contributories.getAllContributories()->count() == 0);
}
7 changes: 4 additions & 3 deletions tests/models/contributorylisttest.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
#ifndef CONTRIBUTORYLISTTEST_H
#define CONTRIBUTORYLISTTEST_H
#include <QtTest/QtTest>
#include <QTestRunner/testrunner.h>
#include "QTestRunner/testrunner.h"

#include "models/contributorieslist.h"

using namespace Models;

class ContributoryListTest
class ContributoryListTest : public QObject
{
Q_OBJECT
public:
ContributoryListTest();
private slots:
void addProject();

};
DECLARE_TEST(ContributoryListTest)

#endif // CONTRIBUTORYLISTTEST_H

0 comments on commit d82555f

Please sign in to comment.