author | llornkcor <llornkcor> | 2002-07-26 00:45:18 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-26 00:45:18 (UTC) |
commit | cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041 (patch) (unidiff) | |
tree | 1761b748606385d299063ce00fc2d32baea1189d | |
parent | f3556b164b79fc2a9607681bd6bdf2a4c8522d5e (diff) | |
download | opie-cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041.zip opie-cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041.tar.gz opie-cf32a5b8d6886b357d0f4a6ecdc5b10f78a6a041.tar.bz2 |
fix size limit config
-rw-r--r-- | noncore/settings/sound/soundsettings.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp index 99fccf7..010e0af 100644 --- a/noncore/settings/sound/soundsettings.cpp +++ b/noncore/settings/sound/soundsettings.cpp | |||
@@ -72,50 +72,52 @@ SoundSettings::SoundSettings( QWidget* parent, const char* objname, WFlags fl ) | |||
72 | QString release=name.release; | 72 | QString release=name.release; |
73 | if( release.find("embedix",0,TRUE) != -1) { | 73 | if( release.find("embedix",0,TRUE) != -1) { |
74 | qDebug("IS System Zaurus"); | 74 | qDebug("IS System Zaurus"); |
75 | systemZaurus=TRUE; | 75 | systemZaurus=TRUE; |
76 | } | 76 | } |
77 | } | 77 | } |
78 | if(!systemZaurus) { | 78 | if(!systemZaurus) { |
79 | stereoCheckBox->setChecked(TRUE); | 79 | stereoCheckBox->setChecked(TRUE); |
80 | } | 80 | } |
81 | stereoCheckBox->setEnabled(FALSE); | 81 | stereoCheckBox->setEnabled(FALSE); |
82 | sixteenBitCheckBox->setEnabled(FALSE); | 82 | sixteenBitCheckBox->setEnabled(FALSE); |
83 | #else | 83 | #else |
84 | #endif | 84 | #endif |
85 | int sRate=cfg.readNumEntry("SizeLimit", 30); | 85 | int sRate=cfg.readNumEntry("SizeLimit", 30); |
86 | qDebug("%d",sRate); | 86 | qDebug("%d",sRate); |
87 | 87 | ||
88 | if(sRate ==30) | 88 | if(sRate ==30) |
89 | timeLimitComboBox->setCurrentItem(0); | 89 | timeLimitComboBox->setCurrentItem(0); |
90 | else if(sRate==20) | 90 | else if(sRate==20) |
91 | timeLimitComboBox->setCurrentItem(1); | 91 | timeLimitComboBox->setCurrentItem(1); |
92 | else if(sRate == 15) | 92 | else if(sRate == 15) |
93 | timeLimitComboBox->setCurrentItem(2); | 93 | timeLimitComboBox->setCurrentItem(2); |
94 | else if(sRate == 10) | 94 | else if(sRate == 10) |
95 | timeLimitComboBox->setCurrentItem(3); | 95 | timeLimitComboBox->setCurrentItem(3); |
96 | else | 96 | else if(sRate == 5) |
97 | timeLimitComboBox->setCurrentItem(4); | 97 | timeLimitComboBox->setCurrentItem(4); |
98 | else | ||
99 | timeLimitComboBox->setCurrentItem(5); | ||
98 | 100 | ||
99 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); | 101 | sixteenBitCheckBox->setChecked(cfg.readNumEntry("SixteenBit", 1)); |
100 | 102 | ||
101 | cfg.setGroup("Defaults"); | 103 | cfg.setGroup("Defaults"); |
102 | keyComboBox->setCurrentItem(cfg.readNumEntry("toggleKey") ); | 104 | keyComboBox->setCurrentItem(cfg.readNumEntry("toggleKey") ); |
103 | 105 | ||
104 | updateStorageCombo(); | 106 | updateStorageCombo(); |
105 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); | 107 | connect( LocationComboBox,SIGNAL(activated(const QString &)),this,SLOT( setLocation(const QString &))); |
106 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT( setKeyButton(const QString &))); | 108 | connect( keyComboBox,SIGNAL(activated(const QString &)),this,SLOT( setKeyButton(const QString &))); |
107 | connect( timeLimitComboBox,SIGNAL(activated( const QString &)),this,SLOT( setSizeLimitButton(const QString &))); | 109 | connect( timeLimitComboBox,SIGNAL(activated( const QString &)),this,SLOT( setSizeLimitButton(const QString &))); |
108 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 110 | // connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
109 | } | 111 | } |
110 | void SoundSettings::updateStorageCombo() { | 112 | void SoundSettings::updateStorageCombo() { |
111 | 113 | ||
112 | Config config( "Vmemo" ); | 114 | Config config( "Vmemo" ); |
113 | config.setGroup( "System" ); | 115 | config.setGroup( "System" ); |
114 | QString loc = config.readEntry("RecLocation","/"); | 116 | QString loc = config.readEntry("RecLocation","/"); |
115 | int i=0; | 117 | int i=0; |
116 | int set=0; | 118 | int set=0; |
117 | StorageInfo storageInfo; | 119 | StorageInfo storageInfo; |
118 | QString sName, sPath; | 120 | QString sName, sPath; |
119 | QStringList list; | 121 | QStringList list; |
120 | list << "Documents : "+QPEApplication::documentDir(); | 122 | list << "Documents : "+QPEApplication::documentDir(); |
121 | list << "tmp : /tmp"; | 123 | list << "tmp : /tmp"; |