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/devices/base | |
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/devices/base')
-rw-r--r-- | src/devices/base/register.cpp | 6 | ||||
-rw-r--r-- | src/devices/base/register.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/base/register.cpp b/src/devices/base/register.cpp index dcd4c18..946f668 100644 --- a/src/devices/base/register.cpp +++ b/src/devices/base/register.cpp @@ -83,7 +83,7 @@ void Register::List::init() void Register::List::setWatched(const TypeData &data, bool watched) { if (watched) { - if ( _watched.tqcontains(data) ) return; + if ( _watched.contains(data) ) return; _watched.append(data); } else _watched.remove(data); delayedChanged(); @@ -122,7 +122,7 @@ void Register::List::setPortData(uint index, const TQMap<uint, Device::PortBitDa BitValue Register::List::value(const TypeData &data) const { if ( !data.address().isValid() ) { - if ( !_specials.tqcontains(data.name()) ) return BitValue(); + if ( !_specials.contains(data.name()) ) return BitValue(); return _specials[data.name()].current; } Q_ASSERT( (data.nbChars()%2)==0 ); @@ -140,7 +140,7 @@ BitValue Register::List::value(const TypeData &data) const BitValue Register::List::oldValue(const TypeData &data) const { if ( !data.address().isValid() ) { - if ( !_specials.tqcontains(data.name()) ) return BitValue(); + if ( !_specials.contains(data.name()) ) return BitValue(); return _specials[data.name()].old; } Q_ASSERT( (data.nbChars()%2)==0 ); diff --git a/src/devices/base/register.h b/src/devices/base/register.h index 5e89f91..3936ad1 100644 --- a/src/devices/base/register.h +++ b/src/devices/base/register.h @@ -103,7 +103,7 @@ public: void setWatched(const TypeData &data, bool watched); void clearWatched(); const TQValueList<TypeData> &watched() const { return _watched; } - bool isWatched(const TypeData &data) const { return _watched.tqcontains(data); } + bool isWatched(const TypeData &data) const { return _watched.contains(data); } void setValue(const TypeData &data, BitValue value); BitValue value(const TypeData &data) const; BitValue oldValue(const TypeData &data) const; |