diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:34:15 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:34:15 -0600 |
commit | 031454e56009d576589c28757f6c6fcf4884095e (patch) | |
tree | ad4c9959d05a814c9090e8fe63ba27057903271b /src/commands/addloans.cpp | |
parent | 54011e0e1af8cd96162160ecf5d361a59a2c733e (diff) | |
download | tellico-031454e56009d576589c28757f6c6fcf4884095e.tar.gz tellico-031454e56009d576589c28757f6c6fcf4884095e.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/commands/addloans.cpp')
-rw-r--r-- | src/commands/addloans.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/addloans.cpp b/src/commands/addloans.cpp index 8b9bc27..bbef197 100644 --- a/src/commands/addloans.cpp +++ b/src/commands/addloans.cpp @@ -41,7 +41,7 @@ void AddLoans::execute() { bool wasEmpty = m_borrower->isEmpty(); // if there's no loaned field, we'll add one - bool loanExisted = m_loans.begin()->entry()->collection()->hasField(TQString::tqfromLatin1("loaned")); + bool loanExisted = m_loans.begin()->entry()->collection()->hasField(TQString::fromLatin1("loaned")); m_addedLoanField = false; // assume we didn't add the field yet // add the loans to the borrower @@ -54,7 +54,7 @@ void AddLoans::execute() { } if(!loanExisted) { Data::CollPtr c = m_loans.begin()->entry()->collection(); - Data::FieldPtr f = c->fieldByName(TQString::tqfromLatin1("loaned")); + Data::FieldPtr f = c->fieldByName(TQString::fromLatin1("loaned")); if(f) { // notify everything that a new field was added Controller::self()->addedField(c, f); @@ -89,7 +89,7 @@ void AddLoans::unexecute() { } if(m_addedLoanField) { Data::CollPtr c = m_loans.begin()->entry()->collection(); - Data::FieldPtr f = c->fieldByName(TQString::tqfromLatin1("loaned")); + Data::FieldPtr f = c->fieldByName(TQString::fromLatin1("loaned")); if(f) { c->removeField(f); Controller::self()->removedField(c, f); @@ -106,5 +106,5 @@ void AddLoans::unexecute() { TQString AddLoans::name() const { return m_loans.count() > 1 ? i18n("Check-out Items") - : i18n("Check-out (Entry Title)", "Check-out %1").tqarg(m_loans.begin()->entry()->title()); + : i18n("Check-out (Entry Title)", "Check-out %1").arg(m_loans.begin()->entry()->title()); } |