diff options
Diffstat (limited to 'src/progs/gui')
-rw-r--r-- | src/progs/gui/hardware_config_widget.cpp | 6 | ||||
-rw-r--r-- | src/progs/gui/port_selector.cpp | 2 |
2 files changed, 4 insertions, 4 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()); } diff --git a/src/progs/gui/port_selector.cpp b/src/progs/gui/port_selector.cpp index 4bb4539..644caaf 100644 --- a/src/progs/gui/port_selector.cpp +++ b/src/progs/gui/port_selector.cpp @@ -93,7 +93,7 @@ void PortSelector::addPortType(const Port::Description &pd) if (pd.type.data().withDevice) { _combos[pd.type.type()] = new TQComboBox(true, _main); for (uint i=0; i<list.count(); i++) _combos[pd.type.type()]->insertItem(list[i]); - if ( !pd.device.isEmpty() && !list.tqcontains(pd.device) ) _combos[pd.type.type()]->insertItem(pd.device); + if ( !pd.device.isEmpty() && !list.contains(pd.device) ) _combos[pd.type.type()]->insertItem(pd.device); _combos[pd.type.type()]->setCurrentText(pd.device); connect(_combos[pd.type.type()], TQT_SIGNAL(activated(int)), TQT_SIGNAL(changed())); connect(_combos[pd.type.type()], TQT_SIGNAL(textChanged(const TQString &)), TQT_SLOT(textChanged())); |