summaryrefslogtreecommitdiffstats
path: root/src/detailedlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/detailedlistview.cpp')
-rw-r--r--src/detailedlistview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/detailedlistview.cpp b/src/detailedlistview.cpp
index 8590126..93b6894 100644
--- a/src/detailedlistview.cpp
+++ b/src/detailedlistview.cpp
@@ -129,7 +129,7 @@ void DetailedListView::addCollection(Data::CollPtr coll_) {
// only need to shift by number of "holes"
TQValueList<int> newOrder;
for(TQValueList<int>::ConstIterator it = colOrder.begin(); it != colOrder.end(); ++it) {
- if(removeCols.tqfindIndex(*it) == -1) {
+ if(removeCols.findIndex(*it) == -1) {
int i = *it;
for(uint j = 0; j < removeCols.count() && removeCols[j] < i; ++j) {
--i;
@@ -142,7 +142,7 @@ void DetailedListView::addCollection(Data::CollPtr coll_) {
bool none = true;
Data::FieldVec fields = coll_->fields();
for(Data::FieldVec::Iterator fIt = fields.begin(); fIt != fields.end(); ++fIt) {
- if(colNames.tqfindIndex(fIt->name()) > -1 && colWidths.count() > 0) {
+ if(colNames.findIndex(fIt->name()) > -1 && colWidths.count() > 0) {
addField(fIt, colWidths.front());
if(none && colWidths.front() != 0) {
none = false;
@@ -153,7 +153,7 @@ void DetailedListView::addCollection(Data::CollPtr coll_) {
}
}
if(none && columns() > 0 && !colNames.isEmpty()) {
- showColumn(coll_->fieldNames().tqfindIndex(colNames[0]));
+ showColumn(coll_->fieldNames().findIndex(colNames[0]));
}
TQValueList<int>::ConstIterator it = colOrder.begin();
@@ -666,7 +666,7 @@ void DetailedListView::reorderFields(const Data::FieldVec& fields_) {
TQStringList visible = visibleColumns();
for( ; it != fields_.end() && sec < columns(); ++sec, ++it) {
header()->setLabel(sec, it->title());
- bool isVisible = (visible.tqfindIndex(it->title()) > -1);
+ bool isVisible = (visible.findIndex(it->title()) > -1);
m_headerMenu->changeItem(m_headerMenu->idAt(sec+1), it->title());
m_headerMenu->setItemChecked(m_headerMenu->idAt(sec+1), isVisible);
m_columnWidths[sec] = 0;