diff options
Diffstat (limited to 'src/common/gui')
-rw-r--r-- | src/common/gui/editlistbox.cpp | 4 | ||||
-rw-r--r-- | src/common/gui/key_gui.h | 8 | ||||
-rw-r--r-- | src/common/gui/list_container.cpp | 2 | ||||
-rw-r--r-- | src/common/gui/list_view.cpp | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/common/gui/editlistbox.cpp b/src/common/gui/editlistbox.cpp index 2e40b8a..62a1d98 100644 --- a/src/common/gui/editlistbox.cpp +++ b/src/common/gui/editlistbox.cpp @@ -205,7 +205,7 @@ void EditListBox::addItem(const TQString &text) { bool alreadyInList(false); //if we didn't check for dupes at the inserting we have to do it now - if ( _mode==DuplicatesDisallowed ) alreadyInList = _listView->tqfindItem(text, textColumn()); + if ( _mode==DuplicatesDisallowed ) alreadyInList = _listView->findItem(text, textColumn()); if (m_lineEdit) { bool block = m_lineEdit->signalsBlocked(); @@ -311,7 +311,7 @@ void EditListBox::updateButtons() TQString text = m_lineEdit->text(); if ( _mode!=DuplicatesCheckedAtEntering ) _addButton->setEnabled(!text.isEmpty()); else if ( text.isEmpty() ) _addButton->setEnabled(false); - else _addButton->setEnabled(!_listView->tqfindItem(text, textColumn())); + else _addButton->setEnabled(!_listView->findItem(text, textColumn())); } } if (_removeButton) _removeButton->setEnabled(item); diff --git a/src/common/gui/key_gui.h b/src/common/gui/key_gui.h index 5ae0a84..054a513 100644 --- a/src/common/gui/key_gui.h +++ b/src/common/gui/key_gui.h @@ -32,16 +32,16 @@ public: ConstIterator end() const { return _ids.end(); } uint count() const { return _ids.count(); } void appendItem(const KeyType &key, Type type) { - CRASH_ASSERT( !_ids.tqcontains(key) ); + CRASH_ASSERT( !_ids.contains(key) ); _ids[key] = append(type); } KeyType currentItem() const { return key(currentId()); } void setCurrentItem(const KeyType &key) { - if ( _ids.tqcontains(key) ) setCurrentId(_ids[key]); + if ( _ids.contains(key) ) setCurrentId(_ids[key]); } - bool tqcontains(const KeyType &key) const { return _ids.tqcontains(key); } + bool contains(const KeyType &key) const { return _ids.contains(key); } Type item(const KeyType &key) const { - CRASH_ASSERT( _ids.tqcontains(key) ); + CRASH_ASSERT( _ids.contains(key) ); return get(_ids[key]); } Type item(ConstIterator it) const { diff --git a/src/common/gui/list_container.cpp b/src/common/gui/list_container.cpp index 78f5a65..cbdec17 100644 --- a/src/common/gui/list_container.cpp +++ b/src/common/gui/list_container.cpp @@ -91,5 +91,5 @@ void ListViewItemContainer::appendItem(const TQPixmap &icon, const TQString &tit int ListViewItemContainer::id(const TQListViewItem *item) const { - return (_ids->tqcontains(item) ? int((*_ids)[item]) : -1); + return (_ids->contains(item) ? int((*_ids)[item]) : -1); } diff --git a/src/common/gui/list_view.cpp b/src/common/gui/list_view.cpp index 4d5ac14..218241d 100644 --- a/src/common/gui/list_view.cpp +++ b/src/common/gui/list_view.cpp @@ -191,9 +191,9 @@ void EditListViewItem::removeEditBox() void EditListViewItem::editDone(int col, const TQWidget *edit) { - if ( edit->tqmetaObject()->tqfindProperty("text", true)!=-1 ) + if ( edit->tqmetaObject()->findProperty("text", true)!=-1 ) emit listView()->itemRenamed(this, col, edit->property("text").toString()); - else if ( edit->tqmetaObject()->tqfindProperty("currentText", true)!=-1 ) + else if ( edit->tqmetaObject()->findProperty("currentText", true)!=-1 ) emit listView()->itemRenamed(this, col, edit->property("currentText").toString()); } |