author | harlekin <harlekin> | 2002-10-24 18:41:09 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-24 18:41:09 (UTC) |
commit | 94573faf2e89723a49bbaf3630f1d19f80ba6b27 (patch) (unidiff) | |
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 @@ | |||
8 | #include <qhgroupbox.h> | 8 | #include <qhgroupbox.h> |
9 | #include <qhbuttongroup.h> | ||
9 | #include <qlayout.h> | 10 | #include <qlayout.h> |
11 | #include <qhbox.h> | ||
10 | 12 | ||
@@ -43,3 +45,3 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, | |||
43 | 45 | ||
44 | m_groupSize = new QButtonGroup(tr("Font size"), this ); | 46 | m_groupSize = new QHButtonGroup(tr("Font size"), this ); |
45 | m_sizeSmall = new QRadioButton(tr("small"), m_groupSize ); | 47 | m_sizeSmall = new QRadioButton(tr("small"), m_groupSize ); |
@@ -51,2 +53,3 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, | |||
51 | m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv ); | 53 | m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv ); |
54 | m_groupConv->hide(); | ||
52 | 55 | ||
@@ -55,6 +58,6 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, | |||
55 | m_optionWrap = new QCheckBox(tr("Line wrap"), m_groupOptions ); | 58 | m_optionWrap = new QCheckBox(tr("Line wrap"), m_groupOptions ); |
59 | m_groupOptions->hide(); | ||
56 | 60 | ||
57 | m_lroot = new QVBoxLayout(this, 2 ); | 61 | m_lroot = new QVBoxLayout( this ); |
58 | m_typeBox = new QVBoxLayout( m_lroot ); | 62 | m_typeBox = new QVBoxLayout( m_lroot ); |
59 | m_hbox = new QHBoxLayout( m_groupSize, 2 ); | ||
60 | m_colorBox = new QVBoxLayout( m_lroot ); | 63 | m_colorBox = new QVBoxLayout( m_lroot ); |
@@ -64,6 +67,2 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, | |||
64 | m_typeBox->add(m_terminalBox ); | 67 | m_typeBox->add(m_terminalBox ); |
65 | |||
66 | m_hbox->add(m_sizeSmall ); | ||
67 | m_hbox->add(m_sizeMedium ); | ||
68 | m_hbox->add(m_sizeLarge ); | ||
69 | m_lroot->add(m_groupSize ); | 68 | m_lroot->add(m_groupSize ); |
@@ -75,2 +74,3 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, | |||
75 | m_lroot->add(m_groupOptions ); | 74 | m_lroot->add(m_groupOptions ); |
75 | m_lroot->addStretch( 0 ); | ||
76 | 76 | ||
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; | |||
13 | class QHGroupBox; | 13 | class QHGroupBox; |
14 | class QHBox; | ||
14 | 15 | ||
15 | class TerminalWidget : public ProfileDialogTerminalWidget { | 16 | class TerminalWidget : public ProfileDialogTerminalWidget { |
17 | |||
16 | Q_OBJECT | 18 | Q_OBJECT |
19 | |||
17 | public: | 20 | public: |
@@ -23,2 +26,3 @@ public: | |||
23 | void save( Profile& ); | 26 | void save( Profile& ); |
27 | |||
24 | private: | 28 | private: |
@@ -26,4 +30,2 @@ private: | |||
26 | 30 | ||
27 | QHBoxLayout* m_hbox; | ||
28 | |||
29 | QLabel* m_terminal, *m_colorLabel; | 31 | QLabel* m_terminal, *m_colorLabel; |