diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-18 18:15:24 -0600 |
| commit | 8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch) | |
| tree | 55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/commands | |
| parent | 2781e27b871150395a5a82e221684108641002b2 (diff) | |
| download | tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip | |
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/commands')
| -rw-r--r-- | src/commands/addloans.cpp | 6 | ||||
| -rw-r--r-- | src/commands/modifyentries.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/addloans.cpp b/src/commands/addloans.cpp index 8b9bc27..d5ce78a 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); diff --git a/src/commands/modifyentries.cpp b/src/commands/modifyentries.cpp index 9d8712a..7317314 100644 --- a/src/commands/modifyentries.cpp +++ b/src/commands/modifyentries.cpp @@ -44,7 +44,7 @@ void ModifyEntries::execute() { } // loans expose a field named "loaned", and the user might modify that without // checking in the loan, so verify that. Heavy-handed, yes... - const TQString loaned = TQString::tqfromLatin1("loaned"); + const TQString loaned = TQString::fromLatin1("loaned"); bool hasLoanField = m_coll->hasField(loaned); for(Data::EntryVecIt entry = m_entries.begin(); hasLoanField && entry != m_entries.end(); ++entry) { if(entry->field(loaned).isEmpty()) { |
