summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-26 00:40:14 (UTC)
committer llornkcor <llornkcor>2002-07-26 00:40:14 (UTC)
commitf3556b164b79fc2a9607681bd6bdf2a4c8522d5e (patch) (side-by-side diff)
tree3f43184feccd2fbd38fcc35e18ff530f72b9752c
parent026766fd2318eedd41098ef86ea4c4d8e3ea03bf (diff)
downloadopie-f3556b164b79fc2a9607681bd6bdf2a4c8522d5e.zip
opie-f3556b164b79fc2a9607681bd6bdf2a4c8522d5e.tar.gz
opie-f3556b164b79fc2a9607681bd6bdf2a4c8522d5e.tar.bz2
fixed layout
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettingsbase.cpp50
1 files changed, 22 insertions, 28 deletions
diff --git a/noncore/settings/sound/soundsettingsbase.cpp b/noncore/settings/sound/soundsettingsbase.cpp
index 4c28ae9..3c98362 100644
--- a/noncore/settings/sound/soundsettingsbase.cpp
+++ b/noncore/settings/sound/soundsettingsbase.cpp
@@ -85,2 +85,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
setName( "SoundSettingsBase" );
+ // resize(255,301);
setCaption( tr( "Vmemo Settings" ) );
@@ -89,3 +90,8 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
SoundSettingsBaseLayout->setSpacing( 4 );
- SoundSettingsBaseLayout->setMargin( 6 );
+ SoundSettingsBaseLayout->setMargin( 4 );
+
+ QHBoxLayout *Layout11;
+ Layout11 = new QHBoxLayout;
+ Layout11->setSpacing( 4 );
+ Layout11->setMargin( 0 );
@@ -93,3 +99,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
stereoCheckBox->setText( tr( "Stereo" ) );
- SoundSettingsBaseLayout->addMultiCellWidget(stereoCheckBox , 0, 0, 0, 0 );
+ Layout11->addWidget( stereoCheckBox );
@@ -97,3 +103,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
sixteenBitCheckBox->setText( tr( "16 bit" ) );
- SoundSettingsBaseLayout->addMultiCellWidget( sixteenBitCheckBox , 0, 0, 1, 1 );
+ Layout11->addWidget( sixteenBitCheckBox );
@@ -101,12 +107,12 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
AlertCheckBox->setText( tr( "Visual Alerts" ) );
- SoundSettingsBaseLayout->addMultiCellWidget( AlertCheckBox , 0, 0, 2, 2 );
+ Layout11->addWidget( AlertCheckBox );
- QSpacerItem* spacer0 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
- SoundSettingsBaseLayout->addItem( spacer0, 0, 3 );
-
+ SoundSettingsBaseLayout->addLayout( Layout11, 0, 0);
+
sampleRateLabel = new QLabel(this, "sampleRateLabel" );
sampleRateLabel->setText( tr( "Sample Rate:" ) );
- SoundSettingsBaseLayout->addMultiCellWidget( sampleRateLabel , 1, 1, 0, 0 );
+ SoundSettingsBaseLayout->addMultiCellWidget( sampleRateLabel , 1, 1, 0, 0, 1);
sampleRate = new QComboBox( FALSE,this, "sampleRate" );
+
sampleRate->insertItem( tr( "8000" ) );
@@ -116,7 +122,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
sampleRate->insertItem( tr( "44100" ) );
-// sampleRate->setFixedWidth(90);
- SoundSettingsBaseLayout->addMultiCellWidget( sampleRate, 2, 2, 0, 2 );
-
-// QSpacerItem* spacer = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
-// SoundSettingsBaseLayout->addItem( spacer, 1, 3 );
+ SoundSettingsBaseLayout->addMultiCellWidget( sampleRate, 2, 2, 0, 0, 1 );
@@ -124,3 +126,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
TextLabel1->setText( tr( "Recording Directory:" ) );
- SoundSettingsBaseLayout->addMultiCellWidget( TextLabel1, 3, 3, 0, 0 );
+ SoundSettingsBaseLayout->addMultiCellWidget( TextLabel1, 3, 3, 0, 0, 1);
@@ -128,6 +130,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
LocationComboBox = new QComboBox( FALSE, this, "LocationComboBox" );
- SoundSettingsBaseLayout->addMultiCellWidget( LocationComboBox, 4, 4, 0, 2 );
-
-// QSpacerItem* spacer1 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
-// SoundSettingsBaseLayout->addItem( spacer1, 2, 3 );
+ SoundSettingsBaseLayout->addMultiCellWidget( LocationComboBox, 4, 4, 0, 8, 1);
@@ -136,3 +135,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
TextLabelKey->setText( tr( "Recording Key:" ) );
- SoundSettingsBaseLayout->addMultiCellWidget(TextLabelKey , 5, 5, 0, 0 );
+ SoundSettingsBaseLayout->addMultiCellWidget(TextLabelKey , 5, 5, 0, 0, 1);
@@ -148,6 +147,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
keyComboBox->insertItem( tr( "Key_Mail" ) );
- SoundSettingsBaseLayout->addMultiCellWidget( keyComboBox , 6, 6, 0, 2 );
-
-// QSpacerItem* spacer2 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
-// SoundSettingsBaseLayout->addItem( spacer2, 3, 3 );
+ SoundSettingsBaseLayout->addMultiCellWidget( keyComboBox , 6, 6, 0, 0 ,1);
@@ -156,3 +152,3 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
timeLimitLabel->setText( tr( "Recording Limit in seconds:" ) );
- SoundSettingsBaseLayout->addMultiCellWidget( timeLimitLabel , 7, 7, 0, 0 );
+ SoundSettingsBaseLayout->addMultiCellWidget( timeLimitLabel , 7, 7, 0, 0, 1);
@@ -166,8 +162,6 @@ SoundSettingsBase::SoundSettingsBase( QWidget* parent, const char* name, bool m
- SoundSettingsBaseLayout->addMultiCellWidget(timeLimitComboBox , 8, 8, 0, 2);
+ SoundSettingsBaseLayout->addMultiCellWidget(timeLimitComboBox , 8, 8, 0, 0, 1);
-// QSpacerItem* spacer3 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
-// SoundSettingsBaseLayout->addItem( spacer3, 4, 3 );
- QSpacerItem* spacer4 = new QSpacerItem( 20, 20,QSizePolicy::Expanding, QSizePolicy::Expanding );
+ QSpacerItem* spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Expanding );
SoundSettingsBaseLayout->addItem( spacer4, 9, 0 );