diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/commands/addentries.cpp | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/commands/addentries.cpp')
-rw-r--r-- | src/commands/addentries.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/addentries.cpp b/src/commands/addentries.cpp index 6cd7636..9460ebd 100644 --- a/src/commands/addentries.cpp +++ b/src/commands/addentries.cpp @@ -37,7 +37,7 @@ void AddEntries::execute() { // now check for default values Data::FieldVec fields = m_coll->fields(); for(Data::FieldVec::Iterator field = fields.begin(); field != fields.end(); ++field) { - const QString defaultValue = field->defaultValue(); + const TQString defaultValue = field->defaultValue(); if(!defaultValue.isEmpty()) { for(Data::EntryVec::Iterator entry = m_entries.begin(); entry != m_entries.end(); ++entry) { if(entry->field(field).isEmpty()) { @@ -58,7 +58,7 @@ void AddEntries::unexecute() { Controller::self()->removedEntries(m_entries); } -QString AddEntries::name() const { +TQString AddEntries::name() const { return m_entries.count() > 1 ? i18n("Add Entries") - : i18n("Add (Entry Title)", "Add %1").arg(m_entries.begin()->title()); + : i18n("Add (Entry Title)", "Add %1").tqarg(m_entries.begin()->title()); } |