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 @@ -16,5 +16,6 @@ namespace { enum FlowIds { id_flow_hw, - id_flow_sw + id_flow_sw, + id_flow_none, }; @@ -39,4 +40,5 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) m_flowHw = new QRadioButton(tr("Hardware"), m_groupFlow ); m_flowSw = new QRadioButton(tr("Software"), m_groupFlow ); + m_flowNone = new QRadioButton( tr("None"), m_groupFlow ); m_groupParity = new QButtonGroup(tr("Parity"), this ); @@ -44,5 +46,5 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) m_parityEven = new QRadioButton(tr("Even"), m_groupParity ); - m_lroot = new QVBoxLayout(this ); + m_lroot = new QVBoxLayout( this ); m_lroot->add(m_speedLabel ); m_lroot->add(m_speedBox ); @@ -53,4 +55,5 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) m_hbox->add(m_flowHw ); m_hbox->add(m_flowSw ); + m_hbox->add(m_flowNone ); m_lroot->add(m_groupFlow ); m_lroot->setStretchFactor(m_groupFlow, 2 ); @@ -80,6 +83,10 @@ void IOLayerBase::setFlow( Flow flo ) { m_flowHw->setChecked( true ); break; + case None: + m_flowNone->setChecked( true ); + break; } } + void IOLayerBase::setParity( Parity par ) { switch( par ) { @@ -117,7 +124,10 @@ IOLayerBase::Flow IOLayerBase::flow()const { qWarning("Hardware flow"); return Hardware; - }else { + }else if( m_flowSw->isChecked() ) { qWarning("Software"); return Software; + } else { + qWarning("None"); + return None; } } |