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/progs/gui | |
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/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())); |