summaryrefslogtreecommitdiffstats
path: root/src/progs/gui/hardware_config_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/gui/hardware_config_widget.cpp')
-rw-r--r--src/progs/gui/hardware_config_widget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/progs/gui/hardware_config_widget.cpp b/src/progs/gui/hardware_config_widget.cpp
index 4dbaac6..999a188 100644
--- a/src/progs/gui/hardware_config_widget.cpp
+++ b/src/progs/gui/hardware_config_widget.cpp
@@ -72,7 +72,7 @@ void Hardware::EditDialog::slotOk()
return;
}
TQStringList names = _cwidget->_config->hardwareNames(PortType::Nb_Types); // all hardwares
- if ( names.tqcontains(_name->text()) ) {
+ if ( names.contains(_name->text()) ) {
if ( !MessageBox::askContinue(i18n("Do you want to overwrite this custom hardware \"%1\"?").tqarg(_name->text()),
KStdGuiItem::save()) ) return;
}
@@ -163,7 +163,7 @@ bool Hardware::ConfigWidget::set(const Port::Description &pd, uint i)
bool Hardware::ConfigWidget::setPort(const ::Programmer::HardwareDescription &hd)
{
updateList(hd.port.type);
- int i = _names.tqfindIndex(_config->currentHardware(hd.port.type));
+ int i = _names.findIndex(_config->currentHardware(hd.port.type));
if ( i!=-1 ) _configCombo->setCurrentItem(i);
return set(hd.port, _configCombo->currentItem());
}
@@ -188,7 +188,7 @@ void Hardware::ConfigWidget::editClicked()
int res = hcd->exec();
if ( res==TQDialog::Rejected ) return;
updateList(pd.type);
- int index = _names.tqfindIndex(hcd->savedName());
+ int index = _names.findIndex(hcd->savedName());
_configCombo->setCurrentItem(index);
configChanged(_configCombo->currentItem());
}