summaryrefslogtreecommitdiffstats
path: root/src/commands
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:34:15 -0600
commit031454e56009d576589c28757f6c6fcf4884095e (patch)
treead4c9959d05a814c9090e8fe63ba27057903271b /src/commands
parent54011e0e1af8cd96162160ecf5d361a59a2c733e (diff)
downloadtellico-031454e56009d576589c28757f6c6fcf4884095e.tar.gz
tellico-031454e56009d576589c28757f6c6fcf4884095e.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/addentries.cpp2
-rw-r--r--src/commands/addloans.cpp8
-rw-r--r--src/commands/fieldcommand.cpp6
-rw-r--r--src/commands/modifyentries.cpp4
-rw-r--r--src/commands/removeentries.cpp2
-rw-r--r--src/commands/removeloans.cpp2
-rw-r--r--src/commands/updateentries.cpp2
7 files changed, 13 insertions, 13 deletions
diff --git a/src/commands/addentries.cpp b/src/commands/addentries.cpp
index 9460ebd..87d7bc7 100644
--- a/src/commands/addentries.cpp
+++ b/src/commands/addentries.cpp
@@ -60,5 +60,5 @@ void AddEntries::unexecute() {
TQString AddEntries::name() const {
return m_entries.count() > 1 ? i18n("Add Entries")
- : i18n("Add (Entry Title)", "Add %1").tqarg(m_entries.begin()->title());
+ : i18n("Add (Entry Title)", "Add %1").arg(m_entries.begin()->title());
}
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());
}
diff --git a/src/commands/fieldcommand.cpp b/src/commands/fieldcommand.cpp
index 5ba080b..43c063a 100644
--- a/src/commands/fieldcommand.cpp
+++ b/src/commands/fieldcommand.cpp
@@ -101,11 +101,11 @@ void FieldCommand::unexecute() {
TQString FieldCommand::name() const {
switch(m_mode) {
case FieldAdd:
- return i18n("Add %1 Field").tqarg(m_activeField->title());
+ return i18n("Add %1 Field").arg(m_activeField->title());
case FieldModify:
- return i18n("Modify %1 Field").tqarg(m_activeField->title());
+ return i18n("Modify %1 Field").arg(m_activeField->title());
case FieldRemove:
- return i18n("Delete %1 Field").tqarg(m_activeField->title());
+ return i18n("Delete %1 Field").arg(m_activeField->title());
}
// hush warnings
return TQString();
diff --git a/src/commands/modifyentries.cpp b/src/commands/modifyentries.cpp
index 9d8712a..3db5297 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()) {
@@ -70,7 +70,7 @@ void ModifyEntries::unexecute() {
TQString ModifyEntries::name() const {
return m_entries.count() > 1 ? i18n("Modify Entries")
- : i18n("Modify (Entry Title)", "Modify %1").tqarg(m_entries.begin()->title());
+ : i18n("Modify (Entry Title)", "Modify %1").arg(m_entries.begin()->title());
}
void ModifyEntries::swapValues() {
diff --git a/src/commands/removeentries.cpp b/src/commands/removeentries.cpp
index bf2676b..1fb9b60 100644
--- a/src/commands/removeentries.cpp
+++ b/src/commands/removeentries.cpp
@@ -46,5 +46,5 @@ void RemoveEntries::unexecute() {
TQString RemoveEntries::name() const {
return m_entries.count() > 1 ? i18n("Delete Entries")
- : i18n("Delete (Entry Title)", "Delete %1").tqarg(m_entries.begin()->title());
+ : i18n("Delete (Entry Title)", "Delete %1").arg(m_entries.begin()->title());
}
diff --git a/src/commands/removeloans.cpp b/src/commands/removeloans.cpp
index 7ee321b..3d39886 100644
--- a/src/commands/removeloans.cpp
+++ b/src/commands/removeloans.cpp
@@ -77,5 +77,5 @@ void RemoveLoans::unexecute() {
TQString RemoveLoans::name() const {
return m_loans.count() > 1 ? i18n("Check-in Entries")
- : i18n("Check-in (Entry Title)", "Check-in %1").tqarg(m_loans.begin()->entry()->title());
+ : i18n("Check-in (Entry Title)", "Check-in %1").arg(m_loans.begin()->entry()->title());
}
diff --git a/src/commands/updateentries.cpp b/src/commands/updateentries.cpp
index 6b53102..32ab8e0 100644
--- a/src/commands/updateentries.cpp
+++ b/src/commands/updateentries.cpp
@@ -47,7 +47,7 @@ private:
}
UpdateEntries::UpdateEntries(Data::CollPtr coll_, Data::EntryPtr oldEntry_, Data::EntryPtr newEntry_, bool overWrite_)
- : Group(i18n("Modify (Entry Title)", "Modify %1").tqarg(newEntry_->title()))
+ : Group(i18n("Modify (Entry Title)", "Modify %1").arg(newEntry_->title()))
, m_coll(coll_)
, m_oldEntry(oldEntry_)
, m_newEntry(newEntry_)