author | llornkcor <llornkcor> | 2003-07-14 21:27:38 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-07-14 21:27:38 (UTC) |
commit | 115e09bdeb2ee3c7c0b9344f95179e1d10e86e48 (patch) (unidiff) | |
tree | e51a341aab0e6a3a1c932beabd73d52ceb4d37dd /core/launcher | |
parent | ab28f35bc3c9c184862ac19462322eed2be0f541 (diff) | |
download | opie-115e09bdeb2ee3c7c0b9344f95179e1d10e86e48.zip opie-115e09bdeb2ee3c7c0b9344f95179e1d10e86e48.tar.gz opie-115e09bdeb2ee3c7c0b9344f95179e1d10e86e48.tar.bz2 |
another fix
-rw-r--r-- | core/launcher/launcher.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/core/launcher/launcher.cpp b/core/launcher/launcher.cpp index 5f050aa..0205622 100644 --- a/core/launcher/launcher.cpp +++ b/core/launcher/launcher.cpp | |||
@@ -156,53 +156,53 @@ void CategoryTabWidget::nextTab() | |||
156 | 156 | ||
157 | 157 | ||
158 | void CategoryTabWidget::showTab(const QString& id) | 158 | void CategoryTabWidget::showTab(const QString& id) |
159 | { | 159 | { |
160 | if ( categoryBar ) { | 160 | if ( categoryBar ) { |
161 | int idx = ids.findIndex( id ); | 161 | int idx = ids.findIndex( id ); |
162 | categoryBar->setCurrentTab( idx ); | 162 | categoryBar->setCurrentTab( idx ); |
163 | } | 163 | } |
164 | } | 164 | } |
165 | 165 | ||
166 | void CategoryTabWidget::addItem( const QString& linkfile ) | 166 | void CategoryTabWidget::addItem( const QString& linkfile ) |
167 | { | 167 | { |
168 | int i=0; | 168 | // int i=0; |
169 | AppLnk *app = new AppLnk(linkfile); | 169 | // AppLnk *app = new AppLnk(linkfile); |
170 | if ( !app->isValid() ) { | 170 | // if ( !app->isValid() ) { |
171 | delete app; | 171 | // delete app; |
172 | app=0; | 172 | // app=0; |
173 | } | 173 | // } |
174 | if ( !app || !app->file().isEmpty() ) { | 174 | // if ( !app || !app->file().isEmpty() ) { |
175 | // A document | 175 | // A document |
176 | // delete app; | 176 | // delete app; |
177 | // app = new DocLnk(linkfile); | 177 | // app = new DocLnk(linkfile); |
178 | // if ( app->fileKnown() ) { | 178 | // if ( app->fileKnown() ) { |
179 | // ((LauncherView*)(stack->widget(ids.count()-1)))->addItem(app); | 179 | // ((LauncherView*)(stack->widget(ids.count()-1)))->addItem(app); |
180 | // } else { | 180 | // } else { |
181 | // ((LauncherView*)(stack->widget(ids.count()-1)))->sort(); | 181 | // ((LauncherView*)(stack->widget(ids.count()-1)))->sort(); |
182 | // delete app; | 182 | // delete app; |
183 | // } | 183 | // } |
184 | return; | 184 | // return; |
185 | } | 185 | // } |
186 | // An application | 186 | // An application |
187 | for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) { | 187 | // for ( QStringList::Iterator it=ids.begin(); it!=ids.end(); ++it) { |
188 | if ( !(*it).isEmpty() ) { | 188 | // if ( !(*it).isEmpty() ) { |
189 | QRegExp tf(*it,FALSE,TRUE); | 189 | // QRegExp tf(*it,FALSE,TRUE); |
190 | if ( tf.match(app->type()) >= 0 ) { | 190 | // if ( tf.match(app->type()) >= 0 ) { |
191 | ((LauncherView*)stack->widget(i))->addItem(app); | 191 | // ((LauncherView*)stack->widget(i))->addItem(app); |
192 | return; | 192 | // return; |
193 | } | 193 | // } |
194 | i++; | 194 | // i++; |
195 | } | 195 | // } |
196 | } | 196 | // } |
197 | 197 | ||
198 | QCopEnvelope e("QPE/TaskBar","reloadApps()"); | 198 | QCopEnvelope e("QPE/TaskBar","reloadApps()"); |
199 | } | 199 | } |
200 | 200 | ||
201 | void CategoryTabWidget::initializeCategories(AppLnkSet* rootFolder, | 201 | void CategoryTabWidget::initializeCategories(AppLnkSet* rootFolder, |
202 | AppLnkSet* /*docFolder*/, const QList<FileSystem> & /*fs*/) | 202 | AppLnkSet* /*docFolder*/, const QList<FileSystem> & /*fs*/) |
203 | { | 203 | { |
204 | QString current; | 204 | QString current; |
205 | if ( categoryBar ) { | 205 | if ( categoryBar ) { |
206 | int c = categoryBar->currentTab(); | 206 | int c = categoryBar->currentTab(); |
207 | if ( c >= 0 ) current = ids[c]; | 207 | if ( c >= 0 ) current = ids[c]; |
208 | } | 208 | } |
@@ -1333,23 +1333,23 @@ void Launcher::preloadApps() | |||
1333 | QStringList apps = cfg.readListEntry("Apps",','); | 1333 | QStringList apps = cfg.readListEntry("Apps",','); |
1334 | for (QStringList::ConstIterator it=apps.begin(); it!=apps.end(); ++it) { | 1334 | for (QStringList::ConstIterator it=apps.begin(); it!=apps.end(); ++it) { |
1335 | #ifndef QT_NO_COP | 1335 | #ifndef QT_NO_COP |
1336 | QCopEnvelope e("QPE/Application/"+(*it).local8Bit(), "enablePreload()"); | 1336 | QCopEnvelope e("QPE/Application/"+(*it).local8Bit(), "enablePreload()"); |
1337 | #endif | 1337 | #endif |
1338 | } | 1338 | } |
1339 | } | 1339 | } |
1340 | 1340 | ||
1341 | DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName) | 1341 | DocumentTab::DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName) |
1342 | : OFileSelector(parent,mode,selector,dirName,fileName) | 1342 | : OFileSelector(parent,mode,selector,dirName,fileName) |
1343 | { | 1343 | { |
1344 | setYesCancelVisible(false); | 1344 | setYesCancelVisible(false); |
1345 | setToolbarVisible(true); | 1345 | setToolbarVisible(false); |
1346 | setPermissionBarVisible(false); | 1346 | setPermissionBarVisible(false); |
1347 | setLineEditVisible(false) ; | 1347 | setLineEditVisible(false) ; |
1348 | //setChooserVisible( bool chooser ); | 1348 | //setChooserVisible( bool chooser ); |
1349 | 1349 | ||
1350 | } | 1350 | } |
1351 | 1351 | ||
1352 | DocumentTab::~DocumentTab() { | 1352 | DocumentTab::~DocumentTab() { |
1353 | 1353 | ||
1354 | } | 1354 | } |
1355 | 1355 | ||