summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/iolayerbase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.cpp b/noncore/apps/opie-console/iolayerbase.cpp
index 08acb75..49ed284 100644
--- a/noncore/apps/opie-console/iolayerbase.cpp
+++ b/noncore/apps/opie-console/iolayerbase.cpp
@@ -53,39 +53,41 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name )
53 m_lroot->setStretchFactor(m_speedLabel, 1); 53 m_lroot->setStretchFactor(m_speedLabel, 1);
54 m_lroot->setStretchFactor(m_speedBox, 1 ); 54 m_lroot->setStretchFactor(m_speedBox, 1 );
55 55
56 m_hbox = new QHBoxLayout(m_groupFlow, 2 ); 56 m_hbox = new QHBoxLayout(m_groupFlow, 2 );
57 m_hbox->add(m_flowHw ); 57 m_hbox->add(m_flowHw );
58 m_hbox->add(m_flowSw ); 58 m_hbox->add(m_flowSw );
59 m_hbox->add(m_flowNone ); 59 m_hbox->add(m_flowNone );
60 m_lroot->add(m_groupFlow ); 60 m_lroot->add(m_groupFlow );
61 m_lroot->setStretchFactor(m_groupFlow, 2 ); 61 m_lroot->setStretchFactor(m_groupFlow, 2 );
62 62
63 m_hboxPar = new QHBoxLayout( m_groupParity, 2 ); 63 m_hboxPar = new QHBoxLayout( m_groupParity, 2 );
64 m_hboxPar->add(m_parityOdd ); 64 m_hboxPar->add(m_parityOdd );
65 m_hboxPar->add(m_parityEven ); 65 m_hboxPar->add(m_parityEven );
66 m_hboxPar->add(m_parityNone ); 66 m_hboxPar->add(m_parityNone );
67 m_lroot->add(m_groupParity ); 67 m_lroot->add(m_groupParity );
68 m_lroot->setStretchFactor(m_groupParity, 2 ); 68 m_lroot->setStretchFactor(m_groupParity, 2 );
69 m_lroot->addStretch(2);
69 70
70 // profiles 71 // profiles
71 m_speedBox->insertItem(tr("115200 baud"), id_baud_115200 ); 72 m_speedBox->insertItem(tr("115200 baud"), id_baud_115200 );
72 m_speedBox->insertItem(tr("57600 baud"), id_baud_57600 ); 73 m_speedBox->insertItem(tr("57600 baud"), id_baud_57600 );
73 m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); 74 m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 );
74 m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); 75 m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 );
75 m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); 76 m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 );
77
76}; 78};
77IOLayerBase::~IOLayerBase() { 79IOLayerBase::~IOLayerBase() {
78 80
79} 81}
80void IOLayerBase::setFlow( Flow flo ) { 82void IOLayerBase::setFlow( Flow flo ) {
81 switch ( flo ) { 83 switch ( flo ) {
82 case Software: 84 case Software:
83 m_flowSw->setChecked( true ); 85 m_flowSw->setChecked( true );
84 break; 86 break;
85 case Hardware: 87 case Hardware:
86 m_flowHw->setChecked( true ); 88 m_flowHw->setChecked( true );
87 break; 89 break;
88 case None: 90 case None:
89 m_flowNone->setChecked( true ); 91 m_flowNone->setChecked( true );
90 break; 92 break;
91 } 93 }