diff options
Diffstat (limited to 'kradio3/src/include/gui_list_helper.h')
-rw-r--r-- | kradio3/src/include/gui_list_helper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kradio3/src/include/gui_list_helper.h b/kradio3/src/include/gui_list_helper.h index 3cf2d25..6a1479c 100644 --- a/kradio3/src/include/gui_list_helper.h +++ b/kradio3/src/include/gui_list_helper.h @@ -30,10 +30,10 @@ public: void setData(const TQValueList<TQString> &data); TQString getCurrentText() const { return m_List->currentText(); } - void setCurrentText(const TQString &s) { m_List->setCurrentItem(m_revData.tqcontains(s) ? m_revData[s] : 0); } + void setCurrentText(const TQString &s) { m_List->setCurrentItem(m_revData.contains(s) ? m_revData[s] : 0); } int count() const { return m_revData.count(); } - bool tqcontains(const TQString &id) const { return m_revData.tqcontains(id); } + bool contains(const TQString &id) const { return m_revData.contains(id); } protected: TLIST *m_List; @@ -79,7 +79,7 @@ public: int count() const { return m_Index2ID.count(); } - bool tqcontains(const TID &id) const { return m_ID2Index.tqcontains(id); } + bool contains(const TID &id) const { return m_ID2Index.contains(id); } protected: SORT_KEY m_skey; @@ -158,7 +158,7 @@ void GUIListHelper<TLIST, TID>::setData (const TQMap<TID, TQString> &data) template <class TLIST, class TID> void GUIListHelper<TLIST, TID>::setCurrentItem(const TID &id) const { - if (m_ID2Index.tqcontains(id)) + if (m_ID2Index.contains(id)) m_List->setCurrentItem(m_ID2Index[id]); else m_List->setCurrentItem(0); |