summaryrefslogtreecommitdiffstats
path: root/src/commands/addloans.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:15:24 -0600
commit8d9b90ca794ffabf151719c2edebe9278a2d3f36 (patch)
tree55f446de8694c45be6bf0f1178920c2b92b0c9f5 /src/commands/addloans.cpp
parent2781e27b871150395a5a82e221684108641002b2 (diff)
downloadtellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.tar.gz
tellico-8d9b90ca794ffabf151719c2edebe9278a2d3f36.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/commands/addloans.cpp')
-rw-r--r--src/commands/addloans.cpp6
1 files changed, 3 insertions, 3 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);