diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | d98fea1f859d23e1b1220a65d7a8eda3b757fd08 (patch) | |
tree | a7e6a450baf5017f93f73636f9e8f9b5e9a56f05 /src/common/gui | |
parent | 704123e8152edcd80447659317f1c8b31a1576e6 (diff) | |
download | piklab-d98fea1f859d23e1b1220a65d7a8eda3b757fd08.tar.gz piklab-d98fea1f859d23e1b1220a65d7a8eda3b757fd08.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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()); } |