summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:41:14 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:41:14 -0600
commit26f93a7d9105483b49ae930545ddb2873156fa8e (patch)
treebd208384438ff06193cc1a0a1548a9d69a83cd41 /src/mainwindow.cpp
parent8d9b90ca794ffabf151719c2edebe9278a2d3f36 (diff)
downloadtellico-26f93a7d9105483b49ae930545ddb2873156fa8e.tar.gz
tellico-26f93a7d9105483b49ae930545ddb2873156fa8e.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ec79e7c..fde1f60 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -923,7 +923,7 @@ void MainWindow::saveOptions() {
}
void MainWindow::readCollectionOptions(Data::CollPtr coll_) {
- KConfigGroup group(KGlobal::config(), TQString::fromLatin1("Options - %1").tqarg(coll_->typeName()));
+ KConfigGroup group(KGlobal::config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName()));
TQString defaultGroup = coll_->defaultGroupField();
TQString entryGroup;
@@ -932,9 +932,9 @@ void MainWindow::readCollectionOptions(Data::CollPtr coll_) {
} else {
KURL url = Kernel::self()->URL();
for(uint i = 0; i < Config::maxCustomURLSettings(); ++i) {
- KURL u = group.readEntry(TQString::fromLatin1("URL_%1").tqarg(i));
+ KURL u = group.readEntry(TQString::fromLatin1("URL_%1").arg(i));
if(url == u) {
- entryGroup = group.readEntry(TQString::fromLatin1("Group By_%1").tqarg(i), defaultGroup);
+ entryGroup = group.readEntry(TQString::fromLatin1("Group By_%1").arg(i), defaultGroup);
break;
}
}
@@ -965,7 +965,7 @@ void MainWindow::saveCollectionOptions(Data::CollPtr coll_) {
}
int configIndex = -1;
- KConfigGroup config(KGlobal::config(), TQString::fromLatin1("Options - %1").tqarg(coll_->typeName()));
+ KConfigGroup config(KGlobal::config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName()));
TQString groupName;
if(m_entryGrouping->currentItem() > -1 &&
static_cast<int>(coll_->entryGroups().count()) > m_entryGrouping->currentItem()) {
@@ -981,8 +981,8 @@ void MainWindow::saveCollectionOptions(Data::CollPtr coll_) {
TQValueList<KURL> urls = TQValueList<KURL>() << url;
TQStringList groupBys = TQStringList() << groupName;
for(uint i = 0; i < Config::maxCustomURLSettings(); ++i) {
- KURL u = config.readEntry(TQString::fromLatin1("URL_%1").tqarg(i));
- TQString g = config.readEntry(TQString::fromLatin1("Group By_%1").tqarg(i));
+ KURL u = config.readEntry(TQString::fromLatin1("URL_%1").arg(i));
+ TQString g = config.readEntry(TQString::fromLatin1("Group By_%1").arg(i));
if(!u.isEmpty() && url != u) {
urls.append(u);
groupBys.append(g);
@@ -992,8 +992,8 @@ void MainWindow::saveCollectionOptions(Data::CollPtr coll_) {
}
uint limit = TQMIN(urls.count(), Config::maxCustomURLSettings());
for(uint i = 0; i < limit; ++i) {
- config.writeEntry(TQString::fromLatin1("URL_%1").tqarg(i), urls[i].url());
- config.writeEntry(TQString::fromLatin1("Group By_%1").tqarg(i), groupBys[i]);
+ config.writeEntry(TQString::fromLatin1("URL_%1").arg(i), urls[i].url());
+ config.writeEntry(TQString::fromLatin1("Group By_%1").arg(i), groupBys[i]);
}
}
m_detailedView->saveConfig(coll_, configIndex);
@@ -1531,20 +1531,20 @@ void MainWindow::slotEntryCount() {
}
int count = coll->entryCount();
- TQString text = i18n("Total entries: %1").tqarg(count);
+ TQString text = i18n("Total entries: %1").arg(count);
int selectCount = Controller::self()->selectedEntries().count();
int filterCount = m_detailedView->visibleItems();
// if more than one book is selected, add the number of selected books
if(filterCount < count && selectCount > 1) {
text += TQChar(' ');
- text += i18n("(%1 filtered; %2 selected)").tqarg(filterCount).tqarg(selectCount);
+ text += i18n("(%1 filtered; %2 selected)").arg(filterCount).arg(selectCount);
} else if(filterCount < count) {
text += TQChar(' ');
- text += i18n("(%1 filtered)").tqarg(filterCount);
+ text += i18n("(%1 filtered)").arg(filterCount);
} else if(selectCount > 1) {
text += TQChar(' ');
- text += i18n("(%1 selected)").tqarg(selectCount);
+ text += i18n("(%1 selected)").arg(selectCount);
}
m_statusBar->setCount(text);
@@ -1591,7 +1591,7 @@ void MainWindow::slotHandleConfigChange() {
nocaps != Config::noCapitalizationList() ||
suffixes != Config::nameSuffixList() ||
prefixes != Config::surnamePrefixList()) {
- // tqinvalidate all groups
+ // invalidate all groups
Data::Document::self()->collection()->invalidateGroups();
// refreshing the title causes the group view to refresh
Controller::self()->slotRefreshField(Data::Document::self()->collection()->fieldByName(TQString::fromLatin1("title")));
@@ -1650,7 +1650,7 @@ void MainWindow::slotUpdateCollectionToolBar(Data::CollPtr coll_) {
KComboBox* cb = tb->getCombo(m_entryGrouping->itemId(i));
if(cb) {
// qt caches the combobox size and never recalculates the sizeHint()
- // the source code recommends calling setFont to tqinvalidate the sizeHint
+ // the source code recommends calling setFont to invalidate the sizeHint
cb->setFont(cb->font());
cb->updateGeometry();
}
@@ -1712,7 +1712,7 @@ void MainWindow::doPrint(const TQString& html_) {
#else
KPrinter* printer = new KPrinter(TQPrinter::PrinterResolution);
- if(printer->setup(this, i18n("Print %1").tqarg(Data::Document::self()->URL().prettyURL()))) {
+ if(printer->setup(this, i18n("Print %1").arg(Data::Document::self()->URL().prettyURL()))) {
printer->setFullPage(false);
printer->setCreator(TQString::fromLatin1("Tellico"));
printer->setDocName(Data::Document::self()->URL().prettyURL());
@@ -1745,7 +1745,7 @@ void MainWindow::doPrint(const TQString& html_) {
p->setPen(TQt::black);
p->setFont(headerFont);
- footerMid = i18n("Page %1").tqarg(page);
+ footerMid = i18n("Page %1").arg(page);
p->drawText(0, 0, pageWidth, lspace, TQt::AlignLeft, headerLeft);
p->drawText(0, 0, pageWidth, lspace, TQt::AlignRight, headerRight);
@@ -2064,7 +2064,7 @@ bool MainWindow::importFile(Import::Format format_, const KURL& url_, Import::Ac
if(!url_.isEmpty() && url_.isValid() && KIO::NetAccess::exists(url_, true, this)) {
coll = ImportDialog::importURL(format_, url_);
} else {
- Kernel::self()->sorry(i18n(errorLoad).tqarg(url_.fileName()));
+ Kernel::self()->sorry(i18n(errorLoad).arg(url_.fileName()));
failed = true;
}
@@ -2288,7 +2288,7 @@ void MainWindow::updateEntrySources() {
for(Fetch::FetcherVec::Iterator it = vec.begin(); it != vec.end(); ++it) {
KAction* action = new KAction(actionCollection());
action->setText(it->source());
- action->setToolTip(i18n("Update entry data from %1").tqarg(it->source()));
+ action->setToolTip(i18n("Update entry data from %1").arg(it->source()));
action->setIconSet(Fetch::Manager::fetcherIcon(it.data()));
connect(action, TQT_SIGNAL(activated()), mapper, TQT_SLOT(map()));
mapper->setMapping(action, it->source());
@@ -2308,7 +2308,7 @@ void MainWindow::importFile(Import::Format format_, const KURL::List& urls_) {
KURL u = urls_.front();
TQString url = u.isLocalFile() ? u.path() : u.prettyURL();
Kernel::self()->sorry(i18n("Tellico can only import one file of this type at a time. "
- "Only %1 will be imported.").tqarg(url));
+ "Only %1 will be imported.").arg(url));
urls.clear();
urls = u;
}