summaryrefslogtreecommitdiffstats
path: root/src/detailedlistview.cpp
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/detailedlistview.cpp
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/detailedlistview.cpp')
-rw-r--r--src/detailedlistview.cpp24
1 files changed, 12 insertions, 12 deletions
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<int> 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<ConfigInfo> 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<int>(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<int> 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<DetailedEntryItem*>(it.current())->setState(DetailedEntryItem::Normal);
}