summaryrefslogtreecommitdiffstats
path: root/src/devices/gui
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitd98fea1f859d23e1b1220a65d7a8eda3b757fd08 (patch)
treea7e6a450baf5017f93f73636f9e8f9b5e9a56f05 /src/devices/gui
parent704123e8152edcd80447659317f1c8b31a1576e6 (diff)
downloadpiklab-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/gui')
-rw-r--r--src/devices/gui/memory_editor.cpp12
-rw-r--r--src/devices/gui/register_view.cpp4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/gui/memory_editor.cpp b/src/devices/gui/memory_editor.cpp
index 4504e6b..6679a57 100644
--- a/src/devices/gui/memory_editor.cpp
+++ b/src/devices/gui/memory_editor.cpp
@@ -167,7 +167,7 @@ void Device::MemoryRangeEditor::setIndex(int index)
void Device::MemoryRangeEditor::moveNext()
{
- TQValueList<HexWordEditor *>::iterator it = _editors.tqfind((HexWordEditor *)sender());
+ TQValueList<HexWordEditor *>::iterator it = _editors.find((HexWordEditor *)sender());
++it;
if ( it==_editors.end() || (*it)->offset()==-1 ) {
if ( current()==uint(_scrollbar->maxValue()) ) return; // at end
@@ -178,7 +178,7 @@ void Device::MemoryRangeEditor::moveNext()
void Device::MemoryRangeEditor::movePrev()
{
- TQValueList<HexWordEditor *>::iterator it = _editors.tqfind((HexWordEditor *)sender());
+ TQValueList<HexWordEditor *>::iterator it = _editors.find((HexWordEditor *)sender());
if ( it==_editors.begin() ) {
if ( current()==0 ) return; // at beginning
setIndex(current()-1);
@@ -209,7 +209,7 @@ void Device::MemoryRangeEditor::moveLast()
void Device::MemoryRangeEditor::moveUp()
{
- int i = _editors.tqfindIndex((HexWordEditor *)sender());
+ int i = _editors.findIndex((HexWordEditor *)sender());
uint line = i / _nbCols;
if ( line==0 ) {
if ( current()==0 ) return; // on first line
@@ -220,7 +220,7 @@ void Device::MemoryRangeEditor::moveUp()
void Device::MemoryRangeEditor::moveDown()
{
- int i = _editors.tqfindIndex((HexWordEditor *)sender());
+ int i = _editors.findIndex((HexWordEditor *)sender());
uint line = i / _nbCols;
if ( line+1==_nbLines ) {
if ( current()==uint(_scrollbar->maxValue()) ) return; // on last line
@@ -232,7 +232,7 @@ void Device::MemoryRangeEditor::moveDown()
void Device::MemoryRangeEditor::moveNextPage()
{
- int i = _editors.tqfindIndex((HexWordEditor *)sender());
+ int i = _editors.findIndex((HexWordEditor *)sender());
if ( _nbLines>(uint(_scrollbar->maxValue()) - current()) ) i = (_nbLines-1) * _nbCols + (i % _nbCols);
else setIndex(current()+_nbLines);
if ( _editors[i]->offset()==-1 ) _editors[i-_nbCols]->setFocus();
@@ -241,7 +241,7 @@ void Device::MemoryRangeEditor::moveNextPage()
void Device::MemoryRangeEditor::movePrevPage()
{
- int i = _editors.tqfindIndex((HexWordEditor *)sender());
+ int i = _editors.findIndex((HexWordEditor *)sender());
if ( current()<_nbLines ) i = (i % _nbCols);
else setIndex(current()-_nbLines);
_editors[i]->setFocus();
diff --git a/src/devices/gui/register_view.cpp b/src/devices/gui/register_view.cpp
index bf49574..c1fa3a6 100644
--- a/src/devices/gui/register_view.cpp
+++ b/src/devices/gui/register_view.cpp
@@ -102,9 +102,9 @@ TQString Register::ListViewItem::text() const
int Register::ListViewItem::compare(TQListViewItem *item, int, bool) const
{
const TypeData &data = static_cast<ListViewItem *>(item)->data();
- int i1 = list().watched().tqfindIndex(data);
+ int i1 = list().watched().findIndex(data);
Q_ASSERT( i1!=-1 );
- int i2 = list().watched().tqfindIndex(_data);
+ int i2 = list().watched().findIndex(_data);
Q_ASSERT( i2!=-1 );
return ( i1-i2 );
}