author | harlekin <harlekin> | 2002-10-24 18:41:09 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-24 18:41:09 (UTC) |
commit | 94573faf2e89723a49bbaf3630f1d19f80ba6b27 (patch) (side-by-side diff) | |
tree | 52a5258e3ba595179fc240ee883effb05417c88a /noncore | |
parent | 3773cd825129f1cc6fa7a4ecb4129634f5189984 (diff) | |
download | opie-94573faf2e89723a49bbaf3630f1d19f80ba6b27.zip opie-94573faf2e89723a49bbaf3630f1d19f80ba6b27.tar.gz opie-94573faf2e89723a49bbaf3630f1d19f80ba6b27.tar.bz2 |
fixed layout and disabled advanced options since htey are not all implemented
-rw-r--r-- | noncore/apps/opie-console/terminalwidget.cpp | 14 | ||||
-rw-r--r-- | noncore/apps/opie-console/terminalwidget.h | 6 |
2 files changed, 11 insertions, 9 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 @@ -8,3 +8,5 @@ #include <qhgroupbox.h> +#include <qhbuttongroup.h> #include <qlayout.h> +#include <qhbox.h> @@ -43,3 +45,3 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, - m_groupSize = new QButtonGroup(tr("Font size"), this ); + m_groupSize = new QHButtonGroup(tr("Font size"), this ); m_sizeSmall = new QRadioButton(tr("small"), m_groupSize ); @@ -51,2 +53,3 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv ); + m_groupConv->hide(); @@ -55,6 +58,6 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, 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 ); @@ -64,6 +67,2 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, 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 ); @@ -75,2 +74,3 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, m_lroot->add(m_groupOptions ); + m_lroot->addStretch( 0 ); diff --git a/noncore/apps/opie-console/terminalwidget.h b/noncore/apps/opie-console/terminalwidget.h index c6c2be2..217fea7 100644 --- a/noncore/apps/opie-console/terminalwidget.h +++ b/noncore/apps/opie-console/terminalwidget.h @@ -13,5 +13,8 @@ class QCheckBox; class QHGroupBox; +class QHBox; class TerminalWidget : public ProfileDialogTerminalWidget { + Q_OBJECT + public: @@ -23,2 +26,3 @@ public: void save( Profile& ); + private: @@ -26,4 +30,2 @@ private: - QHBoxLayout* m_hbox; - QLabel* m_terminal, *m_colorLabel; |