Diffstat (limited to 'noncore/apps/opie-console/iolayerbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.cpp b/noncore/apps/opie-console/iolayerbase.cpp index 99b6cc1..ec88b49 100644 --- a/noncore/apps/opie-console/iolayerbase.cpp +++ b/noncore/apps/opie-console/iolayerbase.cpp @@ -17,3 +17,4 @@ namespace { id_flow_hw, - id_flow_sw + id_flow_sw, + id_flow_none, }; @@ -40,2 +41,3 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) m_flowSw = new QRadioButton(tr("Software"), m_groupFlow ); + m_flowNone = new QRadioButton( tr("None"), m_groupFlow ); @@ -45,3 +47,3 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) - m_lroot = new QVBoxLayout(this ); + m_lroot = new QVBoxLayout( this ); m_lroot->add(m_speedLabel ); @@ -54,2 +56,3 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) m_hbox->add(m_flowSw ); + m_hbox->add(m_flowNone ); m_lroot->add(m_groupFlow ); @@ -81,4 +84,8 @@ void IOLayerBase::setFlow( Flow flo ) { break; + case None: + m_flowNone->setChecked( true ); + break; } } + void IOLayerBase::setParity( Parity par ) { @@ -118,5 +125,8 @@ IOLayerBase::Flow IOLayerBase::flow()const { return Hardware; - }else { + }else if( m_flowSw->isChecked() ) { qWarning("Software"); return Software; + } else { + qWarning("None"); + return None; } |