Diffstat (limited to 'noncore/apps/opie-console/terminalwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/terminalwidget.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/noncore/apps/opie-console/terminalwidget.cpp b/noncore/apps/opie-console/terminalwidget.cpp index fc0f3ce..eb14a3f 100644 --- a/noncore/apps/opie-console/terminalwidget.cpp +++ b/noncore/apps/opie-console/terminalwidget.cpp @@ -7,5 +7,7 @@ #include <qvbox.h> #include <qhgroupbox.h> +#include <qhbuttongroup.h> #include <qlayout.h> +#include <qhbox.h> #include "terminalwidget.h" @@ -42,20 +44,21 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, m_colorCmb = new QComboBox(this ); - m_groupSize = new QButtonGroup(tr("Font size"), this ); - m_sizeSmall = new QRadioButton(tr("small"), m_groupSize ); - m_sizeMedium = new QRadioButton(tr("medium"), m_groupSize ); - m_sizeLarge = new QRadioButton(tr("large"), m_groupSize ); + m_groupSize = new QHButtonGroup(tr("Font size"), this ); + m_sizeSmall = new QRadioButton(tr("small"), m_groupSize ); + m_sizeMedium = new QRadioButton(tr("medium"), m_groupSize ); + m_sizeLarge = new QRadioButton(tr("large"), m_groupSize ); m_groupConv = new QHGroupBox(tr("Line-break conversions"), this ); m_convInbound = new QCheckBox(tr("Inbound"), m_groupConv ); m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv ); + m_groupConv->hide(); m_groupOptions = new QHGroupBox( tr("Options"), this ); m_optionEcho = new QCheckBox(tr("Local echo"), m_groupOptions ); m_optionWrap = new QCheckBox(tr("Line wrap"), m_groupOptions ); + m_groupOptions->hide(); - m_lroot = new QVBoxLayout(this, 2 ); + m_lroot = new QVBoxLayout( this ); m_typeBox = new QVBoxLayout( m_lroot ); - m_hbox = new QHBoxLayout( m_groupSize, 2 ); m_colorBox = new QVBoxLayout( m_lroot ); @@ -63,8 +66,4 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, m_typeBox->add(m_terminal ); m_typeBox->add(m_terminalBox ); - - m_hbox->add(m_sizeSmall ); - m_hbox->add(m_sizeMedium ); - m_hbox->add(m_sizeLarge ); m_lroot->add(m_groupSize ); @@ -74,4 +73,5 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, m_lroot->add(m_groupConv ); m_lroot->add(m_groupOptions ); + m_lroot->addStretch( 0 ); // Fill in some options |