diff options
Diffstat (limited to 'src/devices/gui')
-rw-r--r-- | src/devices/gui/memory_editor.cpp | 12 | ||||
-rw-r--r-- | src/devices/gui/register_view.cpp | 4 |
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 ); } |