From 031454e56009d576589c28757f6c6fcf4884095e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:34:15 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/detailedlistview.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/detailedlistview.cpp') diff --git a/src/detailedlistview.cpp b/src/detailedlistview.cpp index 93b6894..716f5df 100644 --- a/src/detailedlistview.cpp +++ b/src/detailedlistview.cpp @@ -68,7 +68,7 @@ DetailedListView::DetailedListView(TQWidget* parent_, const char* name_/*=0*/) connect(m_headerMenu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotHeaderMenuActivated(int))); - m_checkPix = UserIcon(TQString::tqfromLatin1("checkmark")); + m_checkPix = UserIcon(TQString::fromLatin1("checkmark")); } DetailedListView::~DetailedListView() { @@ -82,15 +82,15 @@ void DetailedListView::addCollection(Data::CollPtr coll_) { m_imageColumns.clear(); // myDebug() << "DetailedListView::addCollection()" << endl; - KConfigGroup config(kapp->config(), TQString::tqfromLatin1("Options - %1").tqarg(coll_->typeName())); + KConfigGroup config(kapp->config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName())); TQString configN; if(coll_->type() == Data::Collection::Base) { KURL url = Kernel::self()->URL(); for(uint i = 0; i < Config::maxCustomURLSettings(); ++i) { - KURL u = config.readEntry(TQString::tqfromLatin1("URL_%1").tqarg(i)); + KURL u = config.readEntry(TQString::fromLatin1("URL_%1").arg(i)); if(u == url) { - configN = TQString::tqfromLatin1("_%1").tqarg(i); + configN = TQString::fromLatin1("_%1").arg(i); break; } } @@ -98,11 +98,11 @@ void DetailedListView::addCollection(Data::CollPtr coll_) { TQStringList colNames = config.readListEntry("ColumnNames" + configN); if(colNames.isEmpty()) { - colNames = TQString::tqfromLatin1("title"); + colNames = TQString::fromLatin1("title"); } // this block compensates for the chance that the user added a field and it wasn't - // written to the widths. Also compensates for 0.5.x to 0.6.x column tqlayout changes + // written to the widths. Also compensates for 0.5.x to 0.6.x column layout changes TQValueList colWidths = config.readIntListEntry("ColumnWidths" + configN); if(colWidths.empty()) { colWidths.insert(colWidths.begin(), colNames.count(), -1); // automatic width @@ -747,16 +747,16 @@ void DetailedListView::slotUpdatePixmap() { } void DetailedListView::saveConfig(Tellico::Data::CollPtr coll_, int configIndex_) { - KConfigGroup config(kapp->config(), TQString::tqfromLatin1("Options - %1").tqarg(coll_->typeName())); + KConfigGroup config(kapp->config(), TQString::fromLatin1("Options - %1").arg(coll_->typeName())); // all of this is to have custom settings on a per file basis TQString configN; if(coll_->type() == Data::Collection::Base) { TQValueList info; for(uint i = 0; i < Config::maxCustomURLSettings(); ++i) { - KURL u = config.readEntry(TQString::tqfromLatin1("URL_%1").tqarg(i)); + KURL u = config.readEntry(TQString::fromLatin1("URL_%1").arg(i)); if(!u.isEmpty() && static_cast(i) != configIndex_) { - configN = TQString::tqfromLatin1("_%1").tqarg(i); + configN = TQString::fromLatin1("_%1").arg(i); ConfigInfo ci; ci.cols = config.readListEntry("ColumnNames" + configN); ci.widths = config.readIntListEntry("ColumnWidths" + configN); @@ -772,7 +772,7 @@ void DetailedListView::saveConfig(Tellico::Data::CollPtr coll_, int configIndex_ uint limit = TQMIN(info.count(), Config::maxCustomURLSettings()-1); for(uint i = 0; i < limit; ++i) { // starts at one since the current config will be written below - configN = TQString::tqfromLatin1("_%1").tqarg(i+1); + configN = TQString::fromLatin1("_%1").arg(i+1); config.writeEntry("ColumnNames" + configN, info[i].cols); config.writeEntry("ColumnWidths" + configN, info[i].widths); config.writeEntry("ColumnOrder" + configN, info[i].order); @@ -781,7 +781,7 @@ void DetailedListView::saveConfig(Tellico::Data::CollPtr coll_, int configIndex_ config.writeEntry("PrevSortColumn" + configN, info[i].prevSort); config.writeEntry("Prev2SortColumn" + configN, info[i].prev2Sort); } - configN = TQString::tqfromLatin1("_0"); + configN = TQString::fromLatin1("_0"); } TQValueList widths, order; @@ -855,7 +855,7 @@ void DetailedListView::selectAllVisible() { slotSelectionChanged(); } -void DetailedListView::resetEntrytqStatus() { +void DetailedListView::resetEntryStatus() { for(TQListViewItemIterator it(this); it.current(); ++it) { static_cast(it.current())->setState(DetailedEntryItem::Normal); } -- cgit v1.2.1