summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/iolayerbase.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/iolayerbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/iolayerbase.cpp16
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 {
17 id_flow_hw, 17 id_flow_hw,
18 id_flow_sw 18 id_flow_sw,
19 id_flow_none,
19 }; 20 };
@@ -40,2 +41,3 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name )
40 m_flowSw = new QRadioButton(tr("Software"), m_groupFlow ); 41 m_flowSw = new QRadioButton(tr("Software"), m_groupFlow );
42 m_flowNone = new QRadioButton( tr("None"), m_groupFlow );
41 43
@@ -45,3 +47,3 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name )
45 47
46 m_lroot = new QVBoxLayout(this ); 48 m_lroot = new QVBoxLayout( this );
47 m_lroot->add(m_speedLabel ); 49 m_lroot->add(m_speedLabel );
@@ -54,2 +56,3 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name )
54 m_hbox->add(m_flowSw ); 56 m_hbox->add(m_flowSw );
57 m_hbox->add(m_flowNone );
55 m_lroot->add(m_groupFlow ); 58 m_lroot->add(m_groupFlow );
@@ -81,4 +84,8 @@ void IOLayerBase::setFlow( Flow flo ) {
81 break; 84 break;
85 case None:
86 m_flowNone->setChecked( true );
87 break;
82 } 88 }
83} 89}
90
84void IOLayerBase::setParity( Parity par ) { 91void IOLayerBase::setParity( Parity par ) {
@@ -118,5 +125,8 @@ IOLayerBase::Flow IOLayerBase::flow()const {
118 return Hardware; 125 return Hardware;
119 }else { 126 }else if( m_flowSw->isChecked() ) {
120 qWarning("Software"); 127 qWarning("Software");
121 return Software; 128 return Software;
129 } else {
130 qWarning("None");
131 return None;
122 } 132 }