summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/terminalwidget.cpp20
-rw-r--r--noncore/apps/opie-console/terminalwidget.h6
2 files changed, 14 insertions, 12 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,6 +45,6 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent,
- 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 );
@@ -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;