diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:33:27 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:33:27 -0600 |
commit | 9d6927a7d6a543332f828bffedf65eecf6774c6d (patch) | |
tree | 9f8210096908fddb7d266b477152021c45fa1a00 /src/progs/direct/gui | |
parent | 3534213800bd8d151759df307755f2bbd592dfa1 (diff) | |
download | piklab-9d6927a7d6a543332f828bffedf65eecf6774c6d.tar.gz piklab-9d6927a7d6a543332f828bffedf65eecf6774c6d.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/progs/direct/gui')
-rw-r--r-- | src/progs/direct/gui/direct_config_widget.cpp | 10 | ||||
-rw-r--r-- | src/progs/direct/gui/direct_config_widget.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/progs/direct/gui/direct_config_widget.cpp b/src/progs/direct/gui/direct_config_widget.cpp index 36a8f11..b5f651c 100644 --- a/src/progs/direct/gui/direct_config_widget.cpp +++ b/src/progs/direct/gui/direct_config_widget.cpp @@ -57,7 +57,7 @@ Direct::HConfigWidget::HConfigWidget(::Programmer::Base &base, TQWidget *parent, _testLabels[i] = new TQLabel(w); TQToolTip::add(_testcbs[i], PIN_DATA[i].testComment); grid->addWidget(_testLabels[i], i, 4); - updateTesttqStatus(PinType(i), false); + updateTestStatus(PinType(i), false); } else { _testcbs[i] = 0; _testLabels[i] = 0; @@ -150,11 +150,11 @@ void Direct::HConfigWidget::updateTestPin(PinType ptype) Q_ASSERT( _connected && ptype!=DataIn ); bool on = _testcbs[ptype]->isChecked(); hardware()->setPin(ptype, on); - updateTesttqStatus(ptype, on); + updateTestStatus(ptype, on); if ( ptype==Vpp ) updateDataIn(); } -void Direct::HConfigWidget::updateTesttqStatus(PinType ptype, bool on) +void Direct::HConfigWidget::updateTestStatus(PinType ptype, bool on) { if (on) _testLabels[ptype]->setText(i18n(PIN_DATA[ptype].onLabel)); else _testLabels[ptype]->setText(i18n(PIN_DATA[ptype].offLabel)); @@ -163,7 +163,7 @@ void Direct::HConfigWidget::updateTesttqStatus(PinType ptype, bool on) void Direct::HConfigWidget::updateDataIn() { bool on = hardware()->readBit(); - updateTesttqStatus(DataIn, on); + updateTestStatus(DataIn, on); _testcbs[DataIn]->setChecked(on); } @@ -204,7 +204,7 @@ bool Direct::HConfigWidget::set(const Port::Description &pd, const ::Hardware::D if (_edit) { for (uint i=0; i<Nb_PinTypes; i++) { _testcbs[i]->setEnabled(_connected); - updateTesttqStatus(PinType(i), false); + updateTestStatus(PinType(i), false); } if ( _connected ) _timerPollDataOut->start(100); _sendBitsButton->setEnabled(_connected); diff --git a/src/progs/direct/gui/direct_config_widget.h b/src/progs/direct/gui/direct_config_widget.h index d61be1a..8d7d5cb 100644 --- a/src/progs/direct/gui/direct_config_widget.h +++ b/src/progs/direct/gui/direct_config_widget.h @@ -55,7 +55,7 @@ private: void sendBits(uint d, int nbb); void updateTestPin(PinType ptype); - void updateTesttqStatus(PinType ptype, bool on); + void updateTestStatus(PinType ptype, bool on); uint pin(PinType ptype) const; void updatePin(PinType ptype); Hardware *hardware() { return static_cast<Hardware *>(_hardware); } |